binding_profile in port show not listing the VF information

asked 2018-04-13 03:04:39 -0600

sudheer vegesna gravatar image

As a part of queens testing, we are trying to test ovs offload(vf-rep model) on open stack.

1) Enabled SRIOV and created the VF's 2) Enabled switchdev mode to create the vf-reps sudo devlink dev eswitch set pci/0000:82:00.0 mode switchdev 3) created a network using CLI or GUI. openstack network create --project admin --provider-network-type flat --provider-physical-network vfnet --share ovsnet

4) created a subnet group for the network openstack subnet create --project admin --subnet-range=100.10.10.0/24 --allocation-pool start=100.10.10.5,end=100.10.10.20 --network ovsnet ovs-subnet

5) Edited the nova.conf to include the configured VF's passthrough_whitelist={"vendor_id":"14e4","product_id":"16dc","address":"0000:82:02.0","physical_network":"vfnet"}

6) Created a port with switchdev capability on the network openstack port create --vnic-type direct --binding-profile '{"capabilities": ["switchdev"]}' --network ovsnet --host 'honeywell' --device-owner 'compute:nova' port1

[root@honeywell nova(keystone_admin)]# openstack port show port1 +-----------------------+------------------------------------------------------------------------------+ | Field | Value | +-----------------------+------------------------------------------------------------------------------+ | admin_state_up | UP | | allowed_address_pairs | | | binding_host_id | honeywell | | binding_profile | capabilities='[u'switchdev']' | | binding_vif_details | datapath_type='system', ovs_hybrid_plug='True', port_filter='True' | | binding_vif_type | ovs | | binding_vnic_type | direct | | created_at | 2018-04-12T03:49:37Z | | data_plane_status | None | | description | | | device_id | | | device_owner | compute:nova | | dns_assignment | None | | dns_name | None | | extra_dhcp_opts | | | fixed_ips | ip_address='150.10.10.121', subnet_id='01b80e80-23fc-406b-99a0-63ae7c96d3c4' | | id | 1e70c5e6-05b2-4c32-bf78-7be99280cbf2 | | ip_address | None | | mac_address | fa:16:3e:5d:dc:7d | | name | port1 | | network_id | 81651064-df89-414b-bd2e-9316dc82b37f | | option_name | None | | option_value | None | | port_security_enabled | True | | project_id | d71f6eb095654744a8315015e7bb5612 | | qos_policy_id | None | | revision_number | 7 | | security_group_ids | b535ec65-b34c-4b8a-8470-bc09bc91b7b3 | | status | DOWN | | subnet_id | None | | tags | | | trunk_details | None | | updated_at | 2018-04-12T03:49:38Z | +-----------------------+------------------------------------------------------------------------------+ [root@honeywell nova(keystone_admin)]#

i am not able to see the configured VF under the " | binding_profile | capabilities='[u'switchdev']'

7) if i try create an VM instance with this network port openstack server create --image ovs --flavor ovs --nic port-id=port1 ovs

i am seeing the following error at the VM instance

Fault Message Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 03370dba-f236-469d-81f4-2f3abf82db83. Code 500 Details File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 579, in build_instances raise exception.MaxRetriesExceeded(reason=msg) Created April 12, 2018, 8:38 a.m.

in port show also the "binding_vif_type is changed to unbound " after creating the VM instance using the port.

[root@honeywell nova(keystone_admin)]# openstack port show port1 +-----------------------+------------------------------------------------------------------------------+ | Field | Value | +-----------------------+------------------------------------------------------------------------------+ | admin_state_up | UP | | allowed_address_pairs | | | binding_host_id | | | binding_profile | capabilities='[u'switchdev']' | | binding_vif_details | | | binding_vif_type | unbound | | binding_vnic_type | direct | | created_at | 2018-04-12T03:49:37Z | | data_plane_status | None | | description | | | device_id | | | device_owner | | | dns_assignment | None | | dns_name | None | | extra_dhcp_opts | | | fixed_ips | ip_address='150.10.10.121', subnet_id='01b80e80-23fc-406b-99a0-63ae7c96d3c4' | | id | 1e70c5e6-05b2-4c32-bf78-7be99280cbf2 | | ip_address | None | | mac_address | fa:16:3e:5d:dc:7d | | name | port1 | | network_id | 81651064-df89-414b-bd2e-9316dc82b37f | | option_name | None | | option_value | None | | port_security_enabled | True | | project_id | d71f6eb095654744a8315015e7bb5612 | | qos_policy_id | None | | revision_number | 9 | | security_group_ids | b535ec65-b34c-4b8a-8470-bc09bc91b7b3 | | status | DOWN | | subnet_id | None | | tags | | | trunk_details | None | | updated_at | 2018-04-12T08:38:43Z | +-----------------------+------------------------------------------------------------------------------+

edit retag flag offensive close merge delete