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

allow_resize_to_same_host = True
scheduler_default_filters = AllHostsFilter

On Compute, you need to add following lines under DEFAULT section

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

Advertisements
Posted in Openstack