Merge lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-maas-stilson into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Francis Ginther
Status: Superseded
Proposed branch: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-maas-stilson
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 78 lines (+12/-8)
4 files modified
jenkins/MAASv2_Builder.sh (+1/-1)
jenkins/MAASv3_Builder.sh (+1/-1)
templates/img-maasv2.tmpl (+7/-3)
templates/img-maasv3.tmpl (+3/-3)
To merge this branch: bzr merge lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-maas-stilson
Reviewer Review Type Date Requested Status
Philip Roche Approve
Robert C Jennings (community) Approve
Review via email: mp+348840@code.launchpad.net

This proposal has been superseded by a proposal from 2018-07-02.

Commit message

Update the maas build scripts to use the ppc64el config on stilson which reports `ppc64le` for `uname -m`

Description of the change

The change from snyder to stilson resulted in a change in `uname -m`. It now reports as `ppc64le`. The build config uses this to pivot to a different cfg file which contains a different package set to install.

To post a comment you must log in.
Revision history for this message
Robert C Jennings (rcj) wrote :

+1

review: Approve
Revision history for this message
Philip Roche (philroche) :
review: Approve
801. By Francis Ginther

Debug the final tar

802. By Francis Ginther

Add lsblk debug.

803. By Francis Ginther

The maas raw disk is no on /dev/vdc

Unmerged revisions

803. By Francis Ginther

The maas raw disk is no on /dev/vdc

802. By Francis Ginther

Add lsblk debug.

801. By Francis Ginther

Debug the final tar

800. By Francis Ginther

Update the maas build scripts to use the ppc64el config on stilson which reports for x86_64.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jenkins/MAASv2_Builder.sh'
2--- jenkins/MAASv2_Builder.sh 2016-09-28 19:52:00 +0000
3+++ jenkins/MAASv2_Builder.sh 2018-07-02 19:02:01 +0000
4@@ -95,7 +95,7 @@
5 set +x
6
7 ci_cfg="${kvm_builder}/config/cloud-maasv2.cfg"
8-[ "$(uname -m)" == "ppc64" ] && ci_cfg="${kvm_builder}/config/cloud-trusty-pp64el.cfg"
9+[ "$(uname -m)" == "ppc64le" ] && ci_cfg="${kvm_builder}/config/cloud-trusty-pp64el.cfg"
10
11 # Launch KVM to do the work
12 launch_kvm.sh \
13
14=== modified file 'jenkins/MAASv3_Builder.sh'
15--- jenkins/MAASv3_Builder.sh 2016-10-04 18:53:03 +0000
16+++ jenkins/MAASv3_Builder.sh 2018-07-02 19:02:01 +0000
17@@ -47,7 +47,7 @@
18 fail "Failed to configure KVM instance for building"
19
20 ci_cfg="${kvm_builder}/config/cloud-maasv3.cfg"
21-[ "$(uname -m)" == "ppc64" ] && ci_cfg="${kvm_builder}/config/cloud-trusty-pp64el.cfg"
22+[ "$(uname -m)" == "ppc64le" ] && ci_cfg="${kvm_builder}/config/cloud-trusty-pp64el.cfg"
23
24 # Launch KVM to do the work
25 launch_kvm.sh \
26
27=== modified file 'templates/img-maasv2.tmpl'
28--- templates/img-maasv2.tmpl 2015-09-16 23:14:53 +0000
29+++ templates/img-maasv2.tmpl 2018-07-02 19:02:01 +0000
30@@ -7,7 +7,7 @@
31 fail() {
32 [ $# -eq 0 ] || error "$@";
33 echo "Failed" > /tmp/failed;
34- tar -C /tmp -cvf /dev/vdb failed build.log;
35+ tar -C /tmp -cvf /dev/vdc failed build.log;
36 shutdown -P now;
37 exit 1;
38 }
39@@ -128,9 +128,13 @@
40 done
41
42 # Finish the work
43-echo "Taring up artifacts to /dev/vdb!"
44+echo "Taring up artifacts to /dev/vdc!"
45 touch /tmp/success
46-tar -C /tmp -cvf /dev/vdb maas_images /var/log/* logs success build.log "${OUT_D}" >> /dev/null
47+echo "FJG debug"
48+lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
49+mount
50+echo "FJG debug"
51+tar -C /tmp -cvf /dev/vdc maas_images /var/log/* logs success build.log "${OUT_D}" >> /dev/null
52 sync
53 shutdown -P now
54
55
56=== modified file 'templates/img-maasv3.tmpl'
57--- templates/img-maasv3.tmpl 2016-10-06 15:20:55 +0000
58+++ templates/img-maasv3.tmpl 2018-07-02 19:02:01 +0000
59@@ -7,7 +7,7 @@
60 fail() {
61 [ $# -eq 0 ] || error "$@";
62 echo "Failed" > /tmp/failed;
63- tar -C /tmp -cvf /dev/vdb failed build.log;
64+ tar -C /tmp -cvf /dev/vdc failed build.log;
65 shutdown -P now;
66 exit 1;
67 }
68@@ -76,9 +76,9 @@
69 done
70
71 # Finish the work
72-echo "Taring up artifacts to /dev/vdb!"
73+echo "Taring up artifacts to /dev/vdc!"
74 touch /tmp/success
75-tar -C /tmp -cvf /dev/vdb maas_images /var/log/* logs success build.log "${OUT_D}" >> /dev/null
76+tar -C /tmp -cvf /dev/vdc maas_images /var/log/* logs success build.log "${OUT_D}" >> /dev/null
77 sync
78 shutdown -P now
79

Subscribers

People subscribed via source and target branches

to all changes: