Bug 1431243

Summary: Physical Function's state DOWN after deallocation
Product: Red Hat OpenStack Reporter: Ricardo Noriega <rnoriega>
Component: rhosp-directorAssignee: Brent Eagles <beagles>
Status: CLOSED DUPLICATE QA Contact: Amit Ugol <augol>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 10.0 (Newton)CC: amuller, aschultz, atelang, athomas, beagles, bfournie, dbecker, dsneddon, jjung, mburns, morazi, rhel-osp-director-maint, rnoriega
Target Milestone: ---Keywords: Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-07 19:00:00 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:

Comment 1 Ricardo Noriega 2017-03-10 17:37:10 UTC
Description of problem:

After removing a VM with a PF allocated, the link state of the interface is down. This state avoids the VFs assigned to that PF to be properly allocated.


Version-Release number of selected component (if applicable):


How reproducible:

In an SRIOV environment with VFs and PFs with OSP10 GA.


Steps to Reproduce:

neutron port-create nfv_sriov --binding:vnic-type direct-physical --name pf1
neutron port-create nfv_sriov --binding:vnic-type direct --name vf1

nova boot test-passthrough --security-groups allowall --flavor m1.small.numapin --key-name key --image centos_pwd2 --nic port-id=$(neutron port-list | grep pf1 | awk '{print $2}')

nova delete test-passthrough

nova boot test-sriov --security-groups allowall --flavor m1.small.numapin --key-name key --image centos_pwd2 --nic port-id=$(neutron port-list | grep vf1 | awk '{print $2}')

ERROR related to: {"message": "internal error: Unable to configure VF 1 of PF 'p3p1' because the PF is not online. Please change host network config to put the PF online.", "code": 500, "details": "  File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 1779, in _do_build_and_run_instance |
|                                      |     filter_properties)

Additional info:

Changing the NM_CONTROLLED flag to yes in the SRIOV NIC's config, it will set link state to UP and allow the allocation of the VFs.

Comment 7 Assaf Muller 2017-07-07 18:57:21 UTC
Attached the stable/newton backport.

Comment 8 Assaf Muller 2017-07-07 19:00:00 UTC
This was already fixed and available in OSP 10, closing as a dup.

*** This bug has been marked as a duplicate of bug 1392585 ***

Comment 9 Red Hat Bugzilla 2023-09-14 03:55:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days