[Openstack] how to let the instance name (instance-xxx) equal to the hostname of the instance (chosen by the user)??

Vishvananda Ishaya vishvananda at gmail.com
Wed Nov 28 22:19:27 UTC 2012


On Nov 28, 2012, at 2:16 PM, Vishvananda Ishaya <vishvananda at gmail.com> wrote:

> 
> On Nov 28, 2012, at 2:08 PM, Sébastien Han <han.sebastien at gmail.com> wrote:
> 
>> Hi,
>> 
>> Just tried this, it works but I'd also like to rename /var/lib/nova/instances/ according to the hostname. At the moment this only rename (output from nova show):
>> 
>> | OS-EXT-SRV-ATTR:instance_name       | mon-nom   
>> 
>> Is it possible?
>> 
>> Cheers!
> 
> Changing the name should change the dir in /var/lib/nova/instances, although it must be in nova.conf on the compute host and nova-compute will need to be restarted before you launch the instance.
> 
> Vish
> 

Also the name is not unique, so if you do this you will have big problems if two users chose the same name.

Vish



More information about the Openstack mailing list