<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Why not use nova/keystone to rename instance/project</div>
<div><br>
</div>
<div># nova rename <instance_name> <new_<span style="font-style: italic;">instance_</span>name></div>
<div><br>
</div>
<div>Also you cane rename a project using keystone:</div>
<div><br>
</div>
<div># keystone tenant-update --name <new_name> <tenant_id></div>
<div><br>
</div>
<div>Ali</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Alex Leonhardt <<a href="mailto:aleonhardt.py@gmail.com">aleonhardt.py@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, August 21, 2014 at 6:15 AM<br>
<span style="font-weight:bold">To: </span>Juan José Pavlik Salles <<a href="mailto:jjpavlik@gmail.com">jjpavlik@gmail.com</a>><br>
<span style="font-weight:bold">Cc: </span>openstack-operators <<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack-operators] Rename VM (was: how can I make a new VM use the project name as sub-domain ?)<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">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
<div><br>
</div>
<div>Alex</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 21 August 2014 14:12, Juan José Pavlik Salles <span dir="ltr">
<<a href="mailto:jjpavlik@gmail.com" target="_blank">jjpavlik@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">If it is extremly necesary you could change it from the DB, but is not an API call at all. </div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-08-21 9:40 GMT-03:00 Tim Bell <span dir="ltr"><<a href="mailto:Tim.Bell@cern.ch" target="_blank">Tim.Bell@cern.ch</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5"><br>
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.<br>
<br>
Tim<br>
<br>
On 21 Aug 2014, at 10:35, Alex Leonhardt <<a href="mailto:aleonhardt.py@gmail.com" target="_blank">aleonhardt.py@gmail.com</a>> wrote:<br>
<br>
> HI guys,<br>
><br>
> any clues what API call I can make to nova-api to rename a VM ?<br>
><br>
> Alex<br>
><br>
><br>
<br>
<br>
</div>
</div>
_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote>
</div>
<span class="HOEnZb"><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Pavlik Salles Juan José
<div>Blog - <a href="http://viviendolared.blogspot.com" target="_blank">http://viviendolared.blogspot.com</a></div>
</div>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>