We also experience failure to mount ephemeral disk to /mnt in Yakkety
(both with 0.7.8-15 and 0.7.8-49 prerelease).

Seems like a race condition, can't reproduce 100% of the time.

the /etc/fstab is generated before the symlink /dev/disk/cloud
/azure_resource-part1 and contains:

cat /etc/fstab
/dev/disk/cloud/azure_resource  /mnt    auto    ...

cloud-init logs - 
cloud-init[1177]: [CLOUDINIT] cc_mounts.py[DEBUG]: Attempting to determine the 
real name of ephemeral0
cloud-init[1177]: [CLOUDINIT] cc_mounts.py[DEBUG]: Mapped metadata name 
ephemeral0 to /dev/disk/cloud/azure_resource
cloud-init[1177]: [CLOUDINIT] cc_mounts.py[DEBUG]: changed default device 
ephemeral0 => /dev/disk/cloud/azure_resource

change time of relevant files - 
2016-12-12 17:35:43.031397400 +0000 /etc/fstab
2016-12-12 17:35:43.067397400 +0000 /run/systemd/generator/mnt.mount
2016-12-12 17:35:43.175397400 +0000 /dev/disk/cloud/azure_resource -> ../../sdb
2016-12-12 17:35:43.223397400 +0000 /dev/disk/cloud/azure_resource-part1 -> 
../../sdb1


systemctl cat mnt.mount
...
[Mount]
What=/dev/disk/cloud/azure_resource
Where=/mnt
...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1603222

Title:
  Azure: incorrect entry in fstab for ephemeral disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1603222/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to