<div dir="ltr">    Hi Rich<br>    <br>    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..<br>
    <br>    domain type="kvm"><br>      <uuid>7210aa10-6c98-418a-b97e-94ef2dcbb7f3</uuid>Hi <br><br>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..<br>
<br>domain type="kvm"><br>  <uuid>7210aa10-6c98-418a-b97e-94ef2dcbb7f3</uuid><br>  <name>instance-00000003</name><br>  <memory>524288</memory><br>  <vcpu>1</vcpu><br>
  <os><br>    <type machine="ppce500">hvm</type><br>    <kernel>/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/kernel</kernel><br>    <initrd>/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/ramdisk</initrd><br>
    <cmdline>root=/dev/vda console=tty0 console=ttyS0</cmdline><br>  </os><br>  <features><br>    <acpi/><br>    <apic/><br>  </features><br>  <clock offset="utc"><br>
    <timer name="pit" tickpolicy="delay"/><br>    <timer name="rtc" tickpolicy="catchup"/><br>  </clock><br>  <devices><br>    <disk type="file" device="disk"><br>
      <driver name="qemu" type="qcow2" cache="none"/><br>      <source file="/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/disk"/><br>      <target bus="virtio" dev="vda"/><br>
    </disk><br>    <interface><br>      <model type="virtio"/><br>      <source bridge="qbr5d2ebebf-03"/><br>      <target dev="tap5d2ebebf-03"/><br>      <filterref filter="nova-instance-instance-00000003-fa163ebb2b75"/><br>
    </interface><br>    <serial type="file"><br>      <source path="/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/console.log"/><br>    </serial><br>    <serial type="pty"/><br>
  </devices><br></domain><br><br>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.<br>
<br>Below are the steps for running VM manually through virsh..<br><br>virsh undefine instance-00000003<br>virsh define libvirt.xml<br>virsh start  instance-00000003<br><br>Please help regarding this.<br><br>Thanks<br>      <name>instance-00000003</name><br>
      <memory>524288</memory><br>      <vcpu>1</vcpu><br>      <os><br>        <type machine="ppce500">hvm</type><br>        <kernel>/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/kernel</kernel><br>
        <initrd>/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/ramdisk</initrd><br>        <cmdline>root=/dev/vda console=tty0 console=ttyS0</cmdline><br>      </os><br>      <features><br>
        <acpi/><br>        <apic/><br>      </features><br>      <clock offset="utc"><br>        <timer name="pit" tickpolicy="delay"/><br>        <timer name="rtc" tickpolicy="catchup"/><br>
      </clock><br>      <devices><br>        <disk type="file" device="disk"><br>          <driver name="qemu" type="qcow2" cache="none"/><br>          <source file="/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/disk"/><br>
          <target bus="virtio" dev="vda"/><br>        </disk><br>        <interface><br>          <model type="virtio"/><br>          <source bridge="qbr5d2ebebf-03"/><br>
          <target dev="tap5d2ebebf-03"/><br>          <filterref filter="nova-instance-instance-00000003-fa163ebb2b75"/><br>        </interface><br>        <serial type="file"><br>
          <source path="/opt/stack/data/nova/instances/7210aa10-6c98-418a-b97e-94ef2dcbb7f3/console.log"/><br>        </serial><br>        <serial type="pty"/><br>      </devices><br>
    </domain><br>    <br>    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.<br>
    <br>    Below are the steps for running VM manually through virsh..<br>    <br>    virsh undefine instance-00000003<br>    virsh define libvirt.xml<br>    virsh start  instance-00000003<br>    <br>    Please help regarding this.<br>
    <br>    Thanks<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 3:55 PM, abhishek jain <span dir="ltr"><<a href="mailto:ashujain9727@gmail.com" target="_blank">ashujain9727@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi RIch<br><br></div>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.<br>

<br></div>Also in the file driver.py at the path /opt/stack/nova/nova/virt/libvirt in the below section,<br><br><b>uuid = dom.UUIDString()<br>        if event == libvirt.VIR_DOMAIN_EVENT_STOPPED:<br>            transition = virtevent.EVENT_LIFECYCLE_STOPPED<br>

        elif event == libvirt.VIR_DOMAIN_EVENT_STARTED:<br>            transition = virtevent.EVENT_LIFECYCLE_STARTED<br>        elif event == libvirt.VIR_DOMAIN_EVENT_SUSPENDED:<br>            transition = virtevent.EVENT_LIFECYCLE_PAUSED<br>

        elif event == libvirt.VIR_DOMAIN_EVENT_RESUMED:<br>            transition = virtevent.EVENT_LIFECYCLE_RESUMED<br><br></b></div>the compute node should go in the second part i.e in <b>libvirt.VIR_DOMAIN_EVENT_STARTED ,which it it missing.<br>

<br></b></div><div>The output of brctl show is follows on the ubuntu compute node--<br><br>brctl show<br>bridge name    bridge id        STP enabled    interfaces<br>qbr06865952-4f        8000.6654b7d239b7    no        qvb06865952-4f<br>

qbr9cbe0875-42        8000.da3180e79619    no        qvb9cbe0875-42<br>qbrb61ecf20-cf        8000.e24a1b9d71c0    no        qvbb61ecf20-cf<br>qbrda8485b3-73        8000.f602a0f09835    no        qvbda8485b3-73<br><br></div>

<div>The main problem is that the tap interface is not able to come up.Below are the nova-compute logs..<br><br>ova.virt.libvirt.config [req-6ce8d1f9-5d85-4d4c-a06e-bd8c4d3071ec admin admin] Generated XML <domain type="kvm">^M<br>

  <uuid>3a0e6076-1136-47d2-b883-326d7a87e5d4</uuid>^M<br>  <name>instance-00000009</name>^M<br>  <memory>524288</memory>^M<br>  <vcpu>1</vcpu>^M<br>  <os>^M<br>    <type>hvm</type>^M<br>

    <kernel>/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/kernel</kernel>^M<br>    <initrd>/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/ramdisk</initrd>^M<br>

    <cmdline>root=/dev/vda console=tty0 console=ttyS0</cmdline>^M<br>  </os>^M<br>  <features>^M<br>    <acpi/>^M<br>    <apic/>^M<br>  </features>^M<br>  <clock offset="utc">^M<br>

    <timer name="pit" tickpolicy="delay"/>^M<br>    <timer name="rtc" tickpolicy="catchup"/>^M<br>  </clock>^M<br>  <devices>^M<br>    <disk type="file" device="disk">^M<br>

      <driver name="qemu" type="qcow2" cache="none"/>^M<br>      <source file="/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/disk"/>^M<br>      <target bus="virtio" dev="vda"/>^M<br>

    </disk>^M<br>    <interface type="bridge">^M<br>      <mac address="fa:16:3e:17:c5:cc"/>^M<br>      <model type="virtio"/>^M<br>      <source bridge="qbrb61ecf20-cf"/>^M<br>

      <target dev="tapb61ecf20-cf"/>^M<br>      <filterref filter="nova-instance-instance-00000009-fa163e17c5cc"/>^M<br>    </interface>^M<br>    <serial type="file">^M<br>

      <source path="/opt/stack/data/nova/instances/3a0e6076-1136-47d2-b883-326d7a87e5d4/console.log"/>^M<br>                                                                                                                              365,103        6%<br>

<br></div><div class=""><div>Please help regarding this.<br><br></div><div>Thanks<br></div><br><div><div><div><br></div></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jun 17, 2014 at 8:05 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@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>On Fri, Jun 13, 2014 at 03:06:25PM +0530, abhishek jain wrote:<br>
> Hi Rich<br>
><br>
> Can you  help me regarding the possible cause for  VM stucking at spawning<br>
> state on ubuntu powerpc compute node in openstack using devstack.<br>
<br>
</div>Did you solve this one?  It's impossible to debug unless you collect<br>
the full debugging information.  See also:<br>
<br>
  <a href="http://libguestfs.org/guestfs-faq.1.html#how-do-i-debug-when-using-the-api" target="_blank">http://libguestfs.org/guestfs-faq.1.html#how-do-i-debug-when-using-the-api</a><br>
  <a href="https://bugs.launchpad.net/nova/+bug/1279857" target="_blank">https://bugs.launchpad.net/nova/+bug/1279857</a><br>
<br>
Rich.<br>
<div><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
</div>Fedora Windows cross-compiler. Compile Windows programs, test, and<br>
build Windows installers. Over 100 libraries supported.<br>
<a href="http://fedoraproject.org/wiki/MinGW" target="_blank">http://fedoraproject.org/wiki/MinGW</a><br>
<div><div><br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>