Resize openstack instance on same compute (only one compute node)

If you have only 1 controller and 1 compute node and you want to over commit or resize the instance it will give you error as “Failed to compute_task_migrate_server: No valid host was found. There are not enough hosts available” or “Host filter ignoring hosts: compute1” or “NoValidHost: No valid host was found. There are not enough hosts available.” for that you need config as under for controller and compute

On Controller you need to add following lines under DEFAULT section /etc/nova/nova.conf file

allow_resize_to_same_host = True
scheduler_default_filters = AllHostsFilter

On Compute, you need to add following lines under DEFAULT section /etc/nova/nova.conf file

allow_resize_to_same_host = True

Restart service on controller

sudo service nova-api restart; sudo service nova-consoleauth restart; sudo service nova-scheduler restart; sudo service nova-conductor restart; sudo service nova-novncproxy restart

Restart services on compute

sudo service nova-compute restart

https://ask.openstack.org/en/question/43359/resize-openstack-icehouse-instance-at-same-node-bug/

https://docs.openstack.org/ocata/config-reference/compute/config-options.html

Hi All, I like to spend time on black and white screen with linux. I love to learn new things in linux specially in virtualization. Currently I am working on OpenStack like to dig deep.

Posted in Openstack

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: