fir3net
PPS-Firenetbanner-780.5x190-30-03-17

OpenStack - NoValidHost: No valid host was found

Issue

When creating a new instance within OpenStack you observe the following error,

==> /var/log/nova/nova-conductor.log <==
... u"RescheduledException: Build of instance xxx-yyy-zzz was re-scheduled: internal error: no supported architecture for os type 'hvm'\n"]
... NoValidHost: No valid host was found. There are not enough hosts available.

Solution

This due to running OpenStack within a virtual machine. As on the compute host you are trying to run KVM but the virtualisation extensions KVM require are not available [1].

To resolve the issue edit your /etc/nova/nova.conf to use qemu.

libvirt_type=qemu

Reference

[1] https://ask.openstack.org/en/question/7519/instance-error-caused-by-libvirterror-internal-error-no-supported-architecture-for-os-type-hvm/ 

Tags: OpenStack

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001