<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>openstack &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/openstack/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Thu, 03 Aug 2017 00:33:55 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>No valid host was found. There are not enough hosts available</title>
		<link>https://blog.richliu.com/2017/08/03/2157/no-valid-host-was-found-there-are-not-enough-hosts-available/</link>
					<comments>https://blog.richliu.com/2017/08/03/2157/no-valid-host-was-found-there-are-not-enough-hosts-available/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Thu, 03 Aug 2017 00:33:55 +0000</pubDate>
				<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[aarch64]]></category>
		<category><![CDATA[arm64]]></category>
		<category><![CDATA[libvirt]]></category>
		<category><![CDATA[openstack]]></category>
		<category><![CDATA[uefi]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=2157</guid>

					<description><![CDATA[<p>OpenStack Horization error message no valid host was fo [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2017/08/03/2157/no-valid-host-was-found-there-are-not-enough-hosts-available/">No valid host was found. There are not enough hosts available</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>OpenStack Horization error message<br />
<span id="more-2157"></span></p>
<pre lang="text">
no valid host was found. There are not enough hosts available.
Code
500
Details
File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", 
line 526, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", 
line 597, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/utils.py", 
line 371, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", 
line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", 
line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) 
File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/query.py", 
line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) 
File "/usr/lib/python2.7/dist-packages/nova/scheduler/rpcapi.py", 
line 129, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) 
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", 
line 169, in call retry=self.retry) 
File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", 
line 97, in _send timeout=timeout, retry=retry) 
File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", 
line 458, in send retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", 
line 449, in _send raise result
</pre>
<p>Possible reason</p>
<p>* if using cloud uefi image, it needs to install qemu-efi package in computer node, don&#8217;t know why it won&#8217;t install it automatically .<br />
   $ apt install qemu-efi<br />
* when add new UEFI image, it needs to add new meta data parameter in Horization<br />
   hw_firmware_type=uefi</p>
<p>if see </p>
<pre lang="text">
2017-08-01 14:02:13.612 2409 ERROR nova.compute.manager [instance: b334f0b3-ca9a-4f9a-b488-532dce00265a] libvirtError: unsupported configuration: logfile not supported in this QEMU binary
2017-08-01 14:02:13.612 2409 ERROR nova.compute.manager [instance: b334f0b3-ca9a-4f9a-b488-532dce00265a]
# Use the "logd" backend for handling stdout/stderr from QEMU processes.
</pre>
<p>Reason<br />
* Libvirt later version support new function, logd, it&#8217;s a new console log function, but ARM64 doesn&#8217;t support it. workaround solution is to disable it</p>
<p>Edit file /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py, find </p>
<pre lang="text">
MIN_LIBVIRT_VIRTLOGD = (1, 3, 3)
MIN_QEMU_VIRTLOGD = (2, 7, 0)
</pre>
<p>Replaced it with</p>
<pre lang="text">
MIN_LIBVIRT_VIRTLOGD = (9, 9, 9)
MIN_QEMU_VIRTLOGD = (9, 9, 9)
</pre>
<p>it can avoid to call libvirt logd function. </p>
<p>rm -f /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.pyc, make sure it will call .py<br />
then, reboot service (or system)</p>
<p>Ref.<br />
http://dozencloud.org/ </p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2017/08/03/2157/no-valid-host-was-found-there-are-not-enough-hosts-available/">No valid host was found. There are not enough hosts available</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2017/08/03/2157/no-valid-host-was-found-there-are-not-enough-hosts-available/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
