Ask Your Question
0

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
0

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

volenbovsky gravatar image

Hi,

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 https://bugs.launchpad.net/nova/+bug/... - you can consider implementing code changes proposed in https://review.openstack.org/#/c/117116/ or writing new bug report with suggesting allow/forbid/require, as pointed out by Joe Gordon in review

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 708 times

Last updated: Nov 18 '16