[SRU] Fast installer - failure to install grub (UEFI mode)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | curtin |
High
|
Blake Rouse | ||
| | curtin (Ubuntu) |
High
|
Unassigned | ||
| | Trusty |
High
|
Unassigned | ||
| | Utopic |
High
|
Unassigned | ||
| | Vivid |
High
|
Unassigned | ||
Bug Description
[Impact]
This causes machines that MAAS / curtin will fail to install to those machines that have UEFI enabled.
[Test Case]
1. Install maas
2. register a system with UEFI enabled.
3. Deploy Ubuntu. It will fail because curtin will fail to deal with UEFI.
[Regression Potential]
Minimal. This actually fixes a regression. This has been tested in various labs and proven to be working on production environments.
[Other Info]
After recent upgrade to 1.7, fast installer trusty deployment with /dev/fioa as boot device does not work. This is for UEFI mode. It worked prior to upgrade. Below is output cloud-init-
"
...
grub-install: error: /usr/lib/
failed to install grub!
Unexpected error while running command.
Command: ['install-grub', '--uefi', '/tmp/tmpBpbjAX
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: "
<< additional log goes here >>
...\nSetting up efibootmgr (0.5.4-7ubuntu1) ...\nSetting up grub-efi-amd64-bin (2.02~beta2-
Stderr: ''
Success
umount: /tmp/tmpBpbjAX/
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Unexpected error while running command.
Command: ['umount', '/tmp/tmpBpbjAX
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
2014-10-21 13:04:31,654 - util.py[WARNING]: Failed running /var/lib/
2014-10-21 13:04:31,656 - cc_scripts_
2014-10-21 13:04:31,656 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.
Cloud-init v. 0.7.5 finished at Tue, 21 Oct 2014 13:04:32 +0000. Datasource DataSourceMAAS [http://
"
Related branches
- Blake Rouse: Approve on 2014-12-08
-
Diff: 48 lines (+5/-6)1 file modifiedhelpers/common (+5/-6)
| Larry Michel (lmic) wrote : | #1 |
| no longer affects: | maas |
| Changed in curtin: | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| Blake Rouse (blake-rouse) wrote : | #2 |
This is an issue with curtin, not MAAS.
Have you had this issue multiple times, is it repeatable? Just want to rule out any hardware issues first.
| Larry Michel (lmic) wrote : | #3 |
Yes it is repeatable. The logs are from a recreate.
| Blake Rouse (blake-rouse) wrote : | #4 |
What stream are you getting your images from in MAAS, daily or release?
| Larry Michel (lmic) wrote : | #5 |
We've recently started using daily (this week). We were previously using release.
| Blake Rouse (blake-rouse) wrote : | #6 |
Hm. Wonder if that has something to do with it. Looks like a file is missing for the grub installation.
| summary: |
- Fast installer - failure to install grub on non-standard device (UEFI - mode) + Fast installer - failure to install grub (UEFI mode) |
Do we have a fix for this issue?
| Blake Rouse (blake-rouse) wrote : | #8 |
You have change the summary does this issue happen on all machines deploying with UEFI? Or just ones with fioa devices?
| Larry Michel (lmic) wrote : | #9 |
Yes, seems to be happening for other devices as well. Here's a recreate with latest image:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
grub-install: error: /usr/lib/
failed to install grub!
Unexpected error while running command.
Command: ['install-grub', '--uefi', '/tmp/tmpCk8Ljc
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: "Ign http://
| Larry Michel (lmic) wrote : | #10 |
I didn't realize the stdout was so long. I would have truncated it..
| Andres Rodriguez (andreserl) wrote : | #11 |
Blake,
Can you please investigate this ASAP. There are other systems that have been affected by UEFI.
Thanks
| Blake Rouse (blake-rouse) wrote : | #12 |
This seems to be affected in the daily images. I have tested this on my NUC with UEFI and have the same issue.
I want to have smoser to look at this, to see if its a image issue or something we need to do in curtin.
| no longer affects: | maas-images |
| Rod Smith (rodsmith) wrote : | #13 |
FWIW, I've run into this, too, with MAAS 1.7 and UEFI. The first error I noticed was that /usr/lib/
| Changed in curtin: | |
| assignee: | nobody → Blake Rouse (blake-rouse) |
| Changed in curtin: | |
| status: | Confirmed → Fix Committed |
| Changed in curtin (Ubuntu): | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| Changed in curtin (Ubuntu Trusty): | |
| importance: | Undecided → High |
| Changed in curtin (Ubuntu Utopic): | |
| importance: | Undecided → High |
| Launchpad Janitor (janitor) wrote : | #14 |
This bug was fixed in the package curtin - 0.1.0~bzr196-
---------------
curtin (0.1.0~
* New upstream snapshot.
* fix bug installing to UEFI systems (LP: #1383727)
-- Scott Moser <email address hidden> Mon, 08 Dec 2014 20:01:44 -0500
| Changed in curtin (Ubuntu Vivid): | |
| status: | Confirmed → Fix Released |
| Rod Smith (rodsmith) wrote : | #15 |
This is an extremely critical bug for installations with EFI-mode systems. When will the fix work its way into earlier distributions?
| Jeff Lane (bladernr) wrote : | #16 |
Just a follow up, when can we expect to see this resolved in Trusty as we move users/testers over to MAAS 1.7.1 in Trusty?
| summary: |
- Fast installer - failure to install grub (UEFI mode) + [SRU] Fast installer - failure to install grub (UEFI mode) |
| description: | updated |
| description: | updated |
Hello Larry, or anyone else affected,
Accepted curtin into trusty-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in curtin (Ubuntu Trusty): | |
| status: | New → Fix Committed |
| tags: | added: verification-needed |
| Changed in curtin (Ubuntu Utopic): | |
| status: | New → Fix Committed |
| Chris J Arges (arges) wrote : | #18 |
Hello Larry, or anyone else affected,
Accepted curtin into utopic-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Andres Rodriguez (andreserl) wrote : | #19 |
Hi Chris,
This has been tested both in Utopic and Trusty and is proven to work as expected. Marking verification-done.
Thanks.
| tags: |
added: verification-done removed: verification-needed |
| Rod Smith (rodsmith) wrote : | #20 |
We're still having problems with one MAAS server. We suspect an ephemeral isn't being updated correctly. What's the best procedure to ensure that the fix gets onto a working MAAS server without wiping out the existing node list?
| Blake Rouse (blake-rouse) wrote : | #21 |
curtin is not embedded in to the ephemeral, it is copied over user-data.
So if you have the new package a restart to apache2 is all you need.
| Andres Rodriguez (andreserl) wrote : | #22 |
@Roderick,
We have tested this in OIL and other servers and this works as expected. If you are having issues might be related to your specific hardware. However, as Blake mentioned, you need to restart apache2 if you upgrade curtin.
| Rod Smith (rodsmith) wrote : | #23 |
It was the curtin-common package at fault. I had been under the mistaken impression that it was the ephemerals that needed to be updated, and we hadn't updated the packages on the server in a while. Once we did, it started working.
| Brian Murray (brian-murray) wrote : | #24 |
@Roderick - so it was an issue with your upgrade process and not with the SRU itself - is that correct?
| Rod Smith (rodsmith) wrote : | #25 |
Yes, Brian; AFAIK the SRU is fine.
The verification of the Stable Release Update for curtin has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Launchpad Janitor (janitor) wrote : | #27 |
This bug was fixed in the package curtin - 0.1.0~bzr196-
---------------
curtin (0.1.0~
* New upstream snapshot.
* fix bug installing to UEFI systems (LP: #1383727)
-- Andres Rodriguez <email address hidden> Mon, 16 Feb 2015 15:05:57 -0500
| Changed in curtin (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #28 |
This bug was fixed in the package curtin - 0.1.0~bzr196-
---------------
curtin (0.1.0~
* New upstream snapshot.
* fix bug installing to UEFI systems (LP: #1383727)
-- Scott Moser <email address hidden> Mon, 08 Dec 2014 20:01:44 -0500
| Changed in curtin (Ubuntu Utopic): | |
| status: | Fix Committed → Fix Released |
This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New
Thank you.
| Changed in curtin: | |
| status: | Fix Committed → Fix Released |

Adding the log files.