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

Fox, Kevin M Kevin.Fox at pnnl.gov
Thu May 21 23:41:23 UTC 2015


If thats true, then it could probably be changed and a note placed in the release/migration notes.

Thanks,
Kevin

________________________________
From: Chris Friesen
Sent: Thursday, May 21, 2015 4:18:20 PM
To: openstack-dev at lists.openstack.org
Subject: Re: [openstack-dev] [Nova][libvirt] Understand why we lookup libvirt domains by instance name

On 05/21/2015 03:42 PM, Mathieu Gagné wrote:
> On 2015-05-21 3:38 PM, Chris Friesen wrote:
>> On 05/21/2015 03:20 PM, Mathieu Gagné wrote:
>>> On 2015-05-21 3:13 AM, Daniel P. Berrange wrote:
>>>> You do know you can configure the instance name used...
>>>>
>>>> eg in nova.conf
>>>>
>>>>     instance_name_template='inst-%(uuid)s'
>>>>
>>>
>>> Please note that you CANNOT change instance_name_template ones instances
>>> are created otherwise they become unmanageable by Nova. This is because
>>> Nova tries to find the libvirt instance by its name instead of its UUID.
>>> So since instances were spawned with the old value, it won't find
>>> existing instances using the new value.
>>>
>>> And no, I haven't found a way to rename an instance without
>>> redefining/restarting it in libvirt.
>>
>> Is there any reason why we couldn't default to using something like
>> 'inst-%(uuid)s' for the instance name?
>>
>
> I guess it's for the reason I mentioned above:
>
> To not break all OpenStack installations on Earth running with default
> config values.
>

So that's not breaking *upgrades* of all OpenStack installations with default
config values, which is a slightly different thing.

Chris

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150521/b7406b28/attachment.html>


More information about the OpenStack-dev mailing list