Merge lp:~rodsmith/maas-cert-server/fix-zesty-deploy into lp:~hardware-certification/maas-cert-server/trunk

Proposed by Rod Smith
Status: Merged
Approved by: Jeff Lane 
Approved revision: 74
Merged at revision: 74
Proposed branch: lp:~rodsmith/maas-cert-server/fix-zesty-deploy
Merge into: lp:~hardware-certification/maas-cert-server/trunk
Diff against target: 59 lines (+12/-4)
3 files modified
debian/changelog (+6/-0)
preseed/curtin_userdata_cert (+3/-2)
preseed/curtin_userdata_custom_cert (+3/-2)
To merge this branch: bzr merge lp:~rodsmith/maas-cert-server/fix-zesty-deploy
Reviewer Review Type Date Requested Status
Jeff Lane  Approve
Review via email: mp+321917@code.launchpad.net

Description of the change

This MR fixes bug #1679758, which was blocking deployment of Ubuntu 17.04 zesty beta on MAAS when our custom preseeds were in use. There were two issues:

1) Under zesty, installing canonical-certification-server results in
   the installation of mailutils, which in turn causes postfix to
   be installed. Unfortunately, postfix requires interaction during
   installation, so everything falls apart. Explicitly installing
   sendmail along with canonical-certification-checkbox causes
   postfix to not be installed, thus working around this issue.
2) The "secureid" mini-script in the preseed was causing something
   in /dev to remain open, thus preventing it from being
   unmounted at the end of the installation, and the install
   would then fail. Adding "sleep 5;" to the end of the
   "secureid" mini-script seems to fix this problem.

I've applied these fixes to both the standard and custom preseeds and tested with both, although we probably won't be using custom images with zesty or later.

To post a comment you must log in.
Revision history for this message
Jeff Lane  (bladernr) wrote :

Please file a checkbox bug (probably plainbox-provider-checkbox) for this. Ultimately, something should not be installing postfix, but is... so that should be investigated upstream as well.

Otherwise, approve

review: Approve
Revision history for this message
Rod Smith (rodsmith) wrote :

OK, I've filed a second bug report, bug 1679833, against plainbox-provider-checkbox.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2017-01-18 20:02:39 +0000
3+++ debian/changelog 2017-04-04 19:50:15 +0000
4@@ -1,3 +1,9 @@
5+maas-cert-server (0.2.30-0ppa1) xenial; urgency=medium
6+
7+ * Fix preseeds so that zesty deployments work.
8+
9+ -- Rod Smith <rod.smith@canonical.com> Tue, 04 Apr 2017 15:38:39 -0400
10+
11 maas-cert-server (0.2.29-0ppa1) xenial; urgency=medium
12
13 * Minor tweak to maniacs-setup to cope with small MAAS API changes.
14
15=== modified file 'preseed/curtin_userdata_cert'
16--- preseed/curtin_userdata_cert 2016-12-09 09:36:13 +0000
17+++ preseed/curtin_userdata_cert 2017-04-04 19:50:15 +0000
18@@ -61,7 +61,7 @@
19 echo " Running apt-get update...";
20 apt-get update;
21 echo " Installing checkbox certification...";
22- apt-get install -y --force-yes canonical-certification-server;
23+ apt-get install -y --allow-unauthenticated canonical-certification-server sendmail;
24 apt-get install dmidecode;
25 sleep 60;
26 echo "Done.";
27@@ -119,7 +119,8 @@
28 sudo sed -i "s/#\[transport:c3\]/\[transport:c3\]/g" /etc/xdg/canonical-certification.conf
29 sudo sed -i "s/#secure_id =.*/secure_id = $secureid/g" /etc/xdg/canonical-certification.conf
30 fi
31- done
32+ done;
33+ sleep 5;
34
35 late_commands:
36 maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']
37
38=== modified file 'preseed/curtin_userdata_custom_cert'
39--- preseed/curtin_userdata_custom_cert 2016-12-09 09:36:13 +0000
40+++ preseed/curtin_userdata_custom_cert 2017-04-04 19:50:15 +0000
41@@ -61,7 +61,7 @@
42 echo " Running apt-get update...";
43 apt-get update;
44 echo " Installing checkbox certification...";
45- apt-get install -y --force-yes canonical-certification-server;
46+ apt-get install -y --allow-unauthenticated canonical-certification-server sendmail;
47 apt-get install dmidecode;
48 sleep 60;
49 echo "Done.";
50@@ -141,7 +141,8 @@
51 sudo sed -i "s/#\[transport:c3\]/\[transport:c3\]/g" /etc/xdg/canonical-certification.conf
52 sudo sed -i "s/#secure_id =.*/secure_id = $secureid/g" /etc/xdg/canonical-certification.conf
53 fi
54- done
55+ done;
56+ sleep 5;
57
58 late_commands:
59 maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']

Subscribers

People subscribed via source and target branches

to status/vote changes: