[Openstack-operators] Rename VM (was: how can I make a new VM use the project name as sub-domain ?)

Alex Leonhardt aleonhardt.py at gmail.com
Thu Aug 21 16:50:24 UTC 2014


It's ok - my changes do what I needed it to do w/o needing to call APIs
etc. :) .. I've also pushed it to nova and is waiting for review, etc. :

https://github.com/alex-leonhardt/nova/commit/b4680e59481230673cd898eba2ba0db7a7801ce0

Thanks for your help all!
Alex


On 21 August 2014 16:41, Ahmed Ali (ahmeali) <ahmeali at cisco.com> wrote:

>  Why not use nova/keystone to rename instance/project
>
>  # nova rename <instance_name> <new_instance_name>
>
>  Also you cane rename a project using keystone:
>
>  # keystone tenant-update --name <new_name> <tenant_id>
>
>  Ali
>
>   From: Alex Leonhardt <aleonhardt.py at gmail.com>
> Date: Thursday, August 21, 2014 at 6:15 AM
> To: Juan José Pavlik Salles <jjpavlik at gmail.com>
> Cc: openstack-operators <openstack-operators at lists.openstack.org>
> Subject: Re: [Openstack-operators] Rename VM (was: how can I make a new
> VM use the project name as sub-domain ?)
>
>   actually, I found it in compute/api.py - inside the use of the
> templating for when you create more than 1 VM - all I need is to add
> context.project_name - i'll add this in properly this week and make a pull
> req to openstack nova api so everyone can add the project_id and/or the
> project_name as part of the hostname/s
>
>  Alex
>
>
> On 21 August 2014 14:12, Juan José Pavlik Salles <jjpavlik at gmail.com>
> wrote:
>
>> If it is extremly necesary you could change it from the DB, but is not an
>> API call at all.
>>
>>
>> 2014-08-21 9:40 GMT-03:00 Tim Bell <Tim.Bell at cern.ch>:
>>
>>>
>>> I don't think there is a rename VM command.  I could not find a rename
>>> project command either when I looked in the past.
>>>
>>> Tim
>>>
>>> On 21 Aug 2014, at 10:35, Alex Leonhardt <aleonhardt.py at gmail.com>
>>> wrote:
>>>
>>> > HI guys,
>>> >
>>> > any clues what API call I can make to nova-api to rename a VM ?
>>> >
>>> > Alex
>>> >
>>> >
>>>
>>>
>>>  _______________________________________________
>>> OpenStack-operators mailing list
>>> OpenStack-operators at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>>
>>
>>
>>
>>  --
>> Pavlik Salles Juan José
>> Blog - http://viviendolared.blogspot.com
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20140821/cf909d10/attachment.html>


More information about the OpenStack-operators mailing list