[SRU] cloud-init should handle formating the azure disks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Quantal |
Won't Fix
|
Low
|
Unassigned | ||
Raring |
Fix Released
|
Medium
|
Unassigned | ||
walinuxagent (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Quantal |
Won't Fix
|
Low
|
Unassigned | ||
Raring |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]: With Cloud-init on 13.10, the ability for Cloud-init to parition and prepare the ephemeral devices was added. By default, 13.10 handles the formating of Windows Azure Cloud Images. As part of Bug: #1233315, the functionality has been backported to support SmartOS. This SRU will change the provisioning of pre-13.10 Windows Azure instances to use the same functionality for ephemeral device preparation as SmartOS.
For 12.04, this simply is enabling the ephemeral device formating support. For 12.10 and 13.04, the full Windows Azure DataSource from 13.10 has been backported and finalizes the SRU in Bug: #1037723
[Test Case]: See Comment 4 for detailed test case information
SmartOS:
- Build image with SmartOS enabled as Cloud-init datasource
- Login via SSH
- Confirm:
- /dev/vdb mounted to /mnt
- /dev/vdb is of type ext3, label is 'ephemeral0'
Azure:
* Upgrade:
- Boot current image
- install new packages
- confirm that previous /etc/waagent.conf has provisioning functions turned on
- make sure that /var/lib/
- place file on ephemeral drive
- reboot
- confirm that file is on ephemeral drive
- look at /var/lib/
* New Image:
- Boot image built with new packages (i.e. from PPA/proposed)
- confirm that /etc/waagent.conf has provisioning and ephemeral disk functions disabled
- confirm that /dev/sdb1 mounted to /mnt
- confirm that /dev/sdb1 is of type ext4, no label
* Confirm test cases in Bug: #1231490
[Regression]: This SRU adds a default cloud-init module of "disk_setup," which will format ephemeral devices for the Azure and SmartOS datasources. Both the Azure and SmartOS datasources define default devices that should be partitioned/
There are a number of safe guards to prevent accidental data-deletion. The datasources are configured to _not_ overwrite any file system and to detect if the disk is in use.
As a further safe guard, the postinst sets a semaphore for cloud-init to prevent the disk_setup module from running when it detects that a system has been previously configured.
[ORIGINAL REPORT]: With bug #1218506, cloud-init is now able to format the ephemeral disk. Currently walinuxagent handles the preperation of the ephemeral disk. Since cloud-init can handle doing that work now, this feature in walinuxagent should be disabled and enabled for cloud-init in the Windows Azure data source.
Related branches
- Scott Moser: Pending requested
-
Diff: 745 lines (+245/-145)8 files modifiedChangeLog (+1/-0)
cloudinit/config/cc_disk_setup.py (+83/-82)
cloudinit/sources/DataSourceAzure.py (+21/-7)
cloudinit/sources/DataSourceSmartOS.py (+8/-8)
doc/examples/cloud-config-disk-setup.txt (+46/-16)
doc/sources/smartos/README.rst (+17/-11)
tests/unittests/test_datasource/test_azure.py (+55/-5)
tests/unittests/test_datasource/test_smartos.py (+14/-16)
Changed in ubuntu: | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → Ben Howard (utlemming) |
summary: |
- cloud-init should handle formating the azure disks + [SRU] cloud-init should handle formating the azure disks |
description: | updated |
Changed in walinuxagent (Ubuntu Precise): | |
assignee: | nobody → Ben Howard (utlemming) |
Changed in walinuxagent (Ubuntu Raring): | |
assignee: | nobody → Ben Howard (utlemming) |
Changed in walinuxagent (Ubuntu Quantal): | |
assignee: | nobody → Ben Howard (utlemming) |
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Ben Howard (utlemming) |
Attached branch lp:~utlemming/ubuntu/precise/cloud-init/lp123315-1231490 that has all the bits for Azure disk formating, ephermalX.Y and SmartOS backport to 12.04.
Tested on both Windows Azure, EC2 and SmartOS targets.