Bug 1438828
Summary: | Switching from PF to VF usage randomly causes SR-IOV VF use to stop working | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Eran Kuris <ekuris> | ||||||
Component: | openstack-neutron | Assignee: | Brent Eagles <beagles> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Eran Kuris <ekuris> | ||||||
Severity: | urgent | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 11.0 (Ocata) | CC: | amuller, atelang, beagles, chrisw, ekuris, fbaudin, nyechiel, oblaut, samccann, srevivo | ||||||
Target Milestone: | async | Keywords: | AutomationBlocker, Triaged, ZStream | ||||||
Target Release: | 11.0 (Ocata) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Release Note | |||||||
Doc Text: |
To use SR-IOV physical function (PF) and virtual functions (VFs) in the same environment, add the 'nm_controlled' and 'hotplug' parameters to the SR-IOV PF configuration in your compute.yaml heat template:
-type: interface
name: nic6
use_dhcp: false
nm_controlled: true
hotplug: true
When an OpenStack instance that was using a direct physical function is destroyed, the PCI device is released back to OpenStack and the host system. The root PCI device is then configured to support the number of virtual functions configured during deployment. This process involves the coordination of the host operating system, NetworkManager and OpenStack and may require a short interval of time before the virtual functions are available for use.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-09-13 12:58:47 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | 1370047 | ||||||||
Bug Blocks: | 1479029 | ||||||||
Attachments: |
|
Description
Eran Kuris
2017-04-04 13:46:21 UTC
Created attachment 1268662 [details]
log
I will also need the os-net-config version used for this test to ensure you have the required patches. Also note that you need to add the following parameters to the SR-IOV physical function configuration in your heat templates: nm_controlled = true hotplug = true (In reply to Brent Eagles from comment #4) > I will also need the os-net-config version used for this test to ensure you > have the required patches. Also, note that you need to add the following > parameters to the SR-IOV physical function configuration in your heat > templates: > > nm_controlled = true > hotplug = true Is there any chance to get "os-net-config" from SOS-report? about the new parameters, I will try to deploy setup and check it. Will do my best to do it soon. Please provide the specific path of the config file that I need to add those parameters, so I do not miss anything. thanks. @Eran, The parameters are applied to the interface configuration on the network templates. For example, in your version of tripleo-heat-templates/network/config/multiple-nics/compute.yaml, you need entries for the PF interfaces -type: interface name: nic6 use_dhcp: false nm_controlled: true hotplug: true Network manager will take care of bringing the interface back up. The exact path of the relevant file where these parameters would be would depend on the test environment. With respect to os-net-config - aren't the versions of all of the installed packages kept somewhere? (In reply to Brent Eagles from comment #6) > @Eran, The parameters are applied to the interface configuration on the > network templates. For example, in your version of > tripleo-heat-templates/network/config/multiple-nics/compute.yaml, you need > entries for the PF interfaces > > -type: interface > name: nic6 > use_dhcp: false > nm_controlled: true > hotplug: true > > Network manager will take care of bringing the interface back up. The exact > path of the relevant file where these parameters would be would depend on > the test environment. > > With respect to os-net-config - aren't the versions of all of the installed > packages kept somewhere? Hmm, I don't know if they kept somewhere. root@compute-0 ~]# rpm -qa |grep os-net os-net-config-6.0.0-3.el7ost.noarch When I set my setup with > nm_controlled: true > hotplug: true I didn't success to boot VF instance. Got error: {"message": "Build of instance 594cacae-6bdd-45b7-ae1b-4102b1d86cce aborted: Failed to allocate the network(s), not rescheduling.", "code": 500, "details": " File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 1780, in _do_build_and_run_instance | | | filter_properties) | | | File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 1990, in _build_and_run_instance Created attachment 1274630 [details]
setup config files
This seems to be timing-dependent. I was able to create VMs with PF ports, delete them and create VMs with VF ports on this system most of the time. It is only when I deleted a VM with a PF port and created the VF based one shortly (within 30 seconds?) thereafter. I'll study further to see if I can find out where the race(s) lie. |