Re: [openstack-dev] nova-compute vfsguestfs

2014-06-23 Thread abhishek jain
Hi Rich

I'm trying to run VM from controller node onto compute node and it is
stucking at spawning state.I'm able to get the libvirt.xml in
/opt/stack/data/nova/instances/729482302900. on the compute node  and
below is the libvirt.xml file..

domain type="kvm">
  7210aa10-6c98-418a-b97e-94ef2dcbb7f3Hi

I'm trying to run VM from controller node onto compute node and it is
stucking at spawning state.I'm able to get the libvirt.xml in
/opt/stack/data/nova/instances/729482302900. on the compute node  and
below is the libvirt.xml file..

domain type="kvm">
  7210aa10-6c98-418a-b97e-94ef2dcbb7f3
  instance-0003
  524288
  1
  
hvm

/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/kernel

/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/ramdisk
root=/dev/vda console=tty0 console=ttyS0
  
  


  
  


  
  

  
  
  


  
  
  
  


  


  


I'm able to manually run VM through virsh and it is appearing running in
virsh list but I'm not able to understand that why it is not able to run
automatically from the cloud itself.

Below are the steps for running VM manually through virsh..

virsh undefine instance-0003
virsh define libvirt.xml
virsh start  instance-0003

Please help regarding this.

Thanks
  instance-0003
  524288
  1
  
hvm

/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/kernel

/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/ramdisk
root=/dev/vda console=tty0 console=ttyS0
  
  


  
  


  
  

  
  
  


  
  
  
  


  


  


I'm able to manually run VM through virsh and it is appearing running
in virsh list but I'm not able to understand that why it is not able to run
automatically from the cloud itself.

Below are the steps for running VM manually through virsh..

virsh undefine instance-0003
virsh define libvirt.xml
virsh start  instance-0003

Please help regarding this.

Thanks



On Wed, Jun 18, 2014 at 3:55 PM, abhishek jain 
wrote:

> Hi RIch
>
> Thanks for the reply.The libguestfs is working fine here and there are no
> issues regarding that on the ubuntu compute node.From the nova-compute logs
> on the compute node,it appears that the tap interface is not coming up on
> the compute node.
>
> Also in the file driver.py at the path /opt/stack/nova/nova/virt/libvirt
> in the below section,
>
>
>
>
>
>
>
>
>
>
>
> *uuid = dom.UUIDString()if event ==
> libvirt.VIR_DOMAIN_EVENT_STOPPED:transition =
> virtevent.EVENT_LIFECYCLE_STOPPED elif event ==
> libvirt.VIR_DOMAIN_EVENT_STARTED:transition =
> virtevent.EVENT_LIFECYCLE_STARTEDelif event ==
> libvirt.VIR_DOMAIN_EVENT_SUSPENDED:transition =
> virtevent.EVENT_LIFECYCLE_PAUSED elif event ==
> libvirt.VIR_DOMAIN_EVENT_RESUMED:transition =
> virtevent.EVENT_LIFECYCLE_RESUMED*
> the compute node should go in the second part i.e in
>
> *libvirt.VIR_DOMAIN_EVENT_STARTED ,which it it missing. *
> The output of brctl show is follows on the ubuntu compute node--
>
> brctl show
> bridge namebridge idSTP enabledinterfaces
> qbr06865952-4f8000.6654b7d239b7noqvb06865952-4f
> qbr9cbe0875-428000.da3180e79619noqvb9cbe0875-42
> qbrb61ecf20-cf8000.e24a1b9d71c0noqvbb61ecf20-cf
> qbrda8485b3-738000.f602a0f09835noqvbda8485b3-73
>
> The main problem is that the tap interface is not able to come up.Below
> are the nova-compute logs..
>
> ova.virt.libvirt.config [req-6ce8d1f9-5d85-4d4c-a06e-bd8c4d3071ec admin
> admin] Generated XML ^M
>   3a0e6076-1136-47d2-b883-326d7a87e5d4^M
>   instance-0009^M
>   524288^M
>   1^M
>   ^M
> hvm^M
>
> /opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/kernel^M
>
> /opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/ramdisk^M
> root=/dev/vda console=tty0 console=ttyS0^M
>   ^M
>   ^M
> ^M
> ^M
>   ^M
>   ^M
> ^M
> ^M
>   ^M
>   ^M
> ^M
>   ^M
>file="/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/disk"/>^M
>   ^M
> ^M
> ^M
>   ^M
>   ^M
>   ^M
>   ^M
>   ^M
> ^M
> ^M
>path="/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/console.log"/>^M
>
> 365,1036%
>
> Please help regarding this.
>
> Thanks
>
>
>
>
> On Tue, Jun 17, 2014 at 8:05 PM, Richard W.M. Jones 
> wrote:
>
>> On Fri, Jun 13, 2014 at 03:06:25PM +0530, abhishek jain wrote:
>> > Hi Rich
>> >
>> > Can you  help me regarding the possible cause for  VM stucking at
>> spawning
>> > state on ubu

Re: [openstack-dev] nova-compute vfsguestfs

2014-06-18 Thread abhishek jain
Hi RIch

Thanks for the reply.The libguestfs is working fine here and there are no
issues regarding that on the ubuntu compute node.From the nova-compute logs
on the compute node,it appears that the tap interface is not coming up on
the compute node.

Also in the file driver.py at the path /opt/stack/nova/nova/virt/libvirt in
the below section,











*uuid = dom.UUIDString()if event ==
libvirt.VIR_DOMAIN_EVENT_STOPPED:transition =
virtevent.EVENT_LIFECYCLE_STOPPEDelif event ==
libvirt.VIR_DOMAIN_EVENT_STARTED:transition =
virtevent.EVENT_LIFECYCLE_STARTEDelif event ==
libvirt.VIR_DOMAIN_EVENT_SUSPENDED:transition =
virtevent.EVENT_LIFECYCLE_PAUSEDelif event ==
libvirt.VIR_DOMAIN_EVENT_RESUMED:transition =
virtevent.EVENT_LIFECYCLE_RESUMED*
the compute node should go in the second part i.e in

*libvirt.VIR_DOMAIN_EVENT_STARTED ,which it it missing.*
The output of brctl show is follows on the ubuntu compute node--

brctl show
bridge namebridge idSTP enabledinterfaces
qbr06865952-4f8000.6654b7d239b7noqvb06865952-4f
qbr9cbe0875-428000.da3180e79619noqvb9cbe0875-42
qbrb61ecf20-cf8000.e24a1b9d71c0noqvbb61ecf20-cf
qbrda8485b3-738000.f602a0f09835noqvbda8485b3-73

The main problem is that the tap interface is not able to come up.Below are
the nova-compute logs..

ova.virt.libvirt.config [req-6ce8d1f9-5d85-4d4c-a06e-bd8c4d3071ec admin
admin] Generated XML ^M
  3a0e6076-1136-47d2-b883-326d7a87e5d4^M
  instance-0009^M
  524288^M
  1^M
  ^M
hvm^M

/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/kernel^M

/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/ramdisk^M
root=/dev/vda console=tty0 console=ttyS0^M
  ^M
  ^M
^M
^M
  ^M
  ^M
^M
^M
  ^M
  ^M
^M
  ^M
  ^M
  ^M
^M
^M
  ^M
  ^M
  ^M
  ^M
  ^M
^M
^M
  ^M

365,1036%

Please help regarding this.

Thanks




On Tue, Jun 17, 2014 at 8:05 PM, Richard W.M. Jones 
wrote:

> On Fri, Jun 13, 2014 at 03:06:25PM +0530, abhishek jain wrote:
> > Hi Rich
> >
> > Can you  help me regarding the possible cause for  VM stucking at
> spawning
> > state on ubuntu powerpc compute node in openstack using devstack.
>
> Did you solve this one?  It's impossible to debug unless you collect
> the full debugging information.  See also:
>
>
> http://libguestfs.org/guestfs-faq.1.html#how-do-i-debug-when-using-the-api
>   https://bugs.launchpad.net/nova/+bug/1279857
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> Fedora Windows cross-compiler. Compile Windows programs, test, and
> build Windows installers. Over 100 libraries supported.
> http://fedoraproject.org/wiki/MinGW
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] nova-compute vfsguestfs

2014-06-17 Thread Richard W.M. Jones
On Fri, Jun 13, 2014 at 03:06:25PM +0530, abhishek jain wrote:
> Hi Rich
> 
> Can you  help me regarding the possible cause for  VM stucking at spawning
> state on ubuntu powerpc compute node in openstack using devstack.

Did you solve this one?  It's impossible to debug unless you collect
the full debugging information.  See also:

  http://libguestfs.org/guestfs-faq.1.html#how-do-i-debug-when-using-the-api
  https://bugs.launchpad.net/nova/+bug/1279857

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] nova-compute vfsguestfs

2014-06-13 Thread abhishek jain
Hi Rich

Can you  help me regarding the possible cause for  VM stucking at spawning
state on ubuntu powerpc compute node in openstack using devstack.

Thanks


On Tue, Jun 10, 2014 at 10:29 PM, abhishek jain 
wrote:

> Hi Rich
>
> I'm able to solve the problem regarding PAPR in libguestfs on my powerpc
> ubuntu.By default the libguestfs was configuring pseries machine and
> afterwards I changed it to my original machine i.e ppce500 .The changes are
> performed in ./src/guestfs-internal.h file.
>
> However still my VM is stucking in spawning state.The compute node is not
> able generate the xml file required for running the instances which I have
> checked by comparing the nova-compute logs of controller node aw well as
> compute node since I'm able to run VM on controller node.
>
> Thanks for the help,I'll let you know if any further issues.
>
>
>
> On Sat, Jun 7, 2014 at 5:06 PM, Richard W.M. Jones 
> wrote:
>
>> On Tue, May 27, 2014 at 03:25:10PM +0530, abhishek jain wrote:
>> > Hi Daniel
>> >
>> > Thanks for the help.
>> > 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.
>> > Therefore I'm comparing nova-compute logs of both compute node as well
>> as
>> > controller node and trying to proceed step by step.
>> > I'm having all the above packages enabled
>> >
>> > Do you have any idea regarding reason for VM stucking at spawning state.
>>
>> The most common reason is that nested virt is broken.  libguestfs is the
>> canary
>> in the mine here, not the cause of the problem.
>>
>> Rich.
>>
>> >
>> >
>> > On Tue, May 27, 2014 at 2:38 PM, Daniel P. Berrange <
>> berra...@redhat.com>wrote:
>> >
>> > > On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:
>> > > > Hi
>> > > > Below is the code to which I'm going to reffer to..
>> > > >
>> > > >  vim /opt/stack/nova/nova/virt/disk/vfs/api.py
>> > > >
>> > > >
>> #
>> > > >
>> > > > try:
>> > > > LOG.debug(_("Trying to import guestfs"))
>> > > > importutils.import_module("guestfs")
>> > > > hasGuestfs = True
>> > > > except Exception:
>> > > > pass
>> > > >
>> > > > if hasGuestfs:
>> > > > LOG.debug(_("Using primary VFSGuestFS"))
>> > > > return importutils.import_object(
>> > > > "nova.virt.disk.vfs.guestfs.VFSGuestFS",
>> > > > imgfile, imgfmt, partition)
>> > > > else:
>> > > > LOG.debug(_("Falling back to VFSLocalFS"))
>> > > > return importutils.import_object(
>> > > > "nova.virt.disk.vfs.localfs.VFSLocalFS",
>> > > > imgfile, imgfmt, partition)
>> > > >
>> > > > ###
>> > > >
>> > > > When I'm launching  VM from the controller node onto compute
>> node,the
>> > > > nova compute logs on the compute node displays...Falling back to
>> > > > VFSLocalFS and the result is that the VM is stuck in spawning state.
>> > > > However When I'm trying to launch a VM onto controller node form the
>> > > > controller node itself,the nova compute logs on the controller node
>> > > > dislpays ...Using primary VFSGuestFS and I'm able to launch VM on
>> > > > controller node.
>> > > > Is there any module in the kernel or any package that i need to
>> > > > enable.Please help regarding this.
>> > >
>> > > VFSGuestFS requires the libguestfs python module & corresponding
>> native
>> > > package to be present, and only works with KVM/QEMU enabled hosts.
>> > >
>> > > VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and
>> > > a few other misc host tools
>> > >
>> > > Neither of these should cause a VM getting stuck in the spawning
>> > > state, even if stuff they need is missing.
>> > >
>> > > Regards,
>> > > Daniel
>> > > --
>> > > |: http://berrange.com  -o-
>> http://www.flickr.com/photos/dberrange/:|
>> > > |: http://libvirt.org  -o-
>> http://virt-manager.org:|
>> > > |: http://autobuild.org   -o-
>> http://search.cpan.org/~danberr/:|
>> > > |: http://entangle-photo.org   -o-
>> http://live.gnome.org/gtk-vnc:|
>> > >
>> > > ___
>> > > OpenStack-dev mailing list
>> > > OpenStack-dev@lists.openstack.org
>> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>> > >
>>
>> > ___
>> > OpenStack-dev mailing list
>> > OpenStack-dev@lists.openstack.org
>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>> --
>> Richard Jones, Virtualization Group, Red Hat
>> http://people.redhat.com/~rjones
>> Read my programming and virtualization blog: http://rwmj.wordpress.com
>> virt-builder quickly builds VMs from scratch
>> http://libguestfs.org/virt-builder.1.html
>>
>> ___

Re: [openstack-dev] nova-compute vfsguestfs

2014-06-10 Thread abhishek jain
Hi Rich

I'm able to solve the problem regarding PAPR in libguestfs on my powerpc
ubuntu.By default the libguestfs was configuring pseries machine and
afterwards I changed it to my original machine i.e ppce500 .The changes are
performed in ./src/guestfs-internal.h file.

However still my VM is stucking in spawning state.The compute node is not
able generate the xml file required for running the instances which I have
checked by comparing the nova-compute logs of controller node aw well as
compute node since I'm able to run VM on controller node.

Thanks for the help,I'll let you know if any further issues.



On Sat, Jun 7, 2014 at 5:06 PM, Richard W.M. Jones 
wrote:

> On Tue, May 27, 2014 at 03:25:10PM +0530, abhishek jain wrote:
> > Hi Daniel
> >
> > Thanks for the help.
> > 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.
> > Therefore I'm comparing nova-compute logs of both compute node as well as
> > controller node and trying to proceed step by step.
> > I'm having all the above packages enabled
> >
> > Do you have any idea regarding reason for VM stucking at spawning state.
>
> The most common reason is that nested virt is broken.  libguestfs is the
> canary
> in the mine here, not the cause of the problem.
>
> Rich.
>
> >
> >
> > On Tue, May 27, 2014 at 2:38 PM, Daniel P. Berrange  >wrote:
> >
> > > On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:
> > > > Hi
> > > > Below is the code to which I'm going to reffer to..
> > > >
> > > >  vim /opt/stack/nova/nova/virt/disk/vfs/api.py
> > > >
> > > > #
> > > >
> > > > try:
> > > > LOG.debug(_("Trying to import guestfs"))
> > > > importutils.import_module("guestfs")
> > > > hasGuestfs = True
> > > > except Exception:
> > > > pass
> > > >
> > > > if hasGuestfs:
> > > > LOG.debug(_("Using primary VFSGuestFS"))
> > > > return importutils.import_object(
> > > > "nova.virt.disk.vfs.guestfs.VFSGuestFS",
> > > > imgfile, imgfmt, partition)
> > > > else:
> > > > LOG.debug(_("Falling back to VFSLocalFS"))
> > > > return importutils.import_object(
> > > > "nova.virt.disk.vfs.localfs.VFSLocalFS",
> > > > imgfile, imgfmt, partition)
> > > >
> > > > ###
> > > >
> > > > When I'm launching  VM from the controller node onto compute node,the
> > > > nova compute logs on the compute node displays...Falling back to
> > > > VFSLocalFS and the result is that the VM is stuck in spawning state.
> > > > However When I'm trying to launch a VM onto controller node form the
> > > > controller node itself,the nova compute logs on the controller node
> > > > dislpays ...Using primary VFSGuestFS and I'm able to launch VM on
> > > > controller node.
> > > > Is there any module in the kernel or any package that i need to
> > > > enable.Please help regarding this.
> > >
> > > VFSGuestFS requires the libguestfs python module & corresponding native
> > > package to be present, and only works with KVM/QEMU enabled hosts.
> > >
> > > VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and
> > > a few other misc host tools
> > >
> > > Neither of these should cause a VM getting stuck in the spawning
> > > state, even if stuff they need is missing.
> > >
> > > Regards,
> > > Daniel
> > > --
> > > |: http://berrange.com  -o-
> http://www.flickr.com/photos/dberrange/:|
> > > |: http://libvirt.org  -o-
> http://virt-manager.org:|
> > > |: http://autobuild.org   -o-
> http://search.cpan.org/~danberr/:|
> > > |: http://entangle-photo.org   -o-
> http://live.gnome.org/gtk-vnc:|
> > >
> > > ___
> > > OpenStack-dev mailing list
> > > OpenStack-dev@lists.openstack.org
> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> > >
>
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-builder quickly builds VMs from scratch
> http://libguestfs.org/virt-builder.1.html
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] nova-compute vfsguestfs

2014-06-07 Thread Richard W.M. Jones
On Tue, May 27, 2014 at 03:25:10PM +0530, abhishek jain wrote:
> Hi Daniel
> 
> Thanks for the help.
> 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.
> Therefore I'm comparing nova-compute logs of both compute node as well as
> controller node and trying to proceed step by step.
> I'm having all the above packages enabled
> 
> Do you have any idea regarding reason for VM stucking at spawning state.

The most common reason is that nested virt is broken.  libguestfs is the canary
in the mine here, not the cause of the problem.

Rich.

> 
> 
> On Tue, May 27, 2014 at 2:38 PM, Daniel P. Berrange 
> wrote:
> 
> > On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:
> > > Hi
> > > Below is the code to which I'm going to reffer to..
> > >
> > >  vim /opt/stack/nova/nova/virt/disk/vfs/api.py
> > >
> > > #
> > >
> > > try:
> > > LOG.debug(_("Trying to import guestfs"))
> > > importutils.import_module("guestfs")
> > > hasGuestfs = True
> > > except Exception:
> > > pass
> > >
> > > if hasGuestfs:
> > > LOG.debug(_("Using primary VFSGuestFS"))
> > > return importutils.import_object(
> > > "nova.virt.disk.vfs.guestfs.VFSGuestFS",
> > > imgfile, imgfmt, partition)
> > > else:
> > > LOG.debug(_("Falling back to VFSLocalFS"))
> > > return importutils.import_object(
> > > "nova.virt.disk.vfs.localfs.VFSLocalFS",
> > > imgfile, imgfmt, partition)
> > >
> > > ###
> > >
> > > When I'm launching  VM from the controller node onto compute node,the
> > > nova compute logs on the compute node displays...Falling back to
> > > VFSLocalFS and the result is that the VM is stuck in spawning state.
> > > However When I'm trying to launch a VM onto controller node form the
> > > controller node itself,the nova compute logs on the controller node
> > > dislpays ...Using primary VFSGuestFS and I'm able to launch VM on
> > > controller node.
> > > Is there any module in the kernel or any package that i need to
> > > enable.Please help regarding this.
> >
> > VFSGuestFS requires the libguestfs python module & corresponding native
> > package to be present, and only works with KVM/QEMU enabled hosts.
> >
> > VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and
> > a few other misc host tools
> >
> > Neither of these should cause a VM getting stuck in the spawning
> > state, even if stuff they need is missing.
> >
> > Regards,
> > Daniel
> > --
> > |: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/:|
> > |: http://libvirt.org  -o- http://virt-manager.org:|
> > |: http://autobuild.org   -o- http://search.cpan.org/~danberr/:|
> > |: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc:|
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >

> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] nova-compute vfsguestfs

2014-05-27 Thread abhishek jain
Hi Daniel

Thanks for the help.
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.
Therefore I'm comparing nova-compute logs of both compute node as well as
controller node and trying to proceed step by step.
I'm having all the above packages enabled

Do you have any idea regarding reason for VM stucking at spawning state.



On Tue, May 27, 2014 at 2:38 PM, Daniel P. Berrange wrote:

> On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:
> > Hi
> > Below is the code to which I'm going to reffer to..
> >
> >  vim /opt/stack/nova/nova/virt/disk/vfs/api.py
> >
> > #
> >
> > try:
> > LOG.debug(_("Trying to import guestfs"))
> > importutils.import_module("guestfs")
> > hasGuestfs = True
> > except Exception:
> > pass
> >
> > if hasGuestfs:
> > LOG.debug(_("Using primary VFSGuestFS"))
> > return importutils.import_object(
> > "nova.virt.disk.vfs.guestfs.VFSGuestFS",
> > imgfile, imgfmt, partition)
> > else:
> > LOG.debug(_("Falling back to VFSLocalFS"))
> > return importutils.import_object(
> > "nova.virt.disk.vfs.localfs.VFSLocalFS",
> > imgfile, imgfmt, partition)
> >
> > ###
> >
> > When I'm launching  VM from the controller node onto compute node,the
> > nova compute logs on the compute node displays...Falling back to
> > VFSLocalFS and the result is that the VM is stuck in spawning state.
> > However When I'm trying to launch a VM onto controller node form the
> > controller node itself,the nova compute logs on the controller node
> > dislpays ...Using primary VFSGuestFS and I'm able to launch VM on
> > controller node.
> > Is there any module in the kernel or any package that i need to
> > enable.Please help regarding this.
>
> VFSGuestFS requires the libguestfs python module & corresponding native
> package to be present, and only works with KVM/QEMU enabled hosts.
>
> VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and
> a few other misc host tools
>
> Neither of these should cause a VM getting stuck in the spawning
> state, even if stuff they need is missing.
>
> Regards,
> Daniel
> --
> |: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/:|
> |: http://libvirt.org  -o- http://virt-manager.org:|
> |: http://autobuild.org   -o- http://search.cpan.org/~danberr/:|
> |: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc:|
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] nova-compute vfsguestfs

2014-05-27 Thread Daniel P. Berrange
On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:
> Hi
> Below is the code to which I'm going to reffer to..
> 
>  vim /opt/stack/nova/nova/virt/disk/vfs/api.py
> 
> #
> 
> try:
> LOG.debug(_("Trying to import guestfs"))
> importutils.import_module("guestfs")
> hasGuestfs = True
> except Exception:
> pass
> 
> if hasGuestfs:
> LOG.debug(_("Using primary VFSGuestFS"))
> return importutils.import_object(
> "nova.virt.disk.vfs.guestfs.VFSGuestFS",
> imgfile, imgfmt, partition)
> else:
> LOG.debug(_("Falling back to VFSLocalFS"))
> return importutils.import_object(
> "nova.virt.disk.vfs.localfs.VFSLocalFS",
> imgfile, imgfmt, partition)
> 
> ###
> 
> When I'm launching  VM from the controller node onto compute node,the
> nova compute logs on the compute node displays...Falling back to
> VFSLocalFS and the result is that the VM is stuck in spawning state.
> However When I'm trying to launch a VM onto controller node form the
> controller node itself,the nova compute logs on the controller node
> dislpays ...Using primary VFSGuestFS and I'm able to launch VM on
> controller node.
> Is there any module in the kernel or any package that i need to
> enable.Please help regarding this.

VFSGuestFS requires the libguestfs python module & corresponding native
package to be present, and only works with KVM/QEMU enabled hosts.

VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and
a few other misc host tools

Neither of these should cause a VM getting stuck in the spawning
state, even if stuff they need is missing. 

Regards,
Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] nova-compute vfsguestfs

2014-05-26 Thread abhishek jain
Hi
Below is the code to which I'm going to reffer to..

 vim /opt/stack/nova/nova/virt/disk/vfs/api.py

#

try:
LOG.debug(_("Trying to import guestfs"))
importutils.import_module("guestfs")
hasGuestfs = True
except Exception:
pass

if hasGuestfs:
LOG.debug(_("Using primary VFSGuestFS"))
return importutils.import_object(
"nova.virt.disk.vfs.guestfs.VFSGuestFS",
imgfile, imgfmt, partition)
else:
LOG.debug(_("Falling back to VFSLocalFS"))
return importutils.import_object(
"nova.virt.disk.vfs.localfs.VFSLocalFS",
imgfile, imgfmt, partition)

###

When I'm launching  VM from the controller node onto compute node,the
nova compute logs on the compute node displays...Falling back to
VFSLocalFS and the result is that the VM is stuck in spawning state.
However When I'm trying to launch a VM onto controller node form the
controller node itself,the nova compute logs on the controller node
dislpays ...Using primary VFSGuestFS and I'm able to launch VM on
controller node.
Is there any module in the kernel or any package that i need to
enable.Please help regarding this.

Thanks

Abhishek Jain
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev