[Openstack] Server resize API in OpenStack ESSEX
vishvananda at gmail.com
Mon Dec 10 19:23:01 UTC 2012
The code scps the backing file for the instance to the new node via something along the lines of:
scp /var/lib/nova/instances/instance-xxx/disk <hostname>:/var/lib/nova/instances/instance-xxx/disk
So the hostname has to properly resolve to the ip of the target machine. You should see messages in the compute log about it trying to do this. The error message there might give you a better idea of what failed.
Yes resize will go through the scheduler and usually find a new compute node. The conf option does not force it to use the same host, so it is mostly just there for testing.
On Dec 10, 2012, at 11:12 AM, "Narayanan, Krishnaprasad" <narayana at uni-mainz.de> wrote:
> Hi Vish,
> Thanks for the quick reply. I have passwordless ssh between the compute hosts but could you explain me the first option. When I resize, will the instance redeploy on a different compute node?
> Do I need to specify this flag allow_resize_to_same_host=true in nova.conf of the compute node?
> From: Vishvananda Ishaya [mailto:vishvananda at gmail.com]
> Sent: Montag, 10. Dezember 2012 20:03
> To: Narayanan, Krishnaprasad
> Cc: openstack at lists.launchpad.net
> Subject: Re: [Openstack] Server resize API in OpenStack ESSEX
> 2 requirements:
> 1) hostname for compute hosts resolve properly
> 2) passwordless ssh works between compute hosts.
> On Dec 10, 2012, at 10:37 AM, "Narayanan, Krishnaprasad" <narayana at uni-mainz.de> wrote:
> Hallo All,
> I am trying to use the Nova API (POST call) for changing the flavor information (to resize) from m1.tiny to m1.medium. Even though the API is successful (202 Status code), on the Horizon GUI I could see that the Status is Error and the task state is Resize Prep. I am passing the Auth Token along with the Body information in the form of json as inputs to the API. I have referred this URI for passing the body information.
> I am using OpenStack ESSEX and can I get to know is there any configurations that I need to do in order to get this working?
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openstack