2015-10-14 19:38:06 |
Stephen A. Zarkos |
bug |
|
|
added bug |
2015-10-15 13:24:24 |
Dan Watkins |
cloud-init (Ubuntu): assignee |
|
Dan Watkins (daniel-thewatkins) |
|
2015-10-15 13:24:29 |
Dan Watkins |
cloud-init (Ubuntu): status |
New |
Confirmed |
|
2015-10-30 15:51:53 |
Ben Howard |
cloud-init (Ubuntu): importance |
Undecided |
Critical |
|
2015-10-30 15:52:05 |
Ben Howard |
nominated for series |
|
Ubuntu Xenial |
|
2015-10-30 15:52:05 |
Ben Howard |
bug task added |
|
cloud-init (Ubuntu Xenial) |
|
2015-10-30 15:52:05 |
Ben Howard |
nominated for series |
|
Ubuntu Precise |
|
2015-10-30 15:52:05 |
Ben Howard |
bug task added |
|
cloud-init (Ubuntu Precise) |
|
2015-10-30 15:52:05 |
Ben Howard |
nominated for series |
|
Ubuntu Trusty |
|
2015-10-30 15:52:05 |
Ben Howard |
bug task added |
|
cloud-init (Ubuntu Trusty) |
|
2015-10-30 15:52:05 |
Ben Howard |
nominated for series |
|
Ubuntu Vivid |
|
2015-10-30 15:52:05 |
Ben Howard |
bug task added |
|
cloud-init (Ubuntu Vivid) |
|
2015-10-30 15:52:05 |
Ben Howard |
nominated for series |
|
Ubuntu Wily |
|
2015-10-30 15:52:05 |
Ben Howard |
bug task added |
|
cloud-init (Ubuntu Wily) |
|
2015-10-30 15:52:18 |
Ben Howard |
summary |
Azure: cloud-init should use VM unique ID |
[SRU] Azure: cloud-init should use VM unique ID |
|
2015-11-04 17:30:47 |
Dan Watkins |
bug task added |
|
cloud-init |
|
2015-11-04 17:30:53 |
Dan Watkins |
cloud-init: status |
New |
In Progress |
|
2015-11-04 17:30:55 |
Dan Watkins |
cloud-init: assignee |
|
Dan Watkins (daniel-thewatkins) |
|
2015-11-04 17:31:00 |
Dan Watkins |
cloud-init (Ubuntu Xenial): assignee |
Dan Watkins (daniel-thewatkins) |
|
|
2015-11-09 11:34:21 |
Dan Watkins |
branch linked |
|
lp:~daniel-thewatkins/cloud-init/lp1506187 |
|
2015-11-17 19:42:16 |
Ben Howard |
description |
The Azure datasource currently uses the InstanceID from the SharedConfig.xml file. On our new CRP stack, this ID is not guaranteed to be stable and could change if the VM is deallocated. If the InstanceID changes then cloud-init will attempt to reprovision the VM, which could result in temporary loss of access to the VM.
Instead cloud-init should switch to use the VM Unique ID, which is guaranteed to be stable everywhere for the lifetime of the VM. The VM unique ID is explained here: https://azure.microsoft.com/en-us/blog/accessing-and-using-azure-vm-unique-id/
In short, the unique ID is available via DMI, and can be accessed with the command 'dmidecode | grep UUID' or even easier via sysfs in the file "/sys/devices/virtual/dmi/id/product_uuid".
Steve |
SRU JUSTIFICATION
[IMPACT] On Azure, the InstanceID is currently detected via a fabric provided XML file. With the new CRP stack, this ID is not guaranteed to be stable. As a result instances may go re-provision upon reboot.
[FIX] Use DMI data to detect the instance ID and migrate existing instances to the new ID.
[REGRESSION POTENTIAL] The fix is both in the cloud-init code and in the packaging. If the instance ID is not properly migrated, then a reboot may trigger re-provisioning.
[TEST CASES]
1. Boot instance on Azure.
2. Apply cloud-init from -proposed. A migration message should apply.
3. Get the new instance ID:
$ sudo cat /sys/class/dmi/id/product_uuid
4. Confirm that /var/lib/cloud/instance is a symlink to /var/lib/cloud/instances/<UUID from step 3>
5. Re-install cloud-init and confirm that migration message is NOT displayed.
[TEST CASE 2]
1. Build new cloud-image from -proposed
2. Boot up instance
3. Confirm that /sys/class/dmi/id/product_uuid is used to get instance ID (see /var/log/cloud-init.log)
[ORIGINAL REPORT]
The Azure datasource currently uses the InstanceID from the SharedConfig.xml file. On our new CRP stack, this ID is not guaranteed to be stable and could change if the VM is deallocated. If the InstanceID changes then cloud-init will attempt to reprovision the VM, which could result in temporary loss of access to the VM.
Instead cloud-init should switch to use the VM Unique ID, which is guaranteed to be stable everywhere for the lifetime of the VM. The VM unique ID is explained here: https://azure.microsoft.com/en-us/blog/accessing-and-using-azure-vm-unique-id/
In short, the unique ID is available via DMI, and can be accessed with the command 'dmidecode | grep UUID' or even easier via sysfs in the file "/sys/devices/virtual/dmi/id/product_uuid".
Steve |
|
2015-11-17 19:44:46 |
Ben Howard |
attachment added |
|
cloud-init postinst patch for applying new instance ID to existing instances https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1506187/+attachment/4520856/+files/lp-1506187-postinst.diff |
|
2015-11-17 20:18:40 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2015-11-18 16:11:29 |
Ben Howard |
attachment added |
|
debdiff of applied patches for Xenial https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1506187/+attachment/4521457/+files/applied-deb.diff |
|
2015-11-18 17:56:32 |
Ben Howard |
attachment added |
|
diff for cloud-init.preinst.diff https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1506187/+attachment/4521521/+files/cloud-init.preinst.diff |
|
2015-11-18 17:58:08 |
Ben Howard |
attachment added |
|
debdiff for testing https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1506187/+attachment/4521522/+files/bzr1155-bzr1156-deb.diff |
|
2015-11-18 17:58:56 |
Ben Howard |
cloud-init (Ubuntu Precise): assignee |
|
Ben Howard (utlemming) |
|
2015-11-18 17:58:58 |
Ben Howard |
cloud-init (Ubuntu Trusty): assignee |
|
Ben Howard (utlemming) |
|
2015-11-18 17:59:00 |
Ben Howard |
cloud-init (Ubuntu Vivid): assignee |
|
Ben Howard (utlemming) |
|
2015-11-18 17:59:02 |
Ben Howard |
cloud-init (Ubuntu Wily): assignee |
|
Ben Howard (utlemming) |
|
2015-11-18 18:36:23 |
Launchpad Janitor |
branch linked |
|
lp:cloud-init |
|
2015-11-18 19:18:35 |
Launchpad Janitor |
branch linked |
|
lp:~smoser/ubuntu/xenial/cloud-init/lp1506187 |
|
2015-11-18 20:48:42 |
Launchpad Janitor |
cloud-init (Ubuntu Xenial): status |
Confirmed |
Fix Released |
|
2015-11-23 18:39:44 |
Chris J Arges |
cloud-init (Ubuntu Trusty): status |
New |
Fix Committed |
|
2015-11-23 18:39:48 |
Chris J Arges |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2015-11-23 18:39:53 |
Chris J Arges |
bug |
|
|
added subscriber SRU Verification |
2015-11-23 18:40:00 |
Chris J Arges |
tags |
patch |
patch verification-needed |
|
2015-11-23 20:16:28 |
Mathew Hodson |
cloud-init (Ubuntu Precise): importance |
Undecided |
Critical |
|
2015-11-23 20:16:30 |
Mathew Hodson |
cloud-init (Ubuntu Trusty): importance |
Undecided |
Critical |
|
2015-11-23 20:16:32 |
Mathew Hodson |
cloud-init (Ubuntu Vivid): importance |
Undecided |
Critical |
|
2015-11-23 20:16:33 |
Mathew Hodson |
cloud-init (Ubuntu Wily): importance |
Undecided |
Critical |
|
2015-11-30 23:47:13 |
Ben Howard |
tags |
patch verification-needed |
patch verification-done-trusty |
|
2015-12-01 11:26:44 |
Martin Pitt |
cloud-init (Ubuntu Wily): status |
New |
Fix Committed |
|
2015-12-01 11:26:50 |
Martin Pitt |
tags |
patch verification-done-trusty |
patch verification-done-trusty verification-needed |
|
2015-12-01 16:06:15 |
Ben Howard |
tags |
patch verification-done-trusty verification-needed |
patch verification-done verification-done-trusty verification-done-wily |
|
2015-12-02 18:38:44 |
Launchpad Janitor |
cloud-init (Ubuntu Trusty): status |
Fix Committed |
Fix Released |
|
2015-12-02 18:38:49 |
Chris J Arges |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2015-12-09 14:02:57 |
Launchpad Janitor |
cloud-init (Ubuntu Wily): status |
Fix Committed |
Fix Released |
|
2015-12-10 13:48:29 |
Dan Watkins |
cloud-init: status |
In Progress |
Fix Released |
|
2016-03-09 23:48:57 |
Patricia Gaughen |
cloud-init (Ubuntu Precise): importance |
Critical |
High |
|
2016-03-09 23:49:03 |
Patricia Gaughen |
cloud-init (Ubuntu Vivid): status |
New |
Won't Fix |
|
2016-03-18 19:00:26 |
Ben Howard |
cloud-init (Ubuntu Precise): assignee |
Ben Howard (utlemming) |
|
|
2016-04-25 12:12:15 |
Dan Watkins |
cloud-init (Ubuntu Precise): assignee |
|
Dan Watkins (daniel-thewatkins) |
|
2016-04-25 12:12:18 |
Dan Watkins |
cloud-init (Ubuntu Precise): status |
New |
In Progress |
|
2016-04-25 20:56:20 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-proposed/cloud-init |
|
2016-04-26 12:57:14 |
Chris J Arges |
cloud-init (Ubuntu Precise): status |
In Progress |
Fix Committed |
|
2016-04-26 12:57:20 |
Chris J Arges |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2016-04-26 12:57:28 |
Chris J Arges |
tags |
patch verification-done verification-done-trusty verification-done-wily |
patch verification-done-trusty verification-done-wily |
|
2016-04-26 12:57:29 |
Chris J Arges |
tags |
patch verification-done-trusty verification-done-wily |
patch verification-done-trusty verification-done-wily verification-needed |
|
2016-04-26 15:13:38 |
Dan Watkins |
tags |
patch verification-done-trusty verification-done-wily verification-needed |
patch verification-done-precise verification-done-trusty verification-done-wily verification-needed |
|
2016-04-26 15:13:46 |
Dan Watkins |
tags |
patch verification-done-precise verification-done-trusty verification-done-wily verification-needed |
patch verification-done-precise verification-done-trusty verification-done-wily |
|
2016-05-04 16:49:34 |
Launchpad Janitor |
cloud-init (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2016-05-31 13:25:27 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/trusty/cloud-init |
|
2023-05-10 09:21:11 |
James Falcon |
bug watch added |
|
https://github.com/canonical/cloud-init/issues/2587 |
|