Bug 1697169 - Addition of custom ca bundle in Grafana throws error
Summary: Addition of custom ca bundle in Grafana throws error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.11.z
Assignee: Frederic Branczyk
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On: 1696198
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-08 02:39 UTC by Aditya Deshpande
Modified: 2019-06-06 02:00 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-06 02:00:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0794 0 None None None 2019-06-06 02:00:33 UTC

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


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