** Description changed:

- 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.
+ [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/instance/sem/config-disk-setup is present
+   - place file on ephemeral drive
+   - reboot
+   - confirm that file is on ephemeral drive
+   - look at /var/lib/cloud-init.log indicates that disk_setup was skipped
+ * 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/formated.
+ 
+ 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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1231490

Title:
  [SRU] cloud-init should handle formating the azure disks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1231490/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to