Bug 1915672

Summary: Kuryr doesn't work with selfLink disabled.
Product: OpenShift Container Platform Reporter: rdobosz
Component: NetworkingAssignee: rdobosz
Networking sub component: kuryr QA Contact: GenadiC <gcheresh>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: mdulko, rlobillo
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:52:40 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:
Attachments:
Description Flags
test results with the fix none

Description rdobosz 2021-01-13 08:14:43 UTC
Description of problem:

As of Kubernetes 1.16 deprecation of selLink has been announced. With Kubernetes 1.20 it will be disabled, thus it will not be propagated with all the objects sent/retrieved from API.

In Kuryr-Kubernetes there are several places where selLink information is used and relied on. 

How reproducible:

Steps to Reproduce:
1. Upgrade to Kubernetes 1.20 or pass parameter "--feature-gates=RemoveSelfLink=true" in versions prior to 1.20
2. Run the stack
3. Try to create some pod/deployment

Actual results:

Failure on Kuryr controller due to lack of selfLink key in several places

Expected results:

Create pod/deployment without any issue

Comment 4 rlobillo 2021-01-28 08:54:39 UTC
Verified on OCP4.7.0-0.nightly-2021-01-27-110023 on OSP16.1 (RHOS-16.1-RHEL-8-20201214.n.3) with OVN-Octavia.

All kuryr-tempest-plugin, NP and Conformance tests are passing. Logs attached.

selflink is still enabled on OCP4.7 nightly builds, so tests are passing without actually testing the scenario where selflink is disabled. It is agreed that we will cover this as soon as selflink is disabled through our CI jobs.

Comment 5 rlobillo 2021-01-28 08:56:03 UTC
Created attachment 1751614 [details]
test results with the fix

Comment 8 errata-xmlrpc 2021-02-24 15:52:40 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement 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/RHSA-2020:5633