Bug 1934107

Summary: cluster-authentication-operator builds URL incorrectly for IPv6
Product: OpenShift Container Platform Reporter: Stephen Benjamin <stbenjam>
Component: apiserver-authAssignee: Standa Laznicka <slaznick>
Status: CLOSED ERRATA QA Contact: pmali
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.7CC: aos-bugs, dhellmann, mfojtik
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:49:00 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:

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