Activity log for bug #1540965

Date Who What changed Old value New value Message
2016-02-02 15:24:45 Robert C Jennings bug added bug
2016-02-04 17:01:14 Robert C Jennings attachment added trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563911/+files/trusty.debdiff
2016-02-04 17:01:53 Robert C Jennings attachment added vivid.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563912/+files/vivid.debdiff
2016-02-04 17:02:33 Robert C Jennings attachment added wily.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563913/+files/wily.debdiff
2016-02-04 17:02:58 Robert C Jennings attachment added xenial.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563914/+files/xenial.debdiff
2016-02-04 17:04:34 Robert C Jennings nominated for series Ubuntu Xenial
2016-02-04 17:04:34 Robert C Jennings nominated for series Ubuntu Wily
2016-02-04 17:04:34 Robert C Jennings nominated for series Ubuntu Trusty
2016-02-04 17:04:34 Robert C Jennings nominated for series Ubuntu Vivid
2016-02-04 17:07:12 Robert C Jennings cloud-init (Ubuntu): assignee Robert C Jennings (rcj) Scott Moser (smoser)
2016-02-04 17:45:57 Robert C Jennings branch linked lp:~rcj/cloud-init/lp1540965
2016-02-04 20:10:54 Robert C Jennings attachment removed vivid.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563912/+files/vivid.debdiff
2016-02-04 20:11:09 Robert C Jennings attachment added vivid.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564068/+files/vivid.debdiff
2016-02-04 20:11:26 Robert C Jennings attachment removed wily.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563913/+files/wily.debdiff
2016-02-04 20:12:08 Robert C Jennings attachment added wily.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564069/+files/wily.debdiff
2016-02-04 20:12:27 Robert C Jennings attachment removed xenial.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563914/+files/xenial.debdiff
2016-02-04 20:12:49 Robert C Jennings attachment added xenial.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564070/+files/xenial.debdiff
2016-02-04 20:24:12 Ubuntu Foundations Team Bug Bot tags patch
2016-02-04 20:24:21 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Sponsors Team
2016-02-04 22:08:09 Launchpad Janitor branch linked lp:cloud-init
2016-02-04 22:21:47 Robert C Jennings attachment removed trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4563911/+files/trusty.debdiff
2016-02-04 22:21:47 Robert C Jennings attachment removed vivid.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564068/+files/vivid.debdiff
2016-02-04 22:21:48 Robert C Jennings attachment removed wily.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564069/+files/wily.debdiff
2016-02-04 22:21:49 Robert C Jennings attachment removed xenial.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564070/+files/xenial.debdiff
2016-02-04 23:10:37 Launchpad Janitor cloud-init (Ubuntu): status In Progress Fix Released
2016-02-05 01:04:57 Robert C Jennings attachment added wily.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564236/+files/wily.debdiff
2016-02-05 01:05:32 Robert C Jennings attachment added trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564237/+files/trusty.debdiff
2016-02-05 01:29:49 Robert C Jennings description The Joyent Metadata Protocol Specification (Version 2)[1] allows for serial or socket communication. The existing Joyent datasource uses the serial port provided in KVM instances, however LX-brand zones have a socket instead @ /native/.zonecontrol/metadata.sock. Detecting we are in a Joyent LX-brand zone is possible by looking at '/bin/uname -v' which will report "BrandZ virtual linux" or checking for the existence of a /native mount where '/native/usr/bin/uname -s' reports SunOS. [Impact] * Cloud-init does not support the datasource presented to LX-Brand zones in SmartOS. Without this support cloud-init does not work on the Joyent cloud platform's container service. * The metadata is provided in the same format as already supported for KVM-based instances for the SmartOS datasource (with communication over a serial port). For LX-Brand zones the metadata is accessed via a socket file. [Test Case] * Install cloud-init on an lx-brand zone image and run 'cloud-init init'. No metadata will be found without this patch. * With the patched cloud-init, run 'cloud-init init' on the new lx-brand zones images. The metadata should be discovered and the instance should be recognized as being provisioned. Perform the same testing on existing KVM-based SmartOS instances to ensure there is no regression. [Regression Potential] * [Trusty only] This SRU backports support for the V2 metadata format that has been present since the Vivid release. This is well tested code and has no user-facing impact. This was done because the V2 datasource allows for serial or socket communication. The existing Joyent datasource uses the serial port provided in KVM instances, however LX-brand zones have a socket instead @ /native/.zonecontrol/metadata.sock. Additionally the V2 datasource provides checksums and response length fields that allow for validation of results. Additional testing was performed on Trusty SmartOS and KVM instances to validate these changes. * To keep code common for KVM (serial) and LX-Brand (socket) communication the code had to switch to read byte-by-byte from the metadata source file object to avoid reading past the end of input on the socket which would block indefinitely. This is a change from using readline and will be slower but not significantly so. * This builds on the existing SmartOS datasource to enable LX-Brand. There is risk that this will break the datasouce on existing KVM instances. To mitigate this risk testing has been performed on both environments with Trusty, Vivid (out of support today), Wily, and Xenial. [Other Info] * This is python 2/3 byte/string safe on Vivid, Wily, and Trusty where cloud-init supports python 3. ==== Original Description ==== The Joyent Metadata Protocol Specification (Version 2)[1] allows for serial or socket communication. The existing Joyent datasource uses the serial port provided in KVM instances, however LX-brand zones have a socket instead @ /native/.zonecontrol/metadata.sock. Detecting we are in a Joyent LX-brand zone is possible by looking at '/bin/uname -v' which will report "BrandZ virtual linux" or checking for the existence of a /native mount where '/native/usr/bin/uname -s' reports SunOS.
2016-02-05 14:54:49 Ben Howard bug task added cloud-init (Ubuntu Xenial)
2016-02-05 14:54:57 Ben Howard bug task added cloud-init (Ubuntu Wily)
2016-02-05 14:55:10 Ben Howard bug task added cloud-init (Ubuntu Trusty)
2016-02-05 20:14:57 Robert C Jennings attachment added trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564773/+files/trusty.debdiff
2016-02-05 20:14:58 Robert C Jennings attachment added trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564774/+files/trusty.debdiff
2016-02-05 20:15:13 Robert C Jennings attachment removed trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564773/+files/trusty.debdiff
2016-02-05 20:15:44 Robert C Jennings attachment removed trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564237/+files/trusty.debdiff
2016-02-05 20:56:02 Robert C Jennings attachment added wily.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564782/+files/wily.debdiff
2016-02-05 20:56:27 Robert C Jennings attachment removed wily.debdiff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1540965/+attachment/4564236/+files/wily.debdiff
2016-02-05 21:03:27 Robert C Jennings bug added subscriber Ubuntu Stable Release Updates Team
2016-02-06 02:12:05 Mathew Hodson cloud-init (Ubuntu Trusty): importance Undecided High
2016-02-06 02:12:08 Mathew Hodson cloud-init (Ubuntu Wily): importance Undecided High
2016-02-08 19:03:56 Chris J Arges cloud-init (Ubuntu Wily): status New Fix Committed
2016-02-08 19:04:00 Chris J Arges bug added subscriber SRU Verification
2016-02-08 19:04:03 Chris J Arges tags patch patch verification-needed
2016-02-08 19:04:39 Chris J Arges removed subscriber Ubuntu Sponsors Team
2016-02-08 19:04:58 Chris J Arges cloud-init (Ubuntu Trusty): status New Fix Committed
2016-02-10 20:38:56 Christopher Horrell bug added subscriber Christopher Horrell
2016-03-02 18:00:14 Robert C Jennings tags patch verification-needed patch verification-done
2016-03-03 23:24:22 Launchpad Janitor cloud-init (Ubuntu Trusty): status Fix Committed Fix Released
2016-03-03 23:24:26 Adam Conrad removed subscriber Ubuntu Stable Release Updates Team
2016-03-03 23:24:57 Launchpad Janitor cloud-init (Ubuntu Wily): status Fix Committed Fix Released
2016-03-04 07:40:53 Launchpad Janitor branch linked lp:~smoser/ubuntu/xenial/cloud-init/pkg
2016-05-31 13:25:27 Launchpad Janitor branch linked lp:ubuntu/trusty/cloud-init