<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">hi all,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">hoping someone could shed some light on this issue I’ve worked on several days.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">I have installed openstack through devstack and it works well when I create an instance.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">stack@ubuntu:/var/run$ openstack server list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+-------+--------+--------------------------------+--------------------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">| ID | Name | Status | Networks | Image | Flavor |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+-------+--------+--------------------------------+--------------------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">| 6d6ac274-0f0b-4576-8f54-07e006214c9b | ins_1 | ACTIVE | public=172.24.4.4, 2001:db8::3 | cirros-0.3.5-x86_64-disk | m1.tiny |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+-------+--------+--------------------------------+--------------------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The default version of libvirt is 2.5.0 while I want to use libvirt 3.4.0. What I have done is to install libvirt 3.4.0 manully since no apt repo has such version of libvirt.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">To check libvirt version,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">virsh # version<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Compiled against library: libvirt 3.4.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Using library: libvirt 3.4.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Using API: QEMU 3.4.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Running hypervisor: QEMU 2.9.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">However, my openstack seems to lose connetion with the new version of libvirt. It shows error when I create a new instance.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">stack@ubuntu:/var/run$ openstack server list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+-------+--------+--------------------------------+--------------------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">| ID | Name | Status | Networks | Image | Flavor |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+-------+--------+--------------------------------+--------------------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">| 59369bec-7015-449b-bd4e-85f3237a3228 | ins_2 | ERROR | | cirros-0.3.5-x86_64-disk | m1.tiny |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">| 6d6ac274-0f0b-4576-8f54-07e006214c9b | ins_1 | ACTIVE | public=172.24.4.4, 2001:db8::3 | cirros-0.3.5-x86_64-disk | m1.tiny |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+-------+--------+--------------------------------+--------------------------+---------+</span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">The log shows<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Failed to schedule instances:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 232, in inner<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> return func(*args, **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> File "/home/stack/nova/nova/scheduler/manager.py", line 149, in select_destinations<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> alloc_reqs_by_rp_uuid, provider_summaries)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> File "/home/stack/nova/nova/scheduler/filter_scheduler.py", line 110, in select_destinations<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> raise exception.NoValidHost(reason=reason)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">NoValidHost: No valid host was found. There are not enough hosts available.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/home/stack/nova/nova/conductor/manager.py", line 1034, in schedule_and_build_ins<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager instance_uuids)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/home/stack/nova/nova/conductor/manager.py", line 626, in _schedule_instances<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager request_spec, instance_uuids)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/home/stack/nova/nova/scheduler/utils.py", line 586, in wrapped<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager return func(*args, **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/home/stack/nova/nova/scheduler/client/__init__.py", line 52, in select_destinati<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager instance_uuids)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/home/stack/nova/nova/scheduler/client/__init__.py", line 37, in __run_method<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager return getattr(self.instance, __name)(*args, **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/home/stack/nova/nova/scheduler/client/query.py", line 33, in select_destinations<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager instance_uuids)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/home/stack/nova/nova/scheduler/rpcapi.py", line 137, in select_destinations<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager return cctxt.call(ctxt, 'select_destinations', **msg_args)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 169, i<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager retry=self.retry)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 123, in<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager timeout=timeout, retry=retry)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", li<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager retry=retry)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", li<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager raise result<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ERROR nova.conductor.manager NoValidHost_Remote: No valid host was found. There are not enough hosts available.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">What can I do to let openstack connect to the new libvirt?<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">thanks!!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">--huanglingyan</span><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>