<?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://richliu.com/category/computer/cloud/openstack/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Wed, 18 Oct 2017 02:33:36 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>unsupported configuration: CPU mode &#8216;host-model&#8217; for aarch64 kvm domain on aarch64 host is not supported by hypervisor</title>
		<link>https://richliu.com/2017/10/18/2189/unsupported-configuration-cpu-mode-host-model-for-aarch64-kvm-domain-on-aarch64-host-is-not-supported-by-hypervisor/</link>
					<comments>https://richliu.com/2017/10/18/2189/unsupported-configuration-cpu-mode-host-model-for-aarch64-kvm-domain-on-aarch64-host-is-not-supported-by-hypervisor/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 18 Oct 2017 02:33:36 +0000</pubDate>
				<category><![CDATA[OpenStack]]></category>
		<category><![CDATA[aarch64]]></category>
		<category><![CDATA[arm64]]></category>
		<category><![CDATA[host-model]]></category>
		<category><![CDATA[ocata]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=2189</guid>

					<description><![CDATA[<p>應該改 nova.conf 將 [libvirt] 內的 cpu_mode 改成 host-passthrou [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2017/10/18/2189/unsupported-configuration-cpu-mode-host-model-for-aarch64-kvm-domain-on-aarch64-host-is-not-supported-by-hypervisor/">unsupported configuration: CPU mode &#8216;host-model&#8217; for aarch64 kvm domain on aarch64 host is not supported by hypervisor</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>應該改 nova.conf<br />
將 [libvirt] 內的<br />
cpu_mode 改成 host-passthrough</p>
<p>應該只有影響 ocata </p>
<p>Ref.<br />
<a href="https://docs.openstack.org/juno/config-reference/content/kvm.html" rel="noopener" target="_blank">OpenStack KVM</a></p>
<p><a href="https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1673467" rel="noopener" target="_blank">[ocata] unsupported configuration: CPU mode &#8216;host-model&#8217; for aarch64 kvm domain on aarch64 host is not supported by hypervisor</a></p>
<p>程式解法<br />
<a href="https://git.openstack.org/cgit/openstack/charm-nova-compute/commit/?id=b5d9b18c0afd06b721d78bced96b4c6c19f77834" rel="noopener" target="_blank">aarch64: set default cpu_mode to host-passthrough</a></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2017/10/18/2189/unsupported-configuration-cpu-mode-host-model-for-aarch64-kvm-domain-on-aarch64-host-is-not-supported-by-hypervisor/">unsupported configuration: CPU mode &#8216;host-model&#8217; for aarch64 kvm domain on aarch64 host is not supported by hypervisor</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2017/10/18/2189/unsupported-configuration-cpu-mode-host-model-for-aarch64-kvm-domain-on-aarch64-host-is-not-supported-by-hypervisor/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>No valid host was found. There are not enough hosts available</title>
		<link>https://richliu.com/2017/08/03/2157/no-valid-host-was-found-there-are-not-enough-hosts-available/</link>
					<comments>https://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://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://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://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://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://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://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>
