Bug 1886696

Summary: KeyError on self._existing_vifs[port_id]
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: NetworkingAssignee: Luis Tomas Bolivar <ltomasbo>
Networking sub component: kuryr QA Contact: GenadiC <gcheresh>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: bbennett, mdemaced, rlobillo
Version: 4.6   
Target Milestone: ---   
Target Release: 4.6.z   
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: 2020-11-09 15:50:58 UTC Type: ---
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: 1884655    
Bug Blocks:    
Attachments:
Description Flags
NP+Conformance results with the fix none

Comment 3 rlobillo 2020-10-28 16:08:15 UTC
Verified on OCP4.6.0-0.nightly-2020-10-28-001707 over OSP16.1 with OVN-Octavia (RHOS-16.1-RHEL-8-20201007.n.0)


Fix is in:

$ oc rsh -n openshift-kuryr kuryr-controller-598d4bf657-6gs9g grep "previous_ports_to_remove.append(subport.id)" /usr/lib/python3.6/site-packages/kuryr_kubernetes/contr
oller/drivers/vif_pool.py -B10
            for subport in detached_subports:
                # FIXME(ltomasbo): Looking for trunk:subport is only needed
                # due to a bug in neutron that does not reset the
                # device_owner after the port is detached from the trunk
                if subport.device_owner not in ['', 'trunk:subport']:
                    continue
                if subport.id not in previous_ports_to_remove:
                    # FIXME(ltomasbo): Until the above problem is there,
                    # we need to add protection for recently created ports
                    # that are still being attached
                    previous_ports_to_remove.append(subport.id)


NP and conformance test run with expected results. Mentioned exception is not observed. Logs attached.

Comment 4 rlobillo 2020-10-28 16:09:04 UTC
Created attachment 1724863 [details]
NP+Conformance results with the fix

Comment 6 errata-xmlrpc 2020-11-09 15:50:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6.3 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4339