Comment 3 for bug 1233315

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote : Re: cloud-init needs support for SmartOS

The following is the test case:

Azure upgrade test:
1. Booted current version on Azure with default user of utlemming
2. Ran 'apt-get -y purge walinuxagent* cloud-int'
3. Installed PPA packages
4. Restored machine to pre-provisioning state:
   rm -rf /var/lib/cloud
   rm /etc/cloud/cloud.cfg.d/90-azure.cfg
   userdel -f utlemming
   :> /etc/fstab
   service walinuxagent stop
   umount /mnt/resource
   wipefs --all /dev/sdb1
   [P/Q]: mkfs.ntfs -f /dev/sdb1
5. Configure for cloud-init:
   [PRECISE ONLY]: create ubuntu user: useradd -m ubuntu -s /bin/bash
   dpkg-reconfigure cloud-init (selected SmartOS, removed others)
6. Run cloud-init
   cloud-init init
   [PRECISE ONLY]: cloud-init-cfg modules
   [Q/R]: cloud-init modules --mode=config
7. Confirmed that:
   - user 'utlemming' was created
   - user 'utlemming' has sudo
   - user 'utlemming' has ssh keys populated
   - /dev/sdb1 is mount to /mnt
   - /dev/sdb1 is of type ext4, no label

Azure new image test (SSH key test):
1. Build from PPA
2. Boot cloud image with user 'utlemming' defined via cloud
3. Log-in as user
4. Make sure that:
 - user 'utlemming' was created
 - user 'utlemming' has sudo
 - user 'utlemming' has ssh keys populated
 - /dev/sdb1 is mount to /mnt
 - /dev/sdb1 is of type ext4, no label
5. Check /var/log/cloud-init.log for any exceptions

Azure new image test (Password Authentication)
1. Build from PPA
2. Boot cloud image with user 'utlemming' defined via cloud
3. Log-in as user
4. Make sure that:
 - user 'utlemming' was created
 - user 'utlemming' has sudo
 - no SSH keys should be populated
 - /dev/sdb1 is mount to /mnt
 - /dev/sdb1 is of type ext4, no label
5. Check /var/log/cloud-init.log for any exceptions

SmartOS:
1. Booted SmartOS 12.04
2. Upgraded to Raring
3. Restored to pre-boot provisioning:
   - removed /data from /etc/fstab
   - umounted /data
   - wipefs --all /dev/vdb1
   - delpart /dev/vdb 1
4. Install cloud-init from PPA
5. Configure for cloud-init boot:
   -run: dpkg-reconfigure cloud-init (selected SmartOS, removed others)
6. Run 'cloud-init init'
   - confirmed that ubuntu users exists
   - confirmed that the ubuntu user has SSH keys
   - confirmed that datasource is selected
7. Run 'cloud-init modules'
    - confirmed that /mnt is in /etc/fstab and correct
 - confirmed that /dev/vdb mounted /mnt
 - confirmed that default filesystem on /dev/vdb is ext3
 - confirmed that the label is 'ephemeral0' on /dev/vdb
8. Rebooted and confirmed that ubuntu user can login
8. Confirm logs are as expected