← Back to team overview

openstack team mailing list archive

Re: how to let the instance name (instance-xxx) equal to the hostname of the instance (chosen by the user)??

 

On Nov 28, 2012, at 2:16 PM, Vishvananda Ishaya <vishvananda@xxxxxxxxx> wrote:

> 
> On Nov 28, 2012, at 2:08 PM, Sébastien Han <han.sebastien@xxxxxxxxx> 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

Follow ups

References