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.
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: https://192.168.126.11:2379,unixs://192.168.126.11:0
$ 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
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.
Should capture logs from all the namespaces even there is no storage configured on cluster.
Captured must gather log.
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.
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.
@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.
Thanks a lot, let me move to verified status.
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.