Comment 14 for bug 1603222

Revision history for this message
Amit (amityo) wrote :

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
...