[SRU] cloud-init needs backport of SmartOS w/ ephemeral disk support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Quantal |
Won't Fix
|
Medium
|
Unassigned | ||
Raring |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]: Cloud-init now support SmartOS on Ubuntu 13.10, including the ability to format ephemeral devices. This SRU includes the SmartOS datasource, ephemeral disk format support, and enabling ephemeral format support in the Azure Datasource.
A backport of the SmartOS datasource is needed by the Canonical certified public cloud effort to support SmartOS based clouds.
[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
[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.
affects: | ubuntu → cloud-init (Ubuntu) |
Changed in cloud-init (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in cloud-init (Ubuntu Precise): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Quantal): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Raring): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Precise): | |
assignee: | nobody → Ben Howard (utlemming) |
Changed in cloud-init (Ubuntu Quantal): | |
assignee: | nobody → Ben Howard (utlemming) |
Changed in cloud-init (Ubuntu Raring): | |
assignee: | nobody → Ben Howard (utlemming) |
Changed in cloud-init (Ubuntu Precise): | |
status: | New → In Progress |
Changed in cloud-init (Ubuntu Quantal): | |
status: | New → In Progress |
Changed in cloud-init (Ubuntu Raring): | |
status: | New → In Progress |
summary: |
- cloud-init needs backport of SmartOS w/ ephemeral disk support + [SRU] cloud-init needs backport of SmartOS w/ ephemeral disk support |
description: | updated |
Worked out the precise port, which needs to be reviewed. It works as expected and provisions the ephemeral storage. Branch is attached.