~cloud-init-dev/cloud-init/trunk

  • Committer: Scott Moser
  • Date: 2015-07-22 19:17:10 UTC
  • mfrom: (1121.2.5 lp1411582)
  • Revision ID: smoser@ubuntu.com-20150722191710-i2d73higqmeiftfj
mounts: support reliably detecting and using Azure ephemeral disks

Azure's ephemeral disks are not guaranteed to be assigned the same name by
the kernel every boot. This causes problems on ~2% of Azure instances, and
can be fixed by using udev rules to give us a deterministic path to mount;
this patch introduces those udev rules and modifies the Azure data source
to use them.

Changes to a couple of config modules were also required. In some places,
they just needed to learn to dereference symlinks. In cc_mounts this
wasn't sufficient because the dereferenced device would have been put in
/etc/fstab (rather defeating the point of using the udev rules in the
first place). A fairly hefty refactor was required to separate "is this a
valid block device?" from "what shall I put in fstab?".
Filename Latest Rev Last Changed Committer Comment Size
..
configs 559.2.423 11 years ago Joshua Harlow Add a sample yaml config to be used for testing. Diff
data 642.2.3 11 years ago Joshua Harlow 1. Add a helper for tests to use to load resource/ Diff
unittests 499.1.1 12 years ago Mike Milner Add initial unit test framework. Add initial tests Diff
__init__.py 696.1.1 11 years ago harlowja Helpful cleanups. 1. Remove the usage of the path Empty Diff Download File