Azure: incorrect entry in fstab for ephemeral disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Dan Watkins | ||
cloud-init (Ubuntu) |
Fix Released
|
High
|
Dan Watkins | ||
Precise |
Won't Fix
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Dan Watkins |
Bug Description
[Impact]
There is a chance that Azure users' ephemeral disks will not be mounted properly if the device names change after a reboot.
[Test Case]
1) Provision an Ubuntu VM on Azure (I tested with 14.04.4)
2) The fstab entry for the ephemeral disk (/mnt) correctly points to /dev/disk/
3) Reboot the VM (sudo reboot)
4) The fstab entry still points to /dev/disk/
[Regression Potential]
This introduces new udev rules to the cloud-init package. These will only cause entries to appear on Azure. It also makes a minor change to how cloud-init will write to /etc/fstab on Azure.
Both of these changes will have no impact outside of Azure, and are the intended behaviour on Azure.
[Original Bug Report]
During provisioning cloud-init adds an entry for the ephemeral disk in /etc/fstab. After provisioning this entry is correct and points to "/dev/disk/
For some reason after the first reboot cloud-init overwrites the fstab entry and changes the "/dev/disk/
Repro:
1) Provision an Ubuntu VM on Azure (I tested with 14.04.4)
2) The fstab entry for the ephemeral disk (/mnt) correctly points to "/dev/disk/
3) Reboot the VM (sudo reboot)
4) The fstab entry now incorrectly points to /dev/sdb1 instead of the symlink.
Impact:
There is a chance that the customer's ephemeral disk will not be mounted properly if the device names change after a reboot.
Related bugs:
* bug 1611074: Reformatting of ephemeral drive fails on resize of Azure VM
Related branches
- cloud-init Commiters: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedcloudinit/sources/DataSourceAzure.py (+1/-1)
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → High |
Changed in cloud-init (Ubuntu Wily): | |
status: | New → Won't Fix |
Changed in cloud-init (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in cloud-init: | |
status: | New → In Progress |
assignee: | nobody → Dan Watkins (daniel-thewatkins) |
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Dan Watkins (daniel-thewatkins) |
Changed in cloud-init (Ubuntu Trusty): | |
assignee: | nobody → Dan Watkins (daniel-thewatkins) |
no longer affects: | cloud-init (Ubuntu Wily) |
Changed in cloud-init (Ubuntu Precise): | |
status: | New → Confirmed |
description: | updated |
no longer affects: | cloud-init (Ubuntu Xenial) |
no longer affects: | cloud-init (Ubuntu Yakkety) |
Changed in cloud-init (Ubuntu Precise): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Precise): | |
status: | Confirmed → Won't Fix |
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
Related bug: https:/ /bugs.launchpad .net/ubuntu/ +source/ cloud-init/ +bug/1411582