Bug 1999529 - Must gather fails to gather logs for all the namespace if server doesn't have volumesnapshotclasses resource
Summary: Must gather fails to gather logs for all the namespace if server doesn't have...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Arda Guclu
QA Contact: zhou ying
Whiteboard: LifecycleStale
Depends On:
TreeView+ depends on / blocked
Reported: 2021-08-31 08:33 UTC by Praveen Kumar
Modified: 2022-08-10 10:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2022-08-10 10:37:25 UTC
Target Upstream Version:

Attachments (Terms of Use)
must gather from cluster (516.45 KB, application/x-xz)
2021-08-31 08:33 UTC, Praveen Kumar
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift must-gather pull 296 0 None open Bug 1999529: Filter disabled resources in inspection to proceed others 2022-04-12 12:01:27 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:37:45 UTC

Description Praveen Kumar 2021-08-31 08:33:49 UTC
Created attachment 1819295 [details]
must gather from cluster

Description of problem: As part of CRC we are disable lot of operator and storage is one of them so by default we don't have `volumesnapshotclasses` resource. Does the `must-gather` have hard requirement on this resource? Because looks like as soon as we run `oc adm must-gather` it will just capture logs of some of namespaces not available one.

Version-Release number of selected component (if applicable):

How reproducible: (On a recently provisioned crc cluster)
$ oc adm must-gather
[must-gather      ] OUT Using must-gather plug-in image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:eede85cbd33388f7e18954e5ce8ad9616e91df05ace604966c0a44111d85c897
When opening a support case, bugzilla, or issue please include the following summary data along with any other requested information.
ClusterID: 94cd484d-a3f7-4771-96a8-f554709cef27
ClusterVersion: Stable at "4.8.4"
	clusteroperator/cloud-credential is missing
	clusteroperator/cluster-autoscaler is missing
	clusteroperator/insights is missing
	clusteroperator/kube-storage-version-migrator is missing
	clusteroperator/monitoring is missing
	clusteroperator/storage is missing

[must-gather      ] OUT namespace/openshift-must-gather-gb8xr created
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-v6sqh created
[must-gather      ] OUT pod for plug-in image quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:eede85cbd33388f7e18954e5ce8ad9616e91df05ace604966c0a44111d85c897 created
[must-gather-2wkkf] POD 2021-08-31T08:14:12.462984662Z Gathering data for ns/openshift-cluster-version...
[must-gather-2wkkf] POD 2021-08-31T08:14:14.137876384Z Gathering data for ns/default...
[must-gather-2wkkf] POD 2021-08-31T08:14:15.375908773Z Gathering data for ns/openshift...
[must-gather-2wkkf] POD 2021-08-31T08:14:16.838219258Z Gathering data for ns/kube-system...
[must-gather-2wkkf] POD 2021-08-31T08:14:18.816679925Z Gathering data for ns/openshift-etcd...
[must-gather-2wkkf] POD 2021-08-31T08:14:20.561104286Z Gathering data for ns/openshift-kni-infra...
[must-gather-2wkkf] POD 2021-08-31T08:14:21.812460009Z Wrote inspect data to must-gather.
[must-gather-2wkkf] POD 2021-08-31T08:14:22.906437860Z error: the server doesn't have a resource type "volumesnapshotclasses"
[must-gather-2wkkf] POD 2021-08-31T08:14:23.172589299Z Error from server (NotFound): routes.route.openshift.io "prometheus-k8s" not found
[must-gather-2wkkf] POD 2021-08-31T08:14:24.373570855Z Wrote inspect data to must-gather.
[must-gather-2wkkf] POD 2021-08-31T08:14:25.194543597Z INFO: Collecting /debug/api_priority_and_fairness endpoint from kube-apiserver-crc-5br8f-master-0
[must-gather-2wkkf] POD 2021-08-31T08:14:26.398998421Z Getting information from pod "etcd-crc-5br8f-master-0", container "etcdctl"
[must-gather-2wkkf] POD 2021-08-31T08:14:26.398998421Z Using endpoints:,unixs://

$ oc get co
NAME                                       VERSION   AVAILABLE   PROGRESSING   DEGRADED   SINCE
authentication                             4.8.4     True        False         False      30m
config-operator                            4.8.4     True        False         False      21d
console                                    4.8.4     True        False         False      28m
dns                                        4.8.4     True        False         False      32m
etcd                                       4.8.4     True        False         False      21d
image-registry                             4.8.4     True        False         False      32m
ingress                                    4.8.4     True        False         False      21d
kube-apiserver                             4.8.4     True        False         False      21d
kube-controller-manager                    4.8.4     True        False         False      21d
kube-scheduler                             4.8.4     True        False         False      21d
machine-api                                4.8.4     True        False         False      21d
machine-approver                           4.8.4     True        False         False      21d
machine-config                             4.8.4     True        False         False      21d
marketplace                                4.8.4     True        False         False      21d
network                                    4.8.4     True        False         False      21d
node-tuning                                4.8.4     True        False         False      32m
openshift-apiserver                        4.8.4     True        False         False      32m
openshift-controller-manager               4.8.4     True        False         False      32m
openshift-samples                          4.8.4     True        False         False      21d
operator-lifecycle-manager                 4.8.4     True        False         False      21d
operator-lifecycle-manager-catalog         4.8.4     True        False         False      21d
operator-lifecycle-manager-packageserver   4.8.4     True        False         False      32m
service-ca                                 4.8.4     True        False         False      21d
Actual results:
must gather not able to capture logs from machine-* or network ...etc. namespace only capture from openshift-cluster-version, default, openshift, kube-system, openshift-etcd and openshift-kni-infra.

Expected results:
Should capture logs from all the namespaces even there is no storage configured on cluster.

Additional info:
Captured must gather log.

Comment 1 Maciej Szulik 2021-09-01 10:51:32 UTC
Ross check this out please, in theory most of must-gather inspection works such that it will report that it can't scrape the resource but it should still continue working.

Comment 2 Michal Fojtik 2021-10-20 15:38:34 UTC
This bug hasn't had any activity in the last 30 days. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're marking this bug as "LifecycleStale" and decreasing the severity/priority. If you have further information on the current state of the bug, please update it, otherwise this bug can be closed in about 7 days. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. Additionally, you can add LifecycleFrozen into Whiteboard if you think this bug should never be marked as stale. Please consult with bug assignee before you do that.

Comment 7 Praveen Kumar 2022-05-24 06:24:31 UTC
@zhou you need to start the cluster with some of operator override, we as part of crc using https://github.com/code-ready/snc/blob/master/snc.sh script mostly https://github.com/code-ready/snc/blob/master/snc.sh#L131-L132 to override some of operators which will disable by default.

Comment 13 zhou ying 2022-06-06 04:17:38 UTC
Praveen Kumar

Thanks a lot, let me move to verified status.

Comment 15 errata-xmlrpc 2022-08-10 10:37:25 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 (Important: OpenShift Container Platform 4.11.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.


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