Bug 1916392 - scrape priority and fairness endpoints for must-gather
Summary: scrape priority and fairness endpoints for must-gather
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-apiserver
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.0
Assignee: Robin Cernin
QA Contact: Ke Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-14 16:58 UTC by Lukasz Szaszkiewicz
Modified: 2021-07-27 22:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Added must-gather script to scrape priority and fairness debug endpoints.
Clone Of:
Environment:
Last Closed: 2021-07-27 22:36:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift must-gather pull 204 0 None closed Bug 1916392: Gather API priority and fairness debug endpoints 2021-03-14 22:35:23 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:36:35 UTC

Description Lukasz Szaszkiewicz 2021-01-14 16:58:58 UTC
API Priority and Fairness exposes a set of debug endpoints (HTTP) that could help us troubleshoot p&f related issues.
During must-gather we could scrape these endpoints and save the output to a file(s) and include it in the final must-gather bundle.

The full list of endpoints can be found at https://kubernetes.io/docs/concepts/cluster-administration/flow-control/#debug-endpoints

Comment 1 Lukasz Szaszkiewicz 2021-01-15 10:27:14 UTC
@Robin feel free to assign it to you if you are interested.

Comment 2 Robin Cernin 2021-01-15 12:14:18 UTC
Just added relevant endpoints to the Must-gather https://github.com/openshift/must-gather/pull/204

All debug endpoints, not the detailed ones, do you want detailed ones too?

Comment 3 Lukasz Szaszkiewicz 2021-01-15 14:55:27 UTC
(In reply to Robin Cernin from comment #2)
> Just added relevant endpoints to the Must-gather
> https://github.com/openshift/must-gather/pull/204
> 
> All debug endpoints, not the detailed ones, do you want detailed ones too?

The ones you added are the ones I wanted. What do you mean by detailed endpoints?

Comment 5 Ke Wang 2021-03-17 07:05:47 UTC
Verified with the following OCP payload,

$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-03-16-221720   True        False         151m    Cluster version is 4.8.0-0.nightly-2021-03-16-221720

$ oc adm must-gather | grep  priority_and_fairness
[must-gather-rtcjb] POD INFO: Collecting /debug/api_priority_and_fairness endpoint from kube-apiserver-ip-10-0-140-229.us-east-2.compute.internal
[must-gather-rtcjb] POD INFO: Collecting /debug/api_priority_and_fairness endpoint from kube-apiserver-ip-10-0-176-115.us-east-2.compute.internal
[must-gather-rtcjb] POD INFO: Collecting /debug/api_priority_and_fairness endpoint from kube-apiserver-ip-10-0-221-102.us-east-2.compute.internal
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-140-229.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-140-229.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/priority_levels
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-140-229.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/queues
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-140-229.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/requests
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-176-115.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-176-115.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/priority_levels
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-176-115.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/queues
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-176-115.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/requests
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-221-102.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-221-102.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/priority_levels
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-221-102.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/queues
[must-gather-rtcjb] OUT namespaces/openshift-kube-apiserver/pods/kube-apiserver-ip-10-0-221-102.us-east-2.compute.internal/kube-apiserver/kube-apiserver/api_priority_and_fairness/requests

From above, we can get the priority and fairness exposing a set of debug endpoints (HTTP) in must-gather bundle, so move the bug VERIFIED.

Comment 8 errata-xmlrpc 2021-07-27 22:36:14 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), 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/RHSA-2021:2438


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