Bug 1970170

Summary: [3.11] - oc adm top pods doesn't work - due to the metrics url is not available
Product: OpenShift Container Platform Reporter: Vladislav Walek <vwalek>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED NOTABUG QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.11.0CC: aos-bugs, jmartisk, jokerman, mfojtik, mwringe, rhowe, rvargasp
Target Milestone: ---   
Target Release: ---   
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: 2021-08-20 00:36:49 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:

Description Vladislav Walek 2021-06-10 01:01:40 UTC
Description of problem:

IHAC, when "oc adm top pods" doesn't work due to the metrics url is not available.
The hawkular is working normally, no error.

I was able to pin point the issue to the url from the master api that shows error from the router.

https://<master-api>:443/api/v1/namespaces/openshift-infra/services/https:heapster:/proxy/apis/metrics

The output is generic message from the router that application is not ready yet.

This is very strange, because from the api call, it uses heapster service, not route.


Version-Release number of selected component (if applicable):
OpenShift Container Platform 3.11

How reproducible:
#n/a

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 10 Maciej Szulik 2021-07-13 12:51:26 UTC
oc adm top pods has the following flags:

--heapster-namespace='openshift-infra': Namespace Heapster service is located in
--heapster-port='': Port name in service to use
--heapster-scheme='https': Scheme (http or https) to connect to Heapster as
--heapster-service='heapster': Name of Heapster service

which should allow tweaking the URL as one wish.

Comment 11 Vladislav Walek 2021-08-20 00:36:49 UTC
Closing the BZ as the case was fixed.

The issue was that during redeployment of the metrics, the secrets were not deleted and reused old data.
After removing secrets and redeployment, the issue is fixed.

Thx

Comment 12 Red Hat Bugzilla 2023-09-15 01:09:37 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days