Comment 9 for bug 1836682

Revision history for this message
sathish subramanian (sathis5x) wrote :

Thanks for your valuable comments and find the below observation.

1. PCI-passthrough interface configuration
 DATA0IF=eno1
 PHYSNET2='physnet2'
 system datanetwork-add $PHYSNET2 vlan
 system host-if-modify -m 1500 -n pcipass -c pci-passthrough ${COMPUTE} ${DATA0IFUUID}
 system interface-datanetwork-assign ${COMPUTE} pcipass ${PHYSNET2}

2. Updated nova.conf
 cat > nova-overrides.yaml <<EOF
 conf:
  nova:
   DEFAULT:
     debug: True
   pci:
     alias:
         type: multistring
         values:
         - '{"vendor_id": "8086", "product_id": "37cd","device_type":"type-PCI","name": "intel-X722-pf"}'
         - '{"vendor_id": "8086", "product_id": "37cd","device_type":"type-PCI","name": "intel-X722-vf"}'
 EOF
 system helm-override-update stx-openstack nova openstack --values nova-overrides.yaml
 system application-apply stx-openstack
 system application-list

3. To finding pci device, vender id
 [sysadmin@controller-0 script(keystone_admin)]$ lspci -nn | grep Eth
 18:00.0 Ethernet controller [0200]: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] (rev 01)
 18:00.1 Ethernet controller [0200]: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] (rev 01)
 3d:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection X722 for 10GBASE-T [8086:37d2] (rev 09)
 3d:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Connection X722 for 10GBASE-T [8086:37d2] (rev 09)
 3d:02.0 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 3d:02.1 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 3d:02.2 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 3d:02.3 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 3d:02.4 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 3d:02.5 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 3d:02.6 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 3d:02.7 Ethernet controller [0200]: Intel Corporation Ethernet Virtual Function 700 Series [8086:37cd] (rev 09)
 af:00.0 Ethernet controller [0200]: Mellanox Technologies MT27700 Family [ConnectX-4] [15b3:1013]
 af:00.1 Ethernet controller [0200]: Mellanox Technologies MT27700 Family [ConnectX-4] [15b3:1013]

4. Specific interface status check (UP) and It contains virtual function
 [sysadmin@controller-0 ~(keystone_admin)]$ ip link show eno1
 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
  link/ether a4:bf:01:54:82:cd brd ff:ff:ff:ff:ff:ff
  vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
  vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
  vf 2 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
  vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
  vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
  vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
  vf 6 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
  vf 7 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off

5. Created Instance without adding flavor --property "pci_passthrough:alias"
 openstack network create ${NET}-net --mtu 1500 --provider-network-type vlan --provider-physical-network $PHYSNET2
 openstack subnet create --network ${NET}-net --subnet-range 192.168.15.0/24 --ip-version 4 --dhcp ${NET}-subnet
 openstack image create --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --public ${NET}-image
 openstack server create --flavor m1.tiny --image ${NET}-image --nic net-id=${NET}-net ${NET}-vm0

6. Created instance successfully, Also I have below queries
 ◊ Whether I have entered("product_id": "37cd", name) details correct into nova-overrides.yaml?
 ◊ Without adding "pci_passthrough:alias to the flavor, used default flavor to create instance. Is it correct ?
 Instance ERROR State on below work around:
 ◊ When I add pci_passthrough:alias"="intel-X722-vf:1" to flavor(m1.tiny) the instance is getting ERROR state,Is it correct behavior?