Ask Your Question

Can we resize a VM to same host?

asked 2016-11-16 16:40:29 -0500

karthikeayan gravatar image

updated 2016-11-16 16:42:13 -0500

Is there any clean way in Openstack Nova to resize a VM into the same compute host?

I have tried setting "allow_resize_to_same_host=True" in controller and compute hosts and restarting all the nova services in both hosts, but still VM is moving to another host. As this option is only for adding the current host into available destination hosts.

I know it can be achievable by creating availability zone with only one host, or by bringing down the compute service in all the compute hosts expect for the host which the VM resides.

But is there any way by configuring some settings in nova conf file?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-11-18 05:30:27 -0500

volenbovsky gravatar image


that is designed behaviour of the feature - so that allow_resize_to_same_host doesn't _force_ the VM to be scheduled on that Compute Host. See discussion in - you can consider implementing code changes proposed in or writing new bug report with suggesting allow/forbid/require, as pointed out by Joe Gordon in review

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-11-16 16:40:29 -0500

Seen: 920 times

Last updated: Nov 18 '16