[openstack-dev] [Nova][libvirt] Understand why we lookup libvirt domains by instance name

Robert Collins robertc at robertcollins.net
Wed May 20 22:09:20 UTC 2015


On 21 May 2015 at 10:01, Michael Still <mikal at stillhq.com> wrote:
> I note that we use instance.name to lookup the libvirt domain a bunch
> in the driver. I'm wondering why we don't just use instance.uuid all
> the time -- the code for that already exists. Is there a good reason
> to not move to always using the uuid?
>
> I ask because instance.name is not guaranteed to be unique depending
> on how weird the nova deployment is.

I don't know. I know that we had issues with nova-baremetal and around
the start of Ironic and IIRC moved to uuids everywhere as a result.

-Rob

-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud



More information about the OpenStack-dev mailing list