Error when booting with multiple NICs(havana) [closed]

asked 2014-01-06 00:20:52 -0500

laocius gravatar image

updated 2014-01-06 16:24:03 -0500

smaffulli gravatar image

When I am trying to boot an instance with 3 NICs on havana, it failed. Before I could successfully boot my image with NICs. Now on havana, I can launch an instance with 2 NICs, 3 NICs will cause an ERROR.

here's the log from nova-compute.log:

2014-01-06 13:55:20.958 27627 ERROR nova.virt.libvirt.driver [req-ba0ef092-8856-4986-8a6c-5e4611519b8e 68c066f57b324976af513dff7913b184 60f75f0ce2714f219916634e639377ce] An error occurred while trying to launch a defined domain with xml: <domain type='kvm'>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <sysinfo type='smbios'>
      <entry name='manufacturer'>OpenStack Foundation</entry>
      <entry name='product'>OpenStack Nova</entry>
      <entry name='version'>2013.2</entry>
      <entry name='serial'>33343934-3932-4e43-4732-303353314e39</entry>
      <entry name='uuid'>5ccd7317-5374-40b5-ac20-4da415f38f56</entry>
    <type arch='x86_64' machine='pc-i440fx-1.5'>hvm</type>
    <boot dev='hd'/>
    <smbios mode='sysinfo'/>
  <cpu mode='host-model'>
    <model fallback='allow'/>
  <clock offset='utc'>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='rtc' tickpolicy='catchup'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/5ccd7317-5374-40b5-ac20-4da415f38f56/disk'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='bridge'>
      <mac address='fa:16:3e:45:4e:13'/>
      <source bridge='brqd1673ea7-82'/>
      <target dev='tap5117edf6-16'/>
      <model type='virtio'/>
      <filterref filter='nova-instance-instance-00000037-fa163e454e13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <interface type='bridge'>
      <mac address='fa:16:3e:d4:50:dd'/>
      <source bridge='brqce7da313-9d'/>
      <target dev='tapd85808cc-bc'/>
      <model type='virtio'/>
      <filterref filter='nova-instance-instance-00000037-fa163ed450dd'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    <interface type='bridge'>
      <mac address='fa:16:3e:e0:37:e1'/>
      <source bridge='brq8c2173e1-d4'/>
      <target dev='tapf6df939b-5f'/>
      <model type='virtio'/>
      <filterref filter='nova-instance-instance-00000037-fa163ee037e1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    <serial type='file'>
      <source path='/var/lib/nova/instances/5ccd7317-5374-40b5-ac20-4da415f38f56/console.log'/>
      <target port='0'/>
    <serial type='pty'>
      <target port='1'/>
    <console type='file'>
      <source path='/var/lib/nova/instances/5ccd7317-5374-40b5-ac20-4da415f38f56/console.log'/>
      <target type='serial' port='0'/>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='' keymap='en-us'>
      <listen type='address' address=''/>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>

2014-01-06 13:55:20.959 27627 ERROR nova.compute.manager [req-ba0ef092-8856-4986-8a6c-5e4611519b8e 68c066f57b324976af513dff7913b184 60f75f0ce2714f219916634e639377ce] [instance: 5ccd7317-5374-40b5-ac20-4da415f38f56] Instance failed to spawn
2014-01-06 13:55:20.959 27627 TRACE nova.compute.manager [instance: 5ccd7317-5374-40b5-ac20-4da415f38f56] Traceback (most recent call ...
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by rbowen
close date 2016-09-28 14:35:38.778430


Did this work for single NIC setup ? I did not see any error related to multiple NICs in the logs attached. what is value specified in nova-compute.conf for libvert_type ? Can you change the same to qemu and retry ?

dheeru gravatar imagedheeru ( 2014-01-06 01:50:44 -0500 )edit

Yes, it works for single NIC. here's my nova-compute.conf [DEFAULT] libvirt_type=kvm compute_driver=libvirt.LibvirtDriver libvirt_vif_type=ethernet libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver I tried libvirt_type=qemu, still the same issue. ~

laocius gravatar imagelaocius ( 2014-01-06 02:11:59 -0500 )edit

let me check and revert. I know there is some issue with getting instances with multiple NIC. It gets the IP for one, but fails for other. This should not set the instance to error state. Can you check what is libvritd.log telling ?

dheeru gravatar imagedheeru ( 2014-01-06 02:19:44 -0500 )edit

Here's something from libvirtd.log: 2014-01-06 08:09:19.915+0000: 24137: warning : virAuditSend:135 : Failed to send audit message virt=qemu op=start reason=booted vm="instance-0000004b" uuid=97c74b4a-34a2-48f8-b12f-e94ac029a8d6 vm-pid=-1: Operation not permitted

laocius gravatar imagelaocius ( 2014-01-06 02:33:49 -0500 )edit

Or you can use to share long log messages

smaffulli gravatar imagesmaffulli ( 2014-01-06 13:47:42 -0500 )edit