No valid host was found. There are not enough hosts available

会有一股神秘感。 提交于 2019-12-13 19:27:14

问题


I have installed openstack (liberty release). All the services are installed on the VM. Now i am trying to integrate the Ironic service and trying to provision the physical server. Nova compute service has configured for baremetal hypervisor and the command "nova hypervisor-stats" shows the correct output.

However, when i am trying to launch the instance from horizon , getting error

No valid host was found. There are not enough hosts available.

somehow , nova compute service is not able to connect to baremetal node OR ironic service. In fact , i have referred the doc : openstack troubleshoot doc

but no luck.

please suggest

Regards


回答1:


This typically happens when Nova scheduler tries to find a suitable host to instantiate your VM and then could not succeed. Nova scheduler first runs the list of all available hosts through a series of filters to narrow down the list to the best possible hosts that are capable of running that instance.

nova-scheduler.log:

... Filter ExactRamFilter returned 0 hosts
... Filtering removed all hosts for the request with reservation ID 'r-mld1goh8' and instance ID '98c49d72-9d8e-4377-bbe0-6dbef187e75a'. Filter results: ['RetryFilter: (start: 3, end: 3)', 'AvailabilityZoneFilter: (start: 3, end: 3)', 'ComputeFilter: (start: 3, end: 3)', 'ComputeCapabilitiesFilter: (start: 3, end: 3)', 'ImagePropertiesFilter: (start: 3, end: 3)', 'ExactRamFilter: (start: 3, end: 0)']

ExactRamFilter tries to match a host with the same amount of RAM as the amount of RAM specified in the flavor chosen for the VM. Either create a new flavor or use an existing flavor with exact RAM as the hosts, and you should be able to create the VM successfully (unless you run into some other issues).



来源:https://stackoverflow.com/questions/37130136/no-valid-host-was-found-there-are-not-enough-hosts-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!