Comment 0 for bug 1885229

Revision history for this message
Yang Liu (yliu12) wrote : sriovdp VF count changed unexpected after host interface modify

Brief Description
-----------------
sriovdp VF count changed unexpected after host interface modify

Severity
--------
Major

Steps to Reproduce
------------------
# system is configured with sriov interface like following:
| 2c9411af-9a1d-4b2d-8059-b075cb5c30af | sriov0 | pci-sriov | ethernet | None | [u'eno3'] | [] | [u'sriovfio'] | MTU=1500 |
| d2d473c0-057e-4873-9d5e-92eca96a7464 | sriovfio | pci-sriov | vf | None | [] | [u'sriov0'] | [] | MTU=1500 |

# interface datenetworks
| controller-0 | b721eb92-0633-493f-8ecb-da162dfd24a2 | sriov0 | group0-data0 |
| controller-0 | e9f1e7db-44a8-4513-a41e-161cd1195fc3 | sriovfio | group0-data1 |

# Allocatable SRIOV VFs via kubectl describe nodes controller-0
"intel.com/pci_sriov_net_group0_data0": "6",
"intel.com/pci_sriov_net_group0_data1": "10",

# lock host, add an additioanl sriov vfio interface, assign datanetwork and unlock host
system host-if-add controller-0 sriovtest vf sriov0 --num-vfs 1 --vf-driver vfio --ifclass pci-sriov
system interface-datanetwork-assign controller-0 sriovtest sriov-test-datanetwork'

# check Allocatable SRIOV VFs via kubectl describe nodes again

TC-name: test_sriovdp_mixed_add_vf_interface[1]

Expected Behavior
------------------
"intel.com/pci_sriov_net_group0_data0": "5",
"intel.com/pci_sriov_net_group0_data1": "11",

Actual Behavior
----------------
"intel.com/pci_sriov_net_group0_data0": "16",
"intel.com/pci_sriov_net_group0_data1": "0",

Reproducibility
---------------
Reproducible - happened 2 out of 2 times

System Configuration
--------------------
Simplex
Lab-name: SM-3

Branch/Pull Time/Commit
-----------------------
2020-06-24_22-16-59

Last Pass
---------
2020-06-23_20-00-00

Timestamp/Logs
--------------

[2020-06-25 21:25:35,961] 314 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://[abcd:204::1]:5000/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne host-if-add controller-0 sriovtest vf sriov0 --num-vfs 1 --vf-driver vfio --ifclass pci-sriov'

[2020-06-25 21:25:39,803] 314 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://[abcd:204::1]:5000/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne datanetwork-add sriov-test-datanetwork vlan'

[2020-06-25 21:25:42,744] 314 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://[abcd:204::1]:5000/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne interface-datanetwork-assign controller-0 sriovtest sriov-test-datanetwork'

[2020-06-25 21:25:51,511] 314 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://[abcd:204::1]:5000/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne host-unlock controller-0'

Test Activity
-------------
Regression