I tried 'virsh list', and the command hangs. At first i thought it was because of KVM, since the vm does not support it. I remember having the same problem with diablo, but it would only result in error when the instance was being launched on the compute service. So i changed "libvirt_type=kvm" to "libvirt_type=qemu".<div>
<br></div><div>However, the problem still remains: "virsh list" still hangs and compute refuses to leave the state "XXX".<br><br><div class="gmail_quote">On Wed, May 16, 2012 at 12:51 PM, Day, Phil <span dir="ltr"><<a href="mailto:philip.day@hp.com" target="_blank">philip.day@hp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">So the things to check are:<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><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Is the nova-compute service running ?  If not the nova-compute.log should show why its failing<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><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If it is running then it probably means that its getting stuck on some long running issue (e.g as down loading an image, problems talking to libvirt, slow response from the DB, etc).     XXX in this case means that its slow in updating its services entry rather than failed as such<u></u><u></u></span></p>
<p><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">Phil<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 lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openstack-bounces+philip.day=<a href="mailto:hp.com@lists.launchpad.net" target="_blank">hp.com@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Bphilip.day" target="_blank">openstack-bounces+philip.day</a>=<a href="mailto:hp.com@lists.launchpad.net" target="_blank">hp.com@lists.launchpad.net</a>] <b>On Behalf Of </b>Leander Bessa Beernaert<br>
<b>Sent:</b> 16 May 2012 12:19<br><b>To:</b> Gurjar, Unmesh<br><b>Cc:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br><b>Subject:</b> Re: [Openstack] [Compute] nova-compute does not show up as ":-)" in nova-manage service list<u></u><u></u></span></p>
<div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">Shouldn't nova-network and nova-scheduler also fail then, since they share the same config file? If so, that's not what's happening with me, only the compute service is listed as "XXX".<u></u><u></u></p>
<div><p class="MsoNormal">On Wed, May 16, 2012 at 12:10 PM, Gurjar, Unmesh <<a href="mailto:Unmesh.Gurjar@nttdata.com" target="_blank">Unmesh.Gurjar@nttdata.com</a>> wrote:<u></u><u></u></p><div><div><p class="MsoNormal">
<span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Leander,</span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The issue is the Compute is not updating its heartbeat (services table in the nova database), which is causing this.</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You probably need to check database connection string in the nova.conf on the  Compute host and the db connection from the Compute host is working.</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Thanks & Regards,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Unmesh Gurjar</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"> | Lead Engineer | Vertex Software Private Ltd. | <b>w.</b> <a href="tel:%2B91.20.6604.1500%20x%20379" target="_blank">+91.20.6604.1500 x 379</a> | <b>m.</b> <a href="tel:%2B91.982.324.7631" target="_blank">+91.982.324.7631</a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif""> | <a href="mailto:unmesh.gurjar@nttdata.com" target="_blank">unmesh.gurjar@nttdata.com</a> | <span style="color:#1f497d">Follow us on Twitter@NTTDATAAmericas</span></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openstack-bounces+unmesh.gurjar=<a href="mailto:nttdata.com@lists.launchpad.net" target="_blank">nttdata.com@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Bunmesh.gurjar" target="_blank">openstack-bounces+unmesh.gurjar</a>=<a href="mailto:nttdata.com@lists.launchpad.net" target="_blank">nttdata.com@lists.launchpad.net</a>] <b>On Behalf Of </b>Leander Bessa Beernaert<br>
<b>Sent:</b> Wednesday, May 16, 2012 4:30 PM<br><b>To:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br><b>Subject:</b> [Openstack] [Compute] nova-compute does not show up as ":-)" in nova-manage service list</span><span lang="EN-US"><u></u><u></u></span></p>
<div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Hello,<u></u><u></u></span></p><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div>
<div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">I can't get nova-compute to show up as ":-)" under 'nova-manager service list'. I've checked the logs and can't find any error or warning. <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">I'm using the default packages shipped with ubuntu 12.04 and have installed everything in a virtual machine.<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span lang="EN-US">Leander<u></u><u></u></span></p></div></div></div></div><p class="MsoNormal"><span lang="EN-US"><br>______________________________________________________________________<br>
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding<u></u><u></u></span></p>
</div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></blockquote></div><br></div>