Bug 2112934
| Summary: | The oc adm inspect ns/[namespace_name] command is not collecting the servicemonitors in the namespace | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | oarribas <oarribas> |
| Component: | oc | Assignee: | Arda Guclu <aguclu> |
| oc sub component: | oc | QA Contact: | zhou ying <yinzhou> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | low | ||
| Priority: | low | CC: | aguclu, jchaloup, mfojtik, oarribas |
| Version: | 4.10 | Keywords: | Reopened |
| Target Milestone: | --- | ||
| Target Release: | 4.12.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-01-17 19:54:07 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
oarribas
2022-08-01 14:43:14 UTC
`oc adm inspect ns/openshift-monitoring` command only supports common resources that mostly exist in various namespaces, since must-gather also uses that command. When I checked in must-gather, inspection is executed for a few namespaces(https://github.com/openshift/must-gather/blob/63488d47e68294b8feab1f06698ffb6b57778a3f/collection-scripts/gather#L28). Thereby, adding `ServiceMonitor` inspection in `oc adm inspect` will already not be used by must-gather. In addition to that, when I ran `oc adm inspect servicemonitor` in different namespaces(kube-system, openshift-apiserver, etc.), only a few of them returned resources. I think, it would be better continuing using `oc adm inspect servicemonitor -n openshift-monitoring` as an supportive additional resource to `oc adm inspect ns/openshift-monitoring`. oc version --client Client Version: 4.12.0-0.nightly-2022-08-23-223922 Kustomize Version: v4.5.4 [root@localhost ~]# oc adm inspect ns/openshift-monitoring Gathering data for ns/openshift-monitoring... W0824 13:58:17.814395 19384 util.go:119] the server doesn't have a resource type egressfirewalls, skipping the inspection Wrote inspect data to inspect.local.8994323742603699922. [root@localhost ~]# cd inspect.local.8994323742603699922/ [root@localhost inspect.local.8994323742603699922]# find . -name "*servicemonitor*" ./namespaces/openshift-monitoring/monitoring.coreos.com/servicemonitors.yaml 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.12.0 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-2022:7399 |