Red Hat Bugzilla – Bug 1283714
After leaving pod metrics tab open for a long time, 403/forbidden errors occur
Last modified: 2016-09-29 22:17:29 EDT
rcm-img-docker01.build.eng.bos.redhat.com:5001/openshift3/metrics-cassandra latest 8ea21f4b3377 4 weeks ago 472.7 MB
rcm-img-docker01.build.eng.bos.redhat.com:5001/openshift3/metrics-deployer latest 277d6f10f28e 8 days ago 506.7 MB
rcm-img-docker01.build.eng.bos.redhat.com:5001/openshift3/metrics-hawkular-metrics latest b44dc66d64f2 2 weeks ago 1.109 GB
rcm-img-docker01.build.eng.bos.redhat.com:5001/openshift3/metrics-heapster latest 800434e62203 4 weeks ago 228.4 MB
If you visit a pod details page and go to the metrics tab and leave it open for more than fifteen minutes, you end up with some 403 errors:
https://metrics.cloudapps.example.com/hawkular/metrics/counters/postgresql%…a-11e5-abc2-525400b33d1d%2Fcpu%2Fusage/data?buckets=61&start=1447943224976 Failed to load resource: the server responded with a status of 403 (Forbidden)
There was a thought that this was related to token expiry, but I can switch to a different page/tab without having to reload, or change the metrics timeframe (eg: 30 minutes to 1 hour) and have no issues.
This still really sounds like a token expiry issue.
I suspect that when switching tabs or changing the timeline, its updating the token its using.
@spadgett: do you know how tokens are being handled here?
We're not changing tokens when navigating tabs. I wouldn't expect the token to expire after 15 minutes, and if it does, it should expire everywhere. We're passing the same token to Hawkular Metrics that we pass to the API server.
Ok, thanks for the info Sam. I will debug it on my end and see what is going on.
Check on chrome47, keep metric tab open for about half an hour, can not meet the 403 error. Is there other condition to reproduce this issue?
@Erik : we are still waiting for the answer to Yanping's question. Is there anything else special in your setup or something else you have changed with your OpenShift setup? Or is this just a simple out of the box install of OpenShift?
My setup is this (in fact this doc was built from my setup):
3 KVM VMs running on my laptop using ose3-(master/node1/node2).example.com as hostnames. Everything is vanilla. Nothing special. I'm even using the non-advanced installer.
I haven't reinstalled lately with GA so it might be worth another shot to see if it happens.
@Erik: can you confirm that you are still seeing this issue?