Hi,
Am deploying controller-compute openstack setup , in controller I configured
openvswitch bridges and in computed node I configured PCI nic supported SRIOV
capability and while am spawning VM am getting following error as in attached
file:
I followed the link for setting up the sriov
https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking and
http://www.qlogic.com/solutions/Documents/UsersGuide_OpenStack_SR-IOV.pdf
Could any one help me regarding this issue
Thanks and Regards,
Raghavendrachari kamsali,
Embedded Computing and Power,
Hyderabad, AndhraPradesh , India
2015-05-23 21:24:35.061 DEBUG nova.virt.libvirt.vif [-] vif_type=binding_failed
instance=Instance(access_ip_v4=Non
e,access_ip_v6=None,architecture=None,auto_disk_config=False,availability_zone=None,cell_name=None,cleaned=False,c
onfig_drive='',created_at=2015-05-23T04:23:17Z,default_ephemeral_device=None,default_swap_device=None,deleted=Fals
e,deleted_at=None,disable_terminate=False,display_description='ubuntuvm',display_name='ubuntuvm',ephemeral_gb=0,ep
hemeral_key_uuid=None,fault=<?>,host='atca7480',hostname='ubuntuvm',id=6,image_ref='0f945b95-df76-4ef1-9ed0-3d072b
ac360f',info_cache=InstanceInfoCache,instance_type_id=5,kernel_id='',key_data=None,key_name=None,launch_index=0,la
unched_at=None,launched_on='atca7480',locked=False,locked_by=None,memory_mb=2048,metadata={},node='atca7480',numa_
topology=None,os_type=None,pci_devices=PciDeviceList,power_state=0,progress=0,project_id='51b00a98b1ac471684cad9b1
ee248cc5',ramdisk_id='',reservation_id='r-2r0v9idg',root_device_name='/dev/vda',root_gb=20,scheduled_at=None,secur
ity_groups=SecurityGroupList,shutdown_terminate=False,system_metadata={image_base_image_ref='0f945b95-df76-4ef1-9e
d0-3d072bac360f',image_container_format='bare',image_disk_format='qcow2',image_min_disk='20',image_min_ram='0',ins
tance_type_ephemeral_gb='0',instance_type_flavorid='2',instance_type_id='5',instance_type_memory_mb='2048',instanc
e_type_name='m1.small',instance_type_root_gb='20',instance_type_rxtx_factor='1.0',instance_type_swap='0',instance_
type_vcpu_weight=None,instance_type_vcpus='1',network_allocated='True'},task_state='spawning',terminated_at=None,u
pdated_at=2015-05-23T04:23:20Z,user_data=None,user_id='e51e176aee744f35bb1e2fb05ecd615f',uuid=39d27b92-295f-4f18-b
b76-e0bba4d0666b,vcpus=1,vm_mode=None,vm_state='building') vif=VIF({'profile':
{u'pci_slot': u'0000:81:02.3', u'ph
ysical_network': u'default', u'pci_vendor_info': u'8086:154c'},
'ovs_interfaceid': None, 'network': Network({'brid
ge': None, 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4,
'type': 'fixed', 'floating_ips': [], 'ad
dress': u'11.0.0.8'})], 'version': 4, 'meta': {'dhcp_server': u'11.0.0.7'},
'dns': [], 'routes': [], 'cidr': u'11.
0.0.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': 'gateway',
'address': u'11.0.0.1'})})], 'meta': {'inje
cted': False, 'tenant_id': u'51b00a98b1ac471684cad9b1ee248cc5',
'physical_network': u'default'}, 'id': u'5ef1662f-
8bb4-4124-8b68-2a2fe240170e', 'label': u'sriov'}), 'devname':
u'tap5281222e-4c', 'vnic_type': u'direct', 'qbh_para
ms': None, 'meta': {}, 'details': {}, 'address': u'fa:16:3e:fd:55:1e',
'active': False, 'type': u'binding_failed',
'id': u'5281222e-4c3b-47af-a851-6b0254c0d85a', 'qbg_params': None})
virt_typekvm from (pid=29295) get_config /opt
/stack/nova/nova/virt/libvirt/vif.py:342
2015-05-23 21:24:35.063 ERROR nova.compute.manager [-] [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] Instance f
ailed to spawn
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] Traceback (mos
t recent call last):
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] File "/opt/s
tack/nova/nova/compute/manager.py", line 2266, in _build_resources
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] yield reso
urces
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] File "/opt/s
tack/nova/nova/compute/manager.py", line 2136, in _build_and_run_instance
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] block_device_info=block_device_info)
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 2662, in spawn
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] write_to_disk=True)
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 4200, in _get_guest_xml
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] context)
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 3978, in _get_guest_config
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] flavor, CONF.libvirt.virt_type)
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] File
"/opt/stack/nova/nova/virt/libvirt/vif.py", line 352, in get_config
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] _("Unexpected vif_type=%s") %
vif_type)
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] NovaException: Unexpected
vif_type=binding_failed
2015-05-23 21:24:35.063 TRACE nova.compute.manager [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b]
2015-05-23 21:24:35.067 AUDIT nova.compute.manager
[req-a6284b5c-d1db-44df-a02a-4aeba3a26d28 admin admin] [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] Terminating instance
2015-05-23 21:24:35.073 WARNING nova.virt.libvirt.driver [-] [instance:
39d27b92-295f-4f18-bb76-e0bba4d0666b] During wait destroy, instance disappeared.
[stack@Controller screen]$ nova boot --flavor 2 --image
0f945b95-df76-4ef1-9ed0-3d072bac360f --nic
port-id=5281222e-4c3b-47af-a851-6b0254c0d85a ubuntuvm
+--------------------------------------+-----------------------------------------------+
| Property | Value
|
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig | MANUAL
|
| OS-EXT-AZ:availability_zone | nova
|
| OS-EXT-SRV-ATTR:host | -
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | -
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000006
|
| OS-EXT-STS:power_state | 0
|
| OS-EXT-STS:task_state | scheduling
|
| OS-EXT-STS:vm_state | building
|
| OS-SRV-USG:launched_at | -
|
| OS-SRV-USG:terminated_at | -
|
| accessIPv4 |
|
| accessIPv6 |
|
| adminPass | 79QAK9yf26ra
|
| config_drive |
|
| created | 2015-05-23T04:23:17Z
|
| flavor | m1.small (2)
|
| hostId |
|
| id | 39d27b92-295f-4f18-bb76-e0bba4d0666b
|
| image | ubuntu
(0f945b95-df76-4ef1-9ed0-3d072bac360f) |
| key_name | -
|
| metadata | {}
|
| name | ubuntuvm
|
| os-extended-volumes:volumes_attached | []
|
| progress | 0
|
| security_groups | default
|
| status | BUILD
|
| tenant_id | 51b00a98b1ac471684cad9b1ee248cc5
|
| updated | 2015-05-23T04:23:18Z
|
| user_id | e51e176aee744f35bb1e2fb05ecd615f
|
+--------------------------------------+-----------------------------------------------+
[stack@Controller screen]$
[stack@Controller screen]$ openstack host list
+------------+-------------+----------+
| Host Name | Service | Zone |
+------------+-------------+----------+
| Controller | conductor | internal |
| Controller | cert | internal |
| Controller | scheduler | internal |
| Controller | consoleauth | internal |
| atca7480 | compute | nova |
+------------+-------------+----------+
[stack@Controller screen]$ openstack service list
+----------------------------------+----------+
| ID | Name |
+----------------------------------+----------+
| 0a189568e44441999591285154c7527f | cinderv2 |
| 492caa123dd24abb85591f3aa4ec877e | ec2 |
| 7f372a628e094848afd1f91d544cf7fd | keystone |
| a16206c95181411caa46afdcc1d18020 | neutron |
| c8acd7b25e304727bca79895c7f2b9dd | cinder |
| d93e7541473b4712ab6094ede138a04c | glance |
| ea6c1eef01364605aef7174cef1886b1 | s3 |
| f85d6c054f7641a3b249f93467144509 | nova |
| f936ce99dc384802b171a421985d62eb | novav21 |
+----------------------------------+----------+
[stack@Controller screen]$ nova-manage host list
host zone
2015-05-23 13:25:48.300 DEBUG oslo.db.sqlalchemy.session
[req-a5b003f6-d4f2-49a3-b392-6c6717b618d2 None None] MySQL server mode set to
STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
from (pid=2149) _check_effective_sql_mode
/usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:482
Controller internal
atca7480 nova
[stack@Controller screen]$
[stack@Controller screen]$
[stack@Controller screen]$ nova availability-zone-list
+-----------------------+----------------------------------------+
| Name | Status |
+-----------------------+----------------------------------------+
| internal | available |
| |- Controller | |
| | |- nova-conductor | enabled :-) 2015-05-23T04:26:03.000000 |
| | |- nova-consoleauth | enabled :-) 2015-05-23T04:26:08.000000 |
| | |- nova-scheduler | enabled :-) 2015-05-23T04:26:09.000000 |
| | |- nova-cert | enabled :-) 2015-05-23T04:26:06.000000 |
| nova | available |
| |- atca7480 | |
| | |- nova-compute | enabled XXX 2015-05-23T04:23:53.000000 |
+-----------------------+----------------------------------------+
[stack@Controller screen]$ nova availability-zone-list
+-----------------------+----------------------------------------+
| Name | Status |
+-----------------------+----------------------------------------+
| internal | available |
| |- Controller | |
| | |- nova-conductor | enabled :-) 2015-05-23T04:26:23.000000 |
| | |- nova-consoleauth | enabled :-) 2015-05-23T04:26:18.000000 |
| | |- nova-scheduler | enabled :-) 2015-05-23T04:26:19.000000 |
| | |- nova-cert | enabled :-) 2015-05-23T04:26:16.000000 |
| nova | available |
| |- atca7480 | |
| | |- nova-compute | enabled :-) 2015-05-23T04:26:20.000000 |
+-----------------------+----------------------------------------+
[stack@Controller screen]$
[stack@Controller screen]$ nova list
+--------------------------------------+----------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power
State | Networks |
+--------------------------------------+----------+--------+------------+-------------+----------+
| 39d27b92-295f-4f18-bb76-e0bba4d0666b | ubuntuvm | ERROR | - |
NOSTATE | |
+--------------------------------------+----------+--------+------------+-------------+----------+
[stack@Controller screen]$
[stack@Controller screen]$
[stack@Controller screen]$ neutron port-list
+--------------------------------------+------------+-------------------+--------------------------------------------------------------------------------------+
| id | name | mac_address |
fixed_ips
|
+--------------------------------------+------------+-------------------+--------------------------------------------------------------------------------------+
| 0a9fb225-b05c-4690-a5fe-9554485e1de9 | | fa:16:3e:4f:40:ca |
{"subnet_id": "ecdb61a9-2926-4b61-aee7-e5ddbe2a9936", "ip_address":
"10.130.98.190"} |
| 335cc86a-352b-4f8d-8569-037c6ef9e7e8 | | fa:16:3e:99:97:5d |
{"subnet_id": "39fc121d-2488-42ac-a582-5519ad4c74a8", "ip_address": "11.0.0.3"}
|
| 5281222e-4c3b-47af-a851-6b0254c0d85a | sriov_port | fa:16:3e:fd:55:1e |
{"subnet_id": "39fc121d-2488-42ac-a582-5519ad4c74a8", "ip_address": "11.0.0.8"}
|
| 7384de7e-3387-45e1-adfb-1a81fe13bbea | sriov_port | fa:16:3e:f8:c8:2f |
{"subnet_id": "39fc121d-2488-42ac-a582-5519ad4c74a8", "ip_address": "11.0.0.7"}
|
| dfac2ee4-3874-4234-9e6a-bf9145ded884 | | fa:16:3e:4b:1c:bd |
{"subnet_id": "28a1d8b4-3a86-4ea5-bab7-da76fa7186d8", "ip_address":
"192.168.1.1"} |
+--------------------------------------+------------+-------------------+--------------------------------------------------------------------------------------+
(reverse-i-search)`nova boo': ^Cva boot --flavor 2 --image
0f945b95-df76-4ef1-9ed0-3d072bac360f --nic
port-id=5281222e-4c3b-47af-a851-6b0254c0d85a ubuntuvm
[stack@Controller screen]$ neutron port-show
5281222e-4c3b-47af-a851-6b0254c0d85a
+-----------------------+---------------------------------------------------------------------------------------------+
| Field | Value
|
+-----------------------+---------------------------------------------------------------------------------------------+
| admin_state_up | True
|
| allowed_address_pairs |
|
| binding:host_id | atca7480
|
| binding:profile | {"pci_slot": "0000:81:02.3", "physical_network":
"default", "pci_vendor_info": "8086:154c"} |
| binding:vif_details | {}
|
| binding:vif_type | binding_failed
|
| binding:vnic_type | direct
|
| device_id | 39d27b92-295f-4f18-bb76-e0bba4d0666b
|
| device_owner | compute:None
|
| extra_dhcp_opts |
|
| fixed_ips | {"subnet_id": "39fc121d-2488-42ac-a582-5519ad4c74a8",
"ip_address": "11.0.0.8"} |
| id | 5281222e-4c3b-47af-a851-6b0254c0d85a
|
| mac_address | fa:16:3e:fd:55:1e
|
| name | sriov_port
|
| network_id | 5ef1662f-8bb4-4124-8b68-2a2fe240170e
|
| security_groups |
|
| status | DOWN
|
| tenant_id | 51b00a98b1ac471684cad9b1ee248cc5
|
+-----------------------+---------------------------------------------------------------------------------------------+
[stack@Controller screen]$ sudo ovs-vsctl show
33d0cefe-5220-4ef0-8000-b7e8e31e7016
Bridge br-ex
Port br-ex
Interface br-ex
type: internal
Port "qg-0a9fb225-b0"
Interface "qg-0a9fb225-b0"
type: internal
Bridge "br-enp4s0f1"
Port "phy-br-enp4s0f1"
Interface "phy-br-enp4s0f1"
type: patch
options: {peer="int-br-enp4s0f1"}
Port "br-enp4s0f1"
Interface "br-enp4s0f1"
type: internal
Bridge br-int
fail_mode: secure
Port "tap335cc86a-35"
tag: 2
Interface "tap335cc86a-35"
type: internal
Port "qr-dfac2ee4-38"
tag: 1
Interface "qr-dfac2ee4-38"
type: internal
Port br-int
Interface br-int
type: internal
Port "int-br-enp4s0f1"
Interface "int-br-enp4s0f1"
type: patch
options: {peer="phy-br-enp4s0f1"}
ovs_version: "2.3.1-git4750c96"
[stack@Controller screen]$
[stack@Controller screen]$ nova show 39d27b92-295f-4f18-bb76-e0bba4d0666b
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value
|
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL
|
| OS-EXT-AZ:availability_zone | nova
|
| OS-EXT-SRV-ATTR:host | atca7480
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | atca7480
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000006
|
| OS-EXT-STS:power_state | 0
|
| OS-EXT-STS:task_state | -
|
| OS-EXT-STS:vm_state | error
|
| OS-SRV-USG:launched_at | -
|
| OS-SRV-USG:terminated_at | -
|
| accessIPv4 |
|
| accessIPv6 |
|
| config_drive |
|
| created | 2015-05-23T04:23:17Z
|
| fault | {"message": "No valid host was found.
", "code": 500, "details": " File
\"/opt/stack/nova/nova/conductor/manager.py\", line 616, in build_instances |
| | request_spec, filter_properties)
|
| | File
\"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 49, in
select_destinations |
| | context, request_spec,
filter_properties)
|
| | File
\"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 35, in __run_method
|
| | return getattr(self.instance,
__name)(*args, **kwargs)
|
| | File
\"/opt/stack/nova/nova/scheduler/client/query.py\", line 34, in
select_destinations |
| | context, request_spec,
filter_properties)
|
| | File
\"/opt/stack/nova/nova/scheduler/rpcapi.py\", line 108, in select_destinations
|
| | request_spec=request_spec,
filter_properties=filter_properties)
|
| | File
\"/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py\", line 152, in
call |
| | retry=self.retry)
|
| | File
\"/usr/lib/python2.7/site-packages/oslo/messaging/transport.py\", line 90, in
_send |
| | timeout=timeout, retry=retry)
|
| | File
\"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\",
line 408, in send |
| | retry=retry)
|
| | File
\"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\",
line 399, in _send |
| | raise result
|
| | ", "created": "2015-05-23T04:23:27Z"}
|
| flavor | m1.small (2)
|
| hostId |
eac6ba63219a3b29ebf4607ea25190fd552854f35891d4efd1820149
|
| id | 39d27b92-295f-4f18-bb76-e0bba4d0666b
|
| image | ubuntu
(0f945b95-df76-4ef1-9ed0-3d072bac360f)
|
| key_name | -
|
| metadata | {}
|
| name | ubuntuvm
|
| os-extended-volumes:volumes_attached | []
|
| status | ERROR
|
| tenant_id | 51b00a98b1ac471684cad9b1ee248cc5
|
| updated | 2015-05-23T04:23:27Z
|
| user_id | e51e176aee744f35bb1e2fb05ecd615f
|
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
[stack@Controller screen]$ echo 'use nova;select hypervisor_hostname,pci_stats
from compute_nodes;' | mysql -u root
hypervisor_hostname pci_stats
atca7480 [{"count": 4, "vendor_id": "8086", "physical_network":
"default", "product_id": "154c"}]
[stack@atca7480 devstack]$ lspci |grep XL710
81:00.0 Ethernet controller: Intel Corporation Ethernet Controller XL710 for
40GbE backplane (rev 01)
81:00.1 Ethernet controller: Intel Corporation Ethernet Controller XL710 for
40GbE backplane (rev 01)
81:02.0 Ethernet controller: Intel Corporation XL710/X710 Virtual Function (rev
01)
81:02.1 Ethernet controller: Intel Corporation XL710/X710 Virtual Function (rev
01)
81:02.2 Ethernet controller: Intel Corporation XL710/X710 Virtual Function (rev
01)
81:02.3 Ethernet controller: Intel Corporation XL710/X710 Virtual Function (rev
01)
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev