[Bug 1493453] Re: [SRU] vendor_data isn't parsed properly when using the nocloud datasource
Ben Howard
ben.howard at canonical.com
Mon Sep 21 21:46:16 UTC 2015
** Description changed:
SRU Justification:
[IMPACT] The NoCloud Datasource assigns vendor_data to the wrong cloud-
init internal variable. This causes the vendor_data to be improperly
parsed, and prevents it from being consummed.
[FIX] See original report below
- [TESTING]
- 1. Build LXD image from -proposed
- 2. Boot in LXD, and confirm that instance comes up
+ [TESTING]
+ 1. Start in-cloud instance
+ 2. Update cloud-init to version in proposed
+ 3. Populate /var/lib/cloud/seed/nocloud with user-data, vendor-data, and meta-data.
+ meta-data:
+ instance-id: testing
+
+ user-data:
+ #cloud-config
+ packages:
+ - pastebinit
+
+ vendor-data:
+ #cloud-config
+ runcmd:
+ - [ "touch", "/tmp/vd-worked" ]
+
+ 3. Configure instance for NoCloud DS:
+
+ $ cat > /etc/cloud/cloud.cfg.d/999-sru.cfg <<EOM
+ DataSources: [ NoCloud }
+ EOM
+
+ 4. Reboot
+ 5. Confirm that /tmp/vd-worked exists
+ 6. Confirm that pastebinit is installed
[REGRESION POTENTIAL]
- Low. The NoCloud Datasource is used when there are no other datasources and is a local or fallback Datasource. This change only affects the vendor_data assignment which generally not used.
-
+ Low. The NoCloud Datasource is used when there are no other datasources and is a local or fallback Datasource. This change only affects the vendor_data assignment which generally not used.
[ORIGINAL REPORT]
The following fix is needed:
"self.vendordata = mydata['vendor-data']" must be changed to
"self.vendordata_raw = mydata['vendor-data']"
** Description changed:
SRU Justification:
[IMPACT] The NoCloud Datasource assigns vendor_data to the wrong cloud-
init internal variable. This causes the vendor_data to be improperly
parsed, and prevents it from being consummed.
[FIX] See original report below
[TESTING]
1. Start in-cloud instance
2. Update cloud-init to version in proposed
- 3. Populate /var/lib/cloud/seed/nocloud with user-data, vendor-data, and meta-data.
- meta-data:
- instance-id: testing
+ 3. Populate /var/lib/cloud/seed/nocloud/{user,meta,vendor}-data:
- user-data:
- #cloud-config
- packages:
- - pastebinit
+ meta-data:
+ instance-id: testing
- vendor-data:
- #cloud-config
- runcmd:
- - [ "touch", "/tmp/vd-worked" ]
+ user-data:
+ #cloud-config
+ packages:
+ - pastebinit
+
+ vendor-data:
+ #cloud-config
+ runcmd:
+ - [ "touch", "/tmp/vd-worked" ]
3. Configure instance for NoCloud DS:
$ cat > /etc/cloud/cloud.cfg.d/999-sru.cfg <<EOM
DataSources: [ NoCloud }
EOM
4. Reboot
5. Confirm that /tmp/vd-worked exists
6. Confirm that pastebinit is installed
[REGRESION POTENTIAL]
Low. The NoCloud Datasource is used when there are no other datasources and is a local or fallback Datasource. This change only affects the vendor_data assignment which generally not used.
[ORIGINAL REPORT]
The following fix is needed:
"self.vendordata = mydata['vendor-data']" must be changed to
"self.vendordata_raw = mydata['vendor-data']"
--
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/1493453
Title:
[SRU] vendor_data isn't parsed properly when using the nocloud
datasource
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1493453/+subscriptions
More information about the Ubuntu-server-bugs
mailing list