Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
11.5. Troubleshooting "No Valid Host Found" Errors
Sometimes the
/var/log/nova/nova-conductor.log contains the following error:
NoValidHost: No valid host was found. There are not enough hosts available.
NoValidHost: No valid host was found. There are not enough hosts available.
This means the nova Scheduler could not find a bare metal node suitable for booting the new instance. This in turn usually means a mismatch between resources that nova expects to find and resources that ironic advertised to nova. Check the following in this case:
- Make sure introspection succeeds for you. Otherwise check that each node contains the required ironic node properties. For each node:
ironic node-show [NODE UUID]
$ ironic node-show [NODE UUID]Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check thepropertiesJSON field has valid values for keyscpus,cpu_arch,memory_mbandlocal_gb. - Check that the nova flavor used does not exceed the ironic node properties above for a required number of nodes:
nova flavor-show [FLAVOR NAME]
$ nova flavor-show [FLAVOR NAME]Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Check that sufficient nodes are in the
availablestate according toironic node-list. Nodes inmanageablestate usually mean a failed introspection. - Check the nodes are not in maintenance mode. Use
ironic node-listto check. A node automatically changing to maintenance mode usually means incorrect power credentials. Check them and then remove maintenance mode:ironic node-set-maintenance [NODE UUID] off
$ ironic node-set-maintenance [NODE UUID] offCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If you're using the Automated Health Check (AHC) tools to perform automatic node tagging, check that you have enough nodes corresponding to each flavor/profile. Check the
capabilitieskey inpropertiesfield forironic node-show. For example, a node tagged for the Compute role should containprofile:compute. - It takes some time for node information to propagate from ironic to nova after introspection. The director's tool usually accounts for it. However, if you performed some steps manually, there might be a short period of time when nodes are not available to nova. Use the following command to check the total resources in your system.:
nova hypervisor-stats
$ nova hypervisor-statsCopy to Clipboard Copied! Toggle word wrap Toggle overflow