Bug 1687298

Summary: [OSP14] Fix VF-rep lookup routine to use parent PF number
Product: Red Hat OpenStack Reporter: Bertrand <brault>
Component: openstack-novaAssignee: OSP DFG:Compute <osp-dfg-compute>
Status: CLOSED CURRENTRELEASE QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: high Docs Contact:
Priority: unspecified    
Version: 14.0 (Rocky)CC: dasmith, eglynn, jhakimra, kchamart, sbauza, sgordon, stephenfin, vromanso
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/openstack/os-vif/commit/84688a22db22039f5566c1439c3983db23672a45
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1687300 (view as bug list) Environment:
Last Closed: 2019-03-15 15:19:53 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:    
Bug Blocks: 1653846, 1686757, 1686770, 1687300    

Description Bertrand 2019-03-11 08:46:46 UTC
Fix VF-rep lookup routine to use parent PF number

The current logic in get_representor_port() matches the VF number with
the one in 'phys_port_name' file. If and when multiple PFs on the same
card are configured in switchdev mode, we could end up returning a wrong
representor device. Fix this by including the parent PF number also in
this logic, when 'pfXvfY' (or vfY@pfX) format is used in 'phys_port_name'
file.

github: https://github.com/openstack/os-vif/commit/84688a22db22039f5566c1439c3983db23672a45

This patch appear to be missing from nova-compute container.

Comment 1 Stephen Finucane 2019-03-15 15:19:34 UTC
This was first resolved in python-os-vif-1.9.0-1.el7, which is included in the oldest version of nova-compute container I can see, 14.0-94 [1]. You haven't provided package versions but I suspect you simply need to update to a newer release that included that python-os-vif package version.

[1] https://access.redhat.com/containers/?architecture=AMD64&tab=package-list#/registry.access.redhat.com/rhosp14/openstack-nova-compute/images/14.0-94