[SRU] cloud-init should use "nofail" instead of "bootwait"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Wily |
Fix Released
|
Critical
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned |
Bug Description
SRU JUSTIFICATION
[IMPACT] Prior to Ubuntu 15.10, the mount option of "nobootwait" == "nofail." However, with Ubuntu 15.10, this is no longer the case. As a result, snapshotted, stopped and restarted, or migrated Cloud instances may fail to boot if the ephemeral device does not match /etc/fstab.
[FIX] Changed the default mount option to "nofail"
[TEST]
1. Boot Ubuntu 15.10 on Azure
2. Upgrade cloud-init to proposed version
3. Run "sed -i 's/nobootwait/
4. Shutdown instance
5. Restart instance, confirm it comes up
6. Capture restarted instance
7. Boot captured image
8. Confirm that capture instance came back up
[ORIGINAL REPORT]
Snapshotted instances may fail to boot due to a change in udev in 15.10. Starting with Ubuntu 15.10, "nobootwait" != "nofail".
For reference, Ubuntu's systemd had a patch that accepted nobootwait [1], but that was dropped in 15.10. discussed some in ubuntu-devel at [2]
--
[1] https:/
[2] http://
Related branches
- Scott Moser: Pending requested
-
Diff: 16 lines (+5/-1)1 file modifiedcloudinit/config/cc_mounts.py (+5/-1)
affects: | ubuntu → cloud-init (Ubuntu) |
Changed in cloud-init (Ubuntu Xenial): | |
assignee: | nobody → Ben Howard (utlemming) |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu Wily): | |
status: | New → In Progress |
Changed in cloud-init (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
summary: |
- cloud-init should use "nofail" instead of "bootwait" + [SRU] cloud-init should use "nofail" instead of "bootwait" |
description: | updated |
Changed in cloud-init (Ubuntu Wily): | |
assignee: | nobody → Ben Howard (utlemming) |
description: | updated |
It seems like the right thing to do is write 'nobootwait' or 'nofail' based on distro. uses_systemd( )