** Summary changed: - Azure data source should auto-detect ephemeral disk location + [SRU] Azure data source should auto-detect ephemeral disk location
** Description changed: - Currently we assume it will be /dev/sdb, but this may change. There is - an example of how to handle this in the Azure Linux agent. + [Impact] + The Azure ephemeral disk will not necessarily remain at the same /dev/sd* location between reboots. This means the drive may not be persistently mounted between reboots. + + [Test Case] + 1) Boot an Azure instance with a cloud-init including this fix. + 2) Ensure that the ephemeral disk is mounted at /mnt and formatted as ext4 + 3) Ensure that /etc/fstab refers to a /dev/disk/... symlink, rather than a /dev/sd* device. + + [Regression Potential] + We now use a udev rule to discover the location of the disk; we have been assured by Microsoft that this rule will always work, so regression potential is minimal. + + [Original Report] + Currently we assume it will be /dev/sdb, but this may change. There is an example of how to handle this in the Azure Linux agent. To quote stevez in a comment on bug 1410835: Device names are not persistent in Linux and could change, so it is not guaranteed that the ephemeral disk will be called /dev/sdb. Ideally this should be auto-detected in cloud-init at runtime (for example, see DeviceForIdePort() in the Azure Linux agent). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1411582 Title: [SRU] Azure data source should auto-detect ephemeral disk location To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1411582/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
