Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1726056

Summary: The generated configmap in openshift-config lost data content when creating OAuth by console
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
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: 2019-07-05 16:23:09 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
Created configmap lost data content none

Description XiaochuanWang 2019-07-02 07:02:34 UTC
Created attachment 1586538 [details]
Created configmap lost data content

Description of problem:
Cluster admin user create an Oauth by console, upload a file as CA file. The generated configmap in project openshift-config lost content

Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-06-30-221852
image for openshift-console: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:cfb2ff43b6b9696d21c755b791174a0a35f187dc3544823547e12c45726adc8d

How reproducible:
Always

Steps to Reproduce:
1. Cluster admin login and go to the Oauth page -> Add -> Basic Authentication
2. Set url, upload a pem file to CA File
3. Check the generated configmap from openshift-config
Check the pod from openshift-authentication.

Actual results:
Created configmap lost data content (the data is empty). New created pods from openshift-authentication can not be ready. (Please refer to the screenshot)

Expected results:
Created secret under openshift-config should be like below. The key of configmap should be "ca.crt", the data value should be content of CA File:
"""
kind: ConfigMap
apiVersion: v1
metadata:
  name: basic-auth-ca-4ftmx
  namespace: openshift-config
  ...
data:
  ca.crt: |
    -----BEGIN CERTIFICATE-----
    MIIC6jCCAdKgAwIBAgIBATANBg...
    ...
    cnbCbVQLPIEzo1BzOTAvmtXUel...
    -----END CERTIFICATE-----
"""

Additional info:
Expected configmap refer to `oc create configmap basic-auth-ca-4ftmx  --from-file=ca.crt=tls-ca-bundle.pem`

Comment 1 Samuel Padgett 2019-07-05 16:23:09 UTC

*** This bug has been marked as a duplicate of bug 1727282 ***