Bug 1439391
| Summary: | [RFE] allow dedicated admins to monitor resource usage | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Brennan Vincello <bvincell> |
| Component: | RFE | Assignee: | Abhishek Gupta <abhgupta> |
| Status: | VERIFIED --- | QA Contact: | wangyu <yuwan> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | abhgupta, erich, fshaikh, lasilva, maupadhy, misalunk, mwringe, rdasilva, rkant, rpuccini, wgordon, wpinheir, yufchang |
| Target Milestone: | --- | Keywords: | OnlineDedicated |
| Target Release: | --- | Flags: | fshaikh:
needinfo?
(abhgupta) fshaikh: needinfo? (abhgupta) |
| 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: | 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
Brennan Vincello
2017-04-05 21:49:36 UTC
You are trying to access a protected endpoint without passing any credentials to it, which is why you are getting an access denied error for "system:anonymous".
You need to try with something like this:
curl --insecure -H "Authorization: Bearer ${TOKEN}" -X GET https://${MASTER_HOST}/api/v1/nodes/${NODENAME}/proxy/stats/summary
I am not sure the exact role or permission you would to grant your user to have access to this (other than something like cluster-reader).
If you have OpenShift Metrics installed, then Hawkular will already have this information stored. But currently I believe this would require a cluster reader to access.
You can access this information via something like:
curl -H "Authorization: Bearer ${TOKEN}" -H "Hawkular-tenant: _system" -X GET https://hawkular-metrics.example.com/hawkular/metrics/metrics?tags=nodename:${NODENAME},type:node | python -m json.tool
Is there anything else we can do for you here? Or was your issue resolved when you used tokens to access the restricted endpoints? It is being beta tested now. We plan to roll out the new app in the coming weeks to allow for view into the dashboard of cluster utilization. Team, Was the BZ completed/resolved? We are working on 2 key initiatives around resource utilization (actual and scheduled): 1. Increasing the permission of the dedicated-admin role (basically this RFE) 2. Rolling out the dedicated.openshift.com to all customers (also updating to including scheduler information). For #1, this is in the top 5 RFEs that we are working with engineering to determine a delivery date on. That work is on-going, trying to get rolled out before holiday shutdown/freeze. We have rolled out #2 to some customers. I'm working on a rollout plan to all dedicated customers and get commitment from engineering. OpenShift Dedicated customers now have access to the Grafana Dashboards in >= 3.11 clusters. Instructions on reaching the Grafana dashboard is included on each cluster dashboard in https://dedicated.openshift.com. Typically, the Grafana dashboard should be available by visiting https://admin-console.<cluster-id>.openshift.com, click on Monitoring -> Dashboards. Only Dedicated-Admins will have access to this dashboard. Dedicated-Admins can also view the Grafana URL directly by running "oc get routes --all-namespaces | grep grafana". @wgordon Will,could you help grant the Dedicated-Admins permission for me to verify this bug? My account for testing is "yuwan". @wgordon Will,the environment of 'ded-stage-aws' is ok for me to verify this bug, please help grant the Dedicated-Admins permission on that.thanks. My account for testing is "yuwan". @wangyu, I've provided Dedicated-Admins permissions to your account @Will thanks,I check get the grafana route now.The pod of "grafana-667c9d6f6f-rc4xn" is running, but the grafana app is still unavailable. I test on the ded-stage-aws ENV.Could you help investigate this issue? SRE has addressed the issue, please try again. I verified this bug on ded-stage-aws.We can monitor the resource usage by the Grafana Dashboards now. |