[Bug 1411582] Re: [SRU] Azure data source should auto-detect ephemeral disk location
Dan Watkins
daniel.watkins at canonical.com
Fri Aug 14 15:01:11 UTC 2015
** 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
Server Team, which is subscribed to cloud-init in 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
More information about the Ubuntu-server-bugs
mailing list