Bug 1697169

Summary: Addition of custom ca bundle in Grafana throws error
Product: OpenShift Container Platform Reporter: Aditya Deshpande <adeshpan>
Component: MonitoringAssignee: Frederic Branczyk <fbranczy>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: anpicker, erooth, mloibl, pkrupa, surbania
Target Milestone: ---   
Target Release: 3.11.z   
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-06-06 02:00:29 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:
Bug Depends On: 1696198    
Bug Blocks:    

Description Aditya Deshpande 2019-04-08 02:39:45 UTC
Description of problem:
The grafana-oauth proxy sidecar does not trust ocp console certificate (which uses a certificate signed by GoDaddy).

Tried to add with openshift_additional_ca and running the playbook redeploy-ca playbook[1]. After that redeploy-certificates playbook is run to redeploy master certificates. But still grafana-proxy container throws errors as same like mentioned below:
~~~
oauthproxy.go:635: error redeeming code (client:x.x.x.x:38174): Post https://ocp-console.xxx.xxx.com:8443/oauth/token: x509: certificate signed by unknown authority
oauthproxy.go:434: ErrorPage 500 Internal Error Internal Error
provider.go:382: authorizer reason: no RBAC policy matched
provider.go:382: authorizer reason: no RBAC policy matched
~~~

Can we perform this task of addition of custom ca bundle?

Link:

[1] https://docs.openshift.com/container-platform/3.11/install_config/redeploying_certificates.html#redeploying-new-custom-ca

Version-Release number of selected component (if applicable):
OCP v3.11


Expected results:
Grafana should trust the custom ca bundle.

Comment 2 Frederic Branczyk 2019-04-08 13:52:27 UTC
https://github.com/openshift/openshift-ansible/pull/11472 was merged, which should fix this (thanks to Vadim for working on this!).

Comment 5 Junqi Zhao 2019-04-18 07:08:55 UTC
Issue is fixed with 
]# rpm -qa | grep openshift-ansible
openshift-ansible-roles-3.11.104-1.git.0.379a011.el7.noarch
openshift-ansible-docs-3.11.104-1.git.0.379a011.el7.noarch
openshift-ansible-playbooks-3.11.104-1.git.0.379a011.el7.noarch
openshift-ansible-3.11.104-1.git.0.379a011.el7.noarch

Comment 7 errata-xmlrpc 2019-06-06 02:00:29 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, 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/RHBA-2019:0794