** Description changed: + [IMPACT] + Cloud-init provisioning on SmartOS is not compliant per the DataDictionary published on 25 September. The result is that cloud-init provisioned Ubuntu on SmartOS hosts will not behave as user expect. This SRU makes cloud-init's SmartOS datasource compliant on the DataDictionary specification. + + [Test Case] + 1. Install nodejs + 2. Install the CLI tool, "sudo npm install smartdc -g" + 3. Launch instance on SmartOS based cloud, with metadata tag of "cloud-init:user-data" set with cloud-init user-data. + 4. Install SRU's on instance + 5. Run: + * rm -rf /var/lib/cloud + * [12.04] cloud-init-cfg init + * [13.10] cloud-init --debug init + * Confirm that instance first-boot completed + * Confirm that cloud-init user-data was consummed + 6. From workstation, create a user-script file with the following: + `touch /root/cloud-init.$(date +%s)` + 7. From workstation, run "sdc-updatemachinemetadata <UUID> --metadata-file user-script=<user-script-file> + 8. Reboot + 9. Confirm that /var/db/user-script exists and that /root/cloud-init.<stamp exists> + 10. From workstation, run "sdc-deletemachinemetadata <UUID> --metadata user-script + 11. Reboot + 12. Confirm that /var/db/user-script is gone + 13. Create user-data file with random stuff + 14. From workstation, run "sdc-updatemachinemetadata <UUID> --metadata-file user-data=<user-data-file> + 15. Reboot + 16. Confirm that /var/db/user-data exists + + + [Regression Potential] + This has low regression potential and will only affect users who are relying on the broken behavior. + + [ORIGINAL REPORT] + The SmartOS provider is not compliant to the datadictionary [1] due to a change in the definition. Specifically: 1. the datasource conflates user-data for the user and cloud-init. cloud-init should use namespaced user-data 2. the datasource should run user-scripts each boot 3. user-scripts should be assumed to be executable with bash unless file magic is present 4. the datacenter name is now scoped to be sdc:datacenter In order to provide for proper operation on SmartOS, these definiciency need to be addressed. [1] http://us-east.manta.joyent.com/jmc/public/mdata/datadict.html
** Changed in: cloud-init (Ubuntu Precise) Status: In Progress => New ** Changed in: cloud-init (Ubuntu Saucy) Status: In Progress => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1272115 Title: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1272115/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs