<div dir="ltr"><div><div><div><div>Hi Daniel<br><br></div>Thanks for the help.<br></div>The end result of my setup is that the VM is stucking at Spawning state on my compute node whereas it is working fine on the controller node.<br>
</div>Therefore I'm comparing nova-compute logs of both compute node as well as controller node and trying to proceed step by step.<br></div><div>I'm having all the above packages enabled<br></div><div><br></div><div>
Do you have any idea regarding reason for VM stucking at spawning state.<br></div><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 27, 2014 at 2:38 PM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:<br>
> Hi<br>
> Below is the code to which I'm going to reffer to..<br>
><br>
> vim /opt/stack/nova/nova/virt/disk/vfs/api.py<br>
><br>
> #####################################################################<br>
><br>
> try:<br>
> LOG.debug(_("Trying to import guestfs"))<br>
> importutils.import_module("guestfs")<br>
> hasGuestfs = True<br>
> except Exception:<br>
> pass<br>
><br>
> if hasGuestfs:<br>
> LOG.debug(_("Using primary VFSGuestFS"))<br>
> return importutils.import_object(<br>
> "nova.virt.disk.vfs.guestfs.VFSGuestFS",<br>
> imgfile, imgfmt, partition)<br>
> else:<br>
> LOG.debug(_("Falling back to VFSLocalFS"))<br>
> return importutils.import_object(<br>
> "nova.virt.disk.vfs.localfs.VFSLocalFS",<br>
> imgfile, imgfmt, partition)<br>
><br>
> #######################################################<br>
><br>
> When I'm launching VM from the controller node onto compute node,the<br>
> nova compute logs on the compute node displays...Falling back to<br>
> VFSLocalFS and the result is that the VM is stuck in spawning state.<br>
> However When I'm trying to launch a VM onto controller node form the<br>
> controller node itself,the nova compute logs on the controller node<br>
> dislpays ...Using primary VFSGuestFS and I'm able to launch VM on<br>
> controller node.<br>
> Is there any module in the kernel or any package that i need to<br>
> enable.Please help regarding this.<br>
<br>
</div></div>VFSGuestFS requires the libguestfs python module & corresponding native<br>
package to be present, and only works with KVM/QEMU enabled hosts.<br>
<br>
VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and<br>
a few other misc host tools<br>
<br>
Neither of these should cause a VM getting stuck in the spawning<br>
state, even if stuff they need is missing.<br>
<br>
Regards,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888">--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a> -o- <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a> -o- <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a> -o- <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a> -o- <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></span></blockquote></div><br></div>