[Openstack-operators] Renaming a compute node

Mathieu Gagné mgagne at iweb.com
Thu Sep 25 14:17:46 UTC 2014


Hi Tim,

On 2014-09-25 3:01 AM, Tim Bell wrote:
>> -----Original Message-----
>> From: Mathieu Gagné [mailto:mgagne at iweb.com]
>>
>> Lets say I wish to rename a compute node. How should I proceed?
>>
>> Is there someone will a script lying around for that purpose? =)
>>
>
> How about nova rename ? You'll need to do some work to get the VM hostname etc. changed though as I don't think cloud init will do all of this for you.
>
> $ nova help rename
> usage: nova rename <server> <name>
>
> Rename a server.
>
> Positional arguments:
>    <server>  Name (old name) or ID of server.
>    <name>    New name for the server.
>

Thanks for your answer. Unfortunately, I'm more interested in renaming 
the actual compute node (host) than the instance (virtual machine) itself.

-- 
Mathieu



More information about the OpenStack-operators mailing list