Merge lp:~daniel-thewatkins/cloud-init/lp1411582 into lp:~cloud-init-dev/cloud-init/trunk
| Status: | Merged |
|---|---|
| Merged at revision: | 1127 |
| Proposed branch: | lp:~daniel-thewatkins/cloud-init/lp1411582 |
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
| Diff against target: |
455 lines (+236/-86) 8 files modified
cloudinit/config/cc_disk_setup.py (+5/-0) cloudinit/config/cc_mounts.py (+50/-64) cloudinit/sources/DataSourceAzure.py (+23/-20) packages/debian/dirs (+1/-0) setup.py (+2/-0) tests/unittests/test_datasource/test_azure.py (+4/-2) tests/unittests/test_handler/test_handler_mounts.py (+133/-0) udev/66-azure-ephemeral.rules (+18/-0) |
| To merge this branch: | bzr merge lp:~daniel-thewatkins/cloud-init/lp1411582 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| cloud-init commiters | 2015-07-15 | Pending | |
|
Review via email:
|
|||
Description of the Change
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?".
- 1120. By Scott Moser on 2015-07-16
-
CloudSigma: encode/decode data before communicating over the serial channel
this fixes the cloudsigma datasource when used with python3.
| Scott Moser (smoser) wrote : | # |
- 1121. By Dan Watkins on 2015-07-20
-
Return a sensible value for DataSourceGCE.
availability_ zone. - 1122. By Dan Watkins on 2015-07-21
-
Refactor cc_mounts.
sanitize_ devname to make it easier to modify. - 1123. By Dan Watkins on 2015-07-21
-
Extend disk_setup and mounts to handle /dev/disk symlinks.
- 1124. By Dan Watkins on 2015-07-21
-
Use /dev/disk devices for Azure ephemeral disk.
The ephemeral disk will not necessarily be assigned the same name at
each boot (LP: #1411582), so we use some udev rules to ensure we always
get the right one. - 1125. By Dan Watkins on 2015-07-21
-
Add udev rules for Azure ephemeral disks.
And install them in the Debian packaging.
| Dan Watkins (daniel-thewatkins) wrote : | # |
Added that comment and updated the Debian packaging. No idea about RPM packaging, so can't do anything there.


mostly fine.
how does the udev rule get installed? i guess i'd like packaging in trunk updated too.