Bug 1619033 - Grafana deployment fails on 3.11.0-0.17.0
Summary: Grafana deployment fails on 3.11.0-0.17.0
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Eldad Marciano
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-19 19:18 UTC by Nicholas Schuetz
Modified: 2018-08-29 17:49 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-29 17:49:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
hosts file (3.12 KB, text/plain)
2018-08-19 19:18 UTC, Nicholas Schuetz
no flags Details

Description Nicholas Schuetz 2018-08-19 19:18:44 UTC
Created attachment 1476939 [details]
hosts file

TASK [openshift_grafana : Get the prometheus SA token] ************************************************************************************************************************************************************
fatal: [ip-172-31-12-44.ca-central-1.compute.internal]: FAILED! => {"changed": true, "cmd": "oc sa get-token prometheus-k8s -n openshift-monitoring", "delta": "0:00:00.186393", "end": "2018-08-19 15:46:21.973486", "msg": "non-zero return code", "rc": 1, "start": "2018-08-19 15:46:21.787093", "stderr": "Error from server (NotFound): serviceaccounts \"prometheus-k8s\" not found", "stderr_lines": ["Error from server (NotFound): serviceaccounts \"prometheus-k8s\" not found"], "stdout": "", "stdout_lines": []}


Prometheus is deployed.  Attaching ansible hosts file...

Comment 1 Junqi Zhao 2018-08-20 09:11:21 UTC
deployed prometheus and cluster monitoring, all pods are in running status, issue is not reproduced in my env

openshift-ansible version
openshift-ansible-3.11.0-0.17.0.git.0.d3888d7None.noarch

# oc get pod -n openshift-monitoring
NAME                                           READY     STATUS    RESTARTS   AGE
alertmanager-main-0                            3/3       Running   0          9m
alertmanager-main-1                            3/3       Running   0          9m
alertmanager-main-2                            3/3       Running   0          8m
cluster-monitoring-operator-6d7c9f5759-bdmtf   1/1       Running   0          14m
grafana-7476cc5c4b-8zbd8                       2/2       Running   0          13m
kube-state-metrics-776f9667b-vlmkf             3/3       Running   0          8m
prometheus-k8s-0                               4/4       Running   1          11m
prometheus-k8s-1                               4/4       Running   1          10m
prometheus-operator-7cbb8d577f-9cwtm           1/1       Running   0          14m

# oc get pod -n openshift-metrics
NAME                             READY     STATUS    RESTARTS   AGE
prometheus-0                     6/6       Running   0          2h
prometheus-node-exporter-2dgc8   1/1       Running   0          2h
prometheus-node-exporter-kf7lc   1/1       Running   0          2h
prometheus-node-exporter-vz6q9   1/1       Running   0          2h

Comment 2 Junqi Zhao 2018-08-20 09:11:57 UTC
# oc sa get-token prometheus-k8s -n openshift-monitoring
eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJvcGVuc2hpZnQtbW9uaXRvcmluZyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJwcm9tZXRoZXVzLWs4cy10b2tlbi1mdDVseiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJwcm9tZXRoZXVzLWs4cyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjA5ODk2OThkLWE0NTctMTFlOC05MTQ2LTQyMDEwYWYwMDAwYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpvcGVuc2hpZnQtbW9uaXRvcmluZzpwcm9tZXRoZXVzLWs4cyJ9.m53uv5tVXe00Mbc_ZwZD2Y0u92Wa0zoJjtTQfj9sb0Ee6QxH2to9VTy9ld8zSYHx62KX_ewC_niVGs_0derXFNVR5HpYXXc1TYHhYgLHQJknaHCMRkE17YSzLBK2mWND1o91-z4pVh7-IBPaarQT_emOhA6SN6xXOAQgRZqX2QTefHrrDbGRV6ufqjz1ynVeIHsmv5Yn8lZAVAw5djaa6ts3qXLT88tvVBRjl5-kIiDMUF2nIaXT0vJm49p9l4gQFmcvrwm8KET5CJeiMQo8T9X0_shvakhnrLIP3ZTlsNh_nD3_rIEg_ZwYA4uOGZnE3JJ8EXFPIGq5KFsZNlZiyg

Comment 3 Frederic Branczyk 2018-08-20 10:21:49 UTC
openshift-grafana is not maintained by us, we only maintain the Grafana instance that ships with the cluster-monitoring stack. Re-assigning to Eldad, who maintains openshift-grafana.


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