settingsLogin | Registersettings

[openstack-dev] sr-iov kilo getting libvirtd error while spawning a vm

0 votes

Hi,
Trying to bring up vm on sr-iov enabled openstack getting this error on compute node as shown below

from (pid=9551) getguestxml /opt/stack/nova/nova/virt/libvirt/driver.py:4195
2015-08-17 21:15:40.957 DEBUG nova.virt.libvirt.vif [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] vif
type=hwveb instance=Instance(accessipv4=None,accessipv6=None,architecture=None,autodiskconfig=False,availabilityzone=None,cellname=None,cleaned=False,configdrive='',createdat=2015-08-17T15:45:32Z,defaultephemeraldevice=None,defaultswapdevice='/dev/vdb',deleted=False,deletedat=None,disableterminate=False,displaydescription='vm1',displayname='vm1',ephemeralgb=0,ephemeralkeyuuid=None,fault=<?>,flavor=Flavor(8),host='Compute1',hostname='vm1',id=18,image_ref='ef29abd3-f52c-4591-b608-c3ed948fb49b',info_cache=InstanceInfoCache,instance_type_id=8,kernel_id='',key_data=None,key_name=None,launch_index=0,launched_at=None,launched_on='Compute1',locked=False,locked_by=None,memory_mb=2048,metadata={},new_flavor=None,node='Compute1',numa_topology=None,old_flavor=None,os_type=None,pci_devices=PciDeviceList,pci_requests=InstancePCIRequests,power_state=0,progress=0,project_id='c3aa578e594f44f7a79cb075ac7688ab',ramdisk_id='',reservation_id='r-0u6rbpou',root_device_name='/dev/vda',root_gb=10,scheduled_at=None,security_groups=SecurityGroupList,shutdown_terminate=False,system_metadata={image_base_image_ref='ef29abd3-f52c-4591-b608-c3ed948fb49b',image_container_format='bare',image_disk_format='qcow2',image_min_disk='10',image_min_ram='0',network_allocated='True'},tags=<?>,taskstate='spawning',terminatedat=None,updatedat=2015-08-17T15:45:34Z,userdata=None,userid='9dd44e8f987548b2a304b3f12b812381',uuid=480128a7-7640-4ddb-9bd1-bdc0018e7f6e,vcpumodel=VirtCPUModel,vcpus=2,vmmode=None,vmstate='building') vif=VIF({'profile': {u'pcislot': u'0000:81:02.7', u'physicalnetwork': u'default', u'pcivendorinfo': u'8086:154c'}, 'ovsinterfaceid': None, 'preserveondelete': True, 'network': Network({'bridge': None, 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': 'fixed', 'floatingips': [], 'address': u'192.168.1.11'})], 'version': 4, 'meta': {'dhcpserver': u'192.168.1.2'}, 'dns': [], 'routes': [], 'cidr': u'192.168.1.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': 'gateway', 'address': u'192.168.1.1'})})], 'meta': {'injected': False, 'tenantid': u'c3aa578e594f44f7a79cb075ac7688ab', 'physicalnetwork': u'default'}, 'id': u'e82ec190-e36d-4157-ae9c-e4e4948735e2', 'label': u'mgmt-net'}), 'devname': u'tap3b0a1ae4-4e', 'vnictype': u'direct', 'qbhparams': None, 'meta': {}, 'details': {u'portfilter': False, u'vlan': u'1009'}, 'address': u'fa:16:3e:eb:38:da', 'active': True, 'type': u'hwveb', 'id': u'3b0a1ae4-4eb5-4911-a9a7-109217188067', 'qbgparams': None}) from (pid=9551) plug /opt/stack/nova/nova/virt/libvirt/vif.py:597
2015-08-17 21:15:40.961 ERROR nova.virt.libvirt.driver [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] Error defining a domain with XML:
480128a7-7640-4ddb-9bd1-bdc0018e7f6e
instance-00000012
2097152
2



vm1
2015-08-17 15:45:40

2048
10
200
0
2


demo
demo






OpenStack Foundation
OpenStack Nova
2015.1.2
94e62060-1011-4750-ac16-88c58d7b40af
480128a7-7640-4ddb-9bd1-bdc0018e7f6e



hvm




<acpi/>
<apic/>


2048











































2015-08-17 21:15:40.962 ERROR nova.compute.manager [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] Instance failed to spawn
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] Traceback (most recent call last):
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/compute/manager.py", line 2465, in buildresources
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] yield resources
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/compute/manager.py", line 2337, in buildandruninstance
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] blockdeviceinfo=blockdeviceinfo)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2388, in spawn
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] blockdeviceinfo=blockdeviceinfo)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4406, in createdomainandnetwork
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] poweron=poweron)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4337, in createdomain
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] LOG.error(err)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/osloutils/excutils.py", line 85, in exit
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] six.reraise(self.type
, self.value, self.tb)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4321, in createdomain
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] domain = self.conn.defineXML(xml)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] result = proxy
call(self._autowrap, f, *args, **kwargs)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] rv = execute(f, *args, **kwargs)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] six.reraise(c, e, tb)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] rv = meth(*args, **kwargs)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3445, in defineXML
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] libvirtError: unsupported configuration: Unknown PCI device has been specified
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e]
2015-08-17 21:15:40.963 INFO nova.compute.manager [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] Terminating instance
2015-08-17 21:15:40.968 INFO nova.virt.libvirt.driver [-] [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] During wait destroy, instance disappeared.

Thanks and Regards,
Raghavendrachari kamsali


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Aug 17, 2015 in openstack by Kamsali,_Raghavendra (1,020 points)   1 1

1 Response

0 votes

Hi,
The driver name should be kvm and not qemu.

I think you need to set the virttype to kvm as describe below in the nova.conf
[libvirt]
virt
type = kvm

From: Kamsali, RaghavendraChari (Artesyn) [mailto:RaghavendraChari.Kamsali@artesyn.com]
Sent: Monday, August 17, 2015 6:50 PM
To: openstack@lists.openstack.org
Cc: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.org
Subject: [openstack-dev] sr-iov kilo getting libvirtd error while spawning a vm

Hi,
Trying to bring up vm on sr-iov enabled openstack getting this error on compute node as shown below

from (pid=9551) getguestxml /opt/stack/nova/nova/virt/libvirt/driver.py:4195
2015-08-17 21:15:40.957 DEBUG nova.virt.libvirt.vif [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] vif
type=hwveb instance=Instance(accessipv4=None,accessipv6=None,architecture=None,autodiskconfig=False,availabilityzone=None,cellname=None,cleaned=False,configdrive='',createdat=2015-08-17T15:45:32Z,defaultephemeraldevice=None,defaultswapdevice='/dev/vdb',deleted=False,deletedat=None,disableterminate=False,displaydescription='vm1',displayname='vm1',ephemeralgb=0,ephemeralkeyuuid=None,fault=<?>,flavor=Flavor(8),host='Compute1',hostname='vm1',id=18,image_ref='ef29abd3-f52c-4591-b608-c3ed948fb49b',info_cache=InstanceInfoCache,instance_type_id=8,kernel_id='',key_data=None,key_name=None,launch_index=0,launched_at=None,launched_on='Compute1',locked=False,locked_by=None,memory_mb=2048,metadata={},new_flavor=None,node='Compute1',numa_topology=None,old_flavor=None,os_type=None,pci_devices=PciDeviceList,pci_requests=InstancePCIRequests,power_state=0,progress=0,project_id='c3aa578e594f44f7a79cb075ac7688ab',ramdisk_id='',reservation_id='r-0u6rbpou',root_device_name='/dev/vda',root_gb=10,scheduled_at=None,security_groups=SecurityGroupList,shutdown_terminate=False,system_metadata={image_base_image_ref='ef29abd3-f52c-4591-b608-c3ed948fb49b',image_container_format='bare',image_disk_format='qcow2',image_min_disk='10',image_min_ram='0',network_allocated='True'},tags=<?>,taskstate='spawning',terminatedat=None,updatedat=2015-08-17T15:45:34Z,userdata=None,userid='9dd44e8f987548b2a304b3f12b812381',uuid=480128a7-7640-4ddb-9bd1-bdc0018e7f6e,vcpumodel=VirtCPUModel,vcpus=2,vmmode=None,vmstate='building') vif=VIF({'profile': {u'pcislot': u'0000:81:02.7', u'physicalnetwork': u'default', u'pcivendorinfo': u'8086:154c'}, 'ovsinterfaceid': None, 'preserveondelete': True, 'network': Network({'bridge': None, 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': 'fixed', 'floatingips': [], 'address': u'192.168.1.11'})], 'version': 4, 'meta': {'dhcpserver': u'192.168.1.2'}, 'dns': [], 'routes': [], 'cidr': u'192.168.1.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': 'gateway', 'address': u'192.168.1.1'})})], 'meta': {'injected': False, 'tenantid': u'c3aa578e594f44f7a79cb075ac7688ab', 'physicalnetwork': u'default'}, 'id': u'e82ec190-e36d-4157-ae9c-e4e4948735e2', 'label': u'mgmt-net'}), 'devname': u'tap3b0a1ae4-4e', 'vnictype': u'direct', 'qbhparams': None, 'meta': {}, 'details': {u'portfilter': False, u'vlan': u'1009'}, 'address': u'fa:16:3e:eb:38:da', 'active': True, 'type': u'hwveb', 'id': u'3b0a1ae4-4eb5-4911-a9a7-109217188067', 'qbgparams': None}) from (pid=9551) plug /opt/stack/nova/nova/virt/libvirt/vif.py:597
2015-08-17 21:15:40.961 ERROR nova.virt.libvirt.driver [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] Error defining a domain with XML:
480128a7-7640-4ddb-9bd1-bdc0018e7f6e
instance-00000012
2097152
2

  <nova:name>vm1</nova:name>
  <nova:creationTime>2015-08-17 15:45:40</nova:creationTime>

    <nova:memory>2048</nova:memory>
    <nova:disk>10</nova:disk>
    <nova:swap>200</nova:swap>
    <nova:ephemeral>0</nova:ephemeral>
    <nova:vcpus>2</nova:vcpus>

    <nova:user uuid="9dd44e8f987548b2a304b3f12b812381">demo</nova:user>
    <nova:project uuid="c3aa578e594f44f7a79cb075ac7688ab">demo</nova:project>

  <entry name="manufacturer">OpenStack Foundation</entry>
  <entry name="product">OpenStack Nova</entry>
  <entry name="version">2015.1.2</entry>
  <entry name="serial">94e62060-1011-4750-ac16-88c58d7b40af</entry>
  <entry name="uuid">480128a7-7640-4ddb-9bd1-bdc0018e7f6e</entry>

<type>hvm</type>

<shares>2048</shares>

2015-08-17 21:15:40.962 ERROR nova.compute.manager [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] Instance failed to spawn
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] Traceback (most recent call last):
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/compute/manager.py", line 2465, in buildresources
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] yield resources
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/compute/manager.py", line 2337, in buildandruninstance
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] blockdeviceinfo=blockdeviceinfo)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2388, in spawn
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] blockdeviceinfo=blockdeviceinfo)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4406, in createdomainandnetwork
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] poweron=poweron)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4337, in createdomain
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] LOG.error(err)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/osloutils/excutils.py", line 85, in exit
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] six.reraise(self.type
, self.value, self.tb)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4321, in createdomain
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] domain = self.conn.defineXML(xml)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] result = proxy
call(self._autowrap, f, *args, **kwargs)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] rv = execute(f, *args, **kwargs)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] six.reraise(c, e, tb)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] rv = meth(*args, **kwargs)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3445, in defineXML
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] libvirtError: unsupported configuration: Unknown PCI device has been specified
2015-08-17 21:15:40.962 TRACE nova.compute.manager [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e]
2015-08-17 21:15:40.963 INFO nova.compute.manager [req-8d3ac9c1-d33d-4bd4-b4ab-5eda2e1c400f demo demo] [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] Terminating instance
2015-08-17 21:15:40.968 INFO nova.virt.libvirt.driver [-] [instance: 480128a7-7640-4ddb-9bd1-bdc0018e7f6e] During wait destroy, instance disappeared.

Thanks and Regards,
Raghavendrachari kamsali


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Aug 17, 2015 by Moshe_Levi (2,920 points)   3 6
...