yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02708
[Bug 1162029] Re: xenapi: nova_instance_uuid not set for root image
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => havana-1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1162029
Title:
xenapi: nova_instance_uuid not set for root image
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
In the xenapi driver, VDIs should be annotated with the disk-type and
instance-uuid in the `other_config` attribute.
This is used to associate a VDI with an instance so that we can safely
remove it in the event that it becomes orphaned (see
cleanup_attached_vdis).
Currently this is only being set in `create_vdi`. Unfortunately,
doesn't account for root VDIs which are created implicitly by glance-
plugin dropping a new VHD into the SR.
The solution is to modify the glance-plugin (or the compute-calling
code) to add the other config.
For a cleanup script, we can populate VDI's that are missing this data
by finding the sibling 'swap' VDI, and copying that info into the root
VDI (changing disk type from swap to root).
Things to account for:
* Thin-provisioned images, does the `use_cow` path handle this?
* Bit-torrented images
* Snapshotted images
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1162029/+subscriptions