[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-12 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init - 0.6.3-0ubuntu1.10

---
cloud-init (0.6.3-0ubuntu1.10) precise-proposed; urgency=low

  * debian/patches/lp-1272115-fix_smartos_compliance.patch: Fix compliance for
SmartOS data handling (LP: #1272115):
- cloud-init user-data is now named spaced as cloud-init:user-data
- user-data is written to /var/db/mdata-user-data
- user-scripts are fetched and executed each boot
- datacenter/region is now named spaced as sdc:datacenter
 -- Ben Howard ben.how...@ubuntu.com   Mon, 27 Jan 2014 13:57:24 -0700

** Changed in: cloud-init (Ubuntu Precise)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-12 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init - 0.7.3-0ubuntu2.1

---
cloud-init (0.7.3-0ubuntu2.1) saucy-proposed; urgency=low

  * debian/patches/lp-1272115-fix_smartos_compliance.patch: Fix compliance for
SmartOS data handling (LP: #1272115):
- straight backport from 14.04 LTS development of SmartOS datasource
  and datasource test suite, sans vendordata.
- cloud-init user-data is now named spaced as cloud-init:user-data
- user-data is written to /var/db/mdata-user-data
- user-scripts are fetched and executed each boot
- datacenter/region is now named spaced as sdc:datacenter
 -- Ben Howard ben.how...@ubuntu.com   Tue, 28 Jan 2014 11:19:14 -0700

** Changed in: cloud-init (Ubuntu Saucy)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-10 Thread Robert C Jennings
Verified on saucy with success. Attaching cloud-init.log for saucy.

** Attachment added: cloud-init.log for saucy verification
   
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1272115/+attachment/3976186/+files/cloud-init_saucy.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-10 Thread Robert C Jennings
Log file and notes from verification on precise.
- Testing was successful on a host with plain text in the cloud-init:user-data 
metadata field.
- Testing failed on a host which had base64 data in the cloud-init:user-data 
metadata field.

I also saw that the user-script ran twice, producing two files in /root/

** Attachment added: precise-results.tgz
   
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1272115/+attachment/3976297/+files/precise-results.tgz

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-10 Thread Ben Howard
@rcj: this is as expected. The cloud-init user-data needs to have a
metadata key of base64_keys=cloud-init:user-data in order for it to
work.

The logs indicate that the instance your on is lacking a ubuntu user.
Can you re-run the test, but create the ubuntu user before running the
test?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-10 Thread Ben Howard
Marking as verification-done. The logs from comment #8, actually
indicate that the test cases succeeded, however, it was failing due to
using a non-official Ubuntu image.

I verified the test cases. This SRU is good to go for release.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-04 Thread Chris Halse Rogers
Hm. In “Regression potential” you say “will only affect users who are
relying on the broken behavior”.

What effect will this have on users who *are* relying on the current
behaviour? Do you have any estimate of how many users might be relying
on it? There's a high bar to clear for an SRU that breaks a user's
current setup - that's a deliberate regression.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-04 Thread Ben Howard
 What effect will this have on users who *are* relying on the current
behaviour?

The effect will be minimial, if any. SmartOS has the concept of user-
data, which is a channel for sending raw data. In the case of cloud-
init, users would be more likely to be confused by something acting on
the data. By having cloud-init follow the documented use-case, cloud-
init becomes functional.

Further, I would argue that if cloud-init is acting on user-data, there
is actually a danger depending on the payload of the user-data. For
example, if the user-data payload is a destructive script that is
supposed to be run by something other than cloud-init it could result in
system failure.

Given that we introduced SmartOS recently wtih 13.10, the impact here
will be minimial. There is no public cloud vendor that is currently
using cloud-init. Finally, this change was requested by the SmartOS
upstream maintainers.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-02-04 Thread Chris Halse Rogers
Hello Ben, or anyone else affected,

Accepted cloud-init into saucy-proposed. The package will build now and
be available at http://launchpad.net/ubuntu/+source/cloud-
init/0.7.3-0ubuntu2.1 in a few hours, and then in the -proposed
repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: cloud-init (Ubuntu Saucy)
   Status: New = Fix Committed

** Tags added: verification-needed

** Changed in: cloud-init (Ubuntu Precise)
   Status: New = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-01-29 Thread Ben Howard
** Summary changed:

- cloud-init SmartOS datasource provider is not compliant to datadictionary
+ [SRU] cloud-init SmartOS datasource provider is not compliant to 
datadictionary

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1272115] Re: [SRU] cloud-init SmartOS datasource provider is not compliant to datadictionary

2014-01-29 Thread Ben Howard
** 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
Server Team, which is subscribed to cloud-init in 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-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs