<div dir="ltr"><div>hi Bob, <br><br></div>I don't have any vm/instance on that compute/xenserver , I'm deleted all vm since last week.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 18, 2017 at 6:03 PM, Bob Ball <span dir="ltr"><<a href="mailto:bob.ball@citrix.com" target="_blank">bob.ball@citrix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-GB">
<div class="m_-4613525490519490672WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Adhi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Very interesting.  I suspect that  self._get_vif_ref, below, is returning None.  This appears to be when the VM does not exist on the
 host - perhaps the VM was renamed, deleted, or it has been migrated to a different host and Nova’s records didn’t get updated?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I believe the issue is most likely occurring at
<a href="http://git.openstack.org/cgit/openstack/nova/tree/nova/virt/xenapi/vif.py?h=15.0.4#n246" target="_blank">
http://git.openstack.org/cgit/<wbr>openstack/nova/tree/nova/virt/<wbr>xenapi/vif.py?h=15.0.4#n246</a> where we attempt to detect the VM based on the instance’s name in Nova’s database.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Do you have VMs on this host? They don’t have to be running (for example if the host rebooted then the VMs may exist but in a shutdown
 state)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Could you check that the VMs that are on the host still have the name associated with them according to Nova?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">For example:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">root@host~/openrc# openstack server show 3662f9b8-1303-496a-8c21-<wbr>97bba312432c<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">| OS-EXT-SRV-ATTR:instance_name <wbr>       | instance-0000914e             <wbr>                              <wbr>                              <wbr>                              <wbr>     
                               <wbr>                |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">| name                          <wbr>       | dsvm-devstack-citrix-mia-<wbr>nodepool-683420               <wbr>                              <wbr>                              <wbr>                              <wbr>                     
      |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In this case, the server has the name dsvm-devstack-citrix-mia-<wbr>nodepool-683420 but on the hypervisor the VM itself has the name  instance-0000914e<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Bob<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> Adhi Priharmanto [mailto:<a href="mailto:adhi.pri@gmail.com" target="_blank">adhi.pri@gmail.com</a>]
<br>
<b>Sent:</b> 18 May 2017 10:34<br>
<b>To:</b> openstack <<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><wbr>><br>
<b>Subject:</b> [Openstack] [Ocata-Xenserver] Nova-compute wouldn't start<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div><div><div class="h5">
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi all, <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have openstack RDO ocata using xenserver as Hypervisor, setup manually. It works fine about 2 weeks, today my nova-compute wouldn't start and when I check the nova-compute log :<u></u><u></u></p>
<div style="margin-left:30.0pt">
<p class="MsoNormal"><span style="font-family:"Courier New"">2017-05-18 16:29:24.769 10764 INFO nova.service [-] Starting compute node (version 15.0.0-1.el7)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service [req-f29142ce-c68a-4d0a-b6ff-<wbr>ba5b0a67ec6a - - - - -] Error starting thread.<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service Traceback (most recent call last):<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/oslo_service/service.<wbr>py", line 722, in run_service<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     service.start()<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/nova/service.py", line 144, in start<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     self.manager.init_host()<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/nova/compute/manager.<wbr>py", line 1152, in init_host<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     self._init_instance(context, instance)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/nova/compute/manager.<wbr>py", line 949, in _init_instance<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     self.driver.plug_vifs(<wbr>instance, net_info)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/nova/virt/xenapi/<wbr>driver.py", line 309, in plug_vifs<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     self._vmops.plug_vifs(<wbr>instance, network_info)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/nova/virt/xenapi/<wbr>vmops.py", line 1959, in plug_vifs<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     self.vif_driver.plug(instance, vif, device=device)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/nova/virt/xenapi/vif.<wbr>py", line 250, in plug<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     vif_ref = self._get_vif_ref(vif, vm_ref)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/nova/virt/xenapi/vif.<wbr>py", line 42, in _get_vif_ref<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     vif_refs = self._session.call_xenapi("VM.<wbr>get_VIFs", vm_ref)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/os_xenapi/client/<wbr>session.py", line 200, in call_xenapi<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     return session.xenapi_request(method, args)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib/python2.7/site-<wbr>packages/os_xenapi/client/<wbr>XenAPI.py", line 130, in xenapi_request<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     result = _parse_result(getattr(self, methodname)(*full_params))<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib64/python2.7/<wbr>xmlrpclib.py", line 1233, in __call__<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     return self.__send(self.__name, args)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib64/python2.7/<wbr>xmlrpclib.py", line 1581, in __request<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     allow_none=self.__allow_none)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib64/python2.7/<wbr>xmlrpclib.py", line 1086, in dumps<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     data = m.dumps(params)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib64/python2.7/<wbr>xmlrpclib.py", line 633, in dumps<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     dump(v, write)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib64/python2.7/<wbr>xmlrpclib.py", line 655, in __dump<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     f(self, value, write)<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service   File "/usr/lib64/python2.7/<wbr>xmlrpclib.py", line 659, in dump_nil<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service     raise TypeError, "cannot marshal None unless allow_none is enabled"<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service TypeError: cannot marshal None unless allow_none is enabled<br>
2017-05-18 16:29:24.847 10764 ERROR oslo_service.service </span><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Anyone can help me with this problem ?<br clear="all">
<u></u><u></u></p>
</div></div><div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif">Cheers,</span><u></u><u></u></p>
<table class="m_-4613525490519490672MsoNormalTable" style="border-color:currentcolor;outline:0px none;border-spacing:0px" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr style="height:22.5pt;border-color:currentcolor;outline:0px none;font-weight:inherit;font-style:inherit">
<td style="width:.3pt;padding:0cm 0cm 0cm 0cm;height:22.5pt;border-color:currentcolor;outline:0px none;font-style:inherit" width="0" valign="bottom">
<p class="MsoNormal" style="line-height:13.65pt"><span style="font-size:1.0pt;font-family:"inherit",serif;color:#333333"> <u></u><u></u></span></p>
</td>
</tr>
<tr style="border-color:currentcolor;outline:0px none;font-weight:inherit;font-style:inherit">
<td style="width:.3pt;padding:0cm 0cm 0cm 0cm;border-color:currentcolor;outline:0px none;font-style:inherit" width="0" valign="bottom">
<table class="m_-4613525490519490672MsoNormalTable" style="border-color:currentcolor;outline:0px none;font-weight:inherit;font-style:inherit;border-spacing:0px" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr style="border-color:currentcolor;outline:0px none;font-style:inherit">
<td style="width:.3pt;padding:0cm 0cm 0cm 0cm;border-color:currentcolor;outline:0px none;font-weight:inherit;font-style:inherit;display:inline-block" width="0" valign="top">
<p class="MsoNormal"><span style="font-family:"inherit",serif"><u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="vertical-align:baseline"><b><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif;color:#333333">Adhi Priharmanto<u></u><u></u></span></b></p>
</div>
<div style="margin-top:2.25pt;border-color:currentcolor;outline:0px none;font-weight:inherit;font-style:inherit">
<p class="MsoNormal" style="vertical-align:baseline"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#2b82ad"><a href="http://about.me/a_dhi" target="_blank">about.me/a_dhi</a><u></u><u></u></span></p>
</div>
</td>
</tr>
<tr style="border-color:currentcolor;outline:0px none;font-weight:inherit;font-style:inherit">
<td style="width:.3pt;padding:6.0pt 0cm 0cm 0cm;border-color:currentcolor;outline:0px none;font-style:inherit" width="0" valign="top">
<p class="MsoNormal" style="text-align:right;background:#c5d0e0;vertical-align:baseline" align="right">
<span style="font-family:"inherit",serif"><img id="m_-4613525490519490672_x0000_i1025" src="http://d13pix9kaak6wt.cloudfront.net/signature/colorbar.png" width="88" border="0" height="4"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height:0%;vertical-align:baseline"><span style="font-size:10.5pt;font-family:"inherit",serif;color:#333333"> 
<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:15.0pt;border-color:currentcolor;outline:0px none;font-weight:inherit;font-style:inherit">
<td style="width:.3pt;padding:0cm 0cm 0cm 0cm;height:15.0pt;border-color:currentcolor;outline:0px none;font-style:inherit" width="0" valign="bottom">
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"><a href="tel:+62%20812-8212-1584" value="+6281282121584" target="_blank">+62-812-82121584</a></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font size="2"><span style="font-family:trebuchet ms,sans-serif">Cheers,</span><br style="font-family:trebuchet ms,sans-serif"><br></font><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;vertical-align:baseline;border-spacing:0px;color:rgb(51,51,51);line-height:18.2000007629395px"><tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:30px"> </td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;width:auto"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;line-height:0"><a href="http://about.me/a_dhi?promo=email_sig" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;color:rgb(58,169,233);text-decoration:none;display:inline-block" target="_blank"><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;border-spacing:0px"><tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td align="left" valign="top" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:top;width:auto;line-height:1"><img alt="--" width="0" height="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block;width:0px;height:0px;overflow:hidden"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-size:18px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline;line-height:1;color:rgb(51,51,51)">Adhi Priharmanto</div><div style="margin:3px 0px 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-size:12px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline;color:rgb(43,130,173)"><img alt="http://" width="0" height="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block;width:0px;height:0px;overflow:hidden">about.me/a_dhi</div></td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td align="left" valign="top" style="padding:8px 0px 0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:top;width:auto;line-height:1"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;text-align:right;height:4px;background-color:rgb(197,208,224)"><img src="http://d13pix9kaak6wt.cloudfront.net/signature/colorbar.png" alt="" width="88" height="4" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;float:right;display:block"></div></td></tr></tbody></table></a>                              </div></td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:20px"></td></tr></tbody></table><font size="2"><span style="font-family:trebuchet ms,sans-serif">+62-812-82121584<br></span></font></div><div><font size="2"><span style="font-family:trebuchet ms,sans-serif"><br></span></font></div></div></div></div></div>
</div>