Bug 1915672 - Kuryr doesn't work with selfLink disabled.
Summary: Kuryr doesn't work with selfLink disabled.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.7.0
Assignee: rdobosz
QA Contact: GenadiC
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-13 08:14 UTC by rdobosz
Modified: 2021-02-24 15:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:52:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test results with the fix (13.58 MB, application/gzip)
2021-01-28 08:56 UTC, rlobillo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift kuryr-kubernetes pull 436 0 None closed Bug 1915672: Handle absence of selfLink on Kuryr-Kubernetes 2021-02-19 11:18:22 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:52:56 UTC

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


Note You need to log in before you can comment on or make changes to this bug.