Bug 1934107 - cluster-authentication-operator builds URL incorrectly for IPv6
Summary: cluster-authentication-operator builds URL incorrectly for IPv6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: 4.7
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.8.0
Assignee: Standa Laznicka
QA Contact: pmali
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-02 14:23 UTC by Stephen Benjamin
Modified: 2021-07-27 22:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:49:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-authentication-operator pull 415 0 None open Bug 1934107: webhook authentication: fix oauth-apiserver IP for IPv6 environments 2021-03-02 14:41:25 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:51:26 UTC

Description Stephen Benjamin 2021-03-02 14:23:13 UTC
Description of problem:

This change broke IPv6 installations: https://github.com/openshift/cluster-authentication-operator/pull/304/files#r585602211

IPv6 addresses must be wrapped with brackets. You cannot build URL's with variable interpolation if one of those variables could be an IP.

Installs are failing with this error:


   cluster-scoped-resources/operator.openshift.io/kubeapiservers/cluster.yaml:      Error: host must be a URL or a host:port pair: "https://fd02::cf8c/apis/oauth.openshift.io/v1/tokenreviews"


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

Latest nightly

How reproducible:

Always

Steps to Reproduce:
1. Attempt to install baremetal IPI with IPv6

Actual results:

Install fails with this error:
   
   cluster-scoped-resources/operator.openshift.io/kubeapiservers/cluster.yaml:      Error: host must be a URL or a host:port pair: "https://fd02::cf8c/apis/oauth.openshift.io/v1/tokenreviews"


Expected results:

Install succeeds

Additional info:

Comment 5 errata-xmlrpc 2021-07-27 22:49:00 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.8.2 bug fix and security 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-2021:2438


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