Bug 1866482 - Few errors are seen when oc adm must-gather is run
Summary: Few errors are seen when oc adm must-gather is run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Credential Operator
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Akhil Rane
QA Contact: wang lin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-05 16:36 UTC by RamaKasturi
Modified: 2021-02-24 15:15 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:15:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:15:49 UTC

Description RamaKasturi 2020-08-05 16:36:10 UTC
Description of problem:
When oc adm must-gather is run below errors are shown but must-gather completes successfully
[must-gather-r6dx7] POD     [skipping gathering clusteroles.rbac.authorization.k8s.io/pod-identity-webhook due to error: the server doesn't have a resource type "clusteroles", skipping gathering clusterolebindings.rbac.authorization.k8s.io/pod-identity-webhook due to error: the server doesn't have a resource type "clusterolebindings", skipping gathering clustercsidrivers.operator.openshift.io/csi.ovirt.org due to error: clustercsidrivers.operator.openshift.io "csi.ovirt.org" not found, skipping gathering clustercsidrivers.operator.openshift.io/manila.csi.openstack.org due to error: clustercsidrivers.operator.openshift.io "manila.csi.openstack.org" not found, skipping gathering namespaces/openshift-aws-ebs-csi-driver due to error: namespaces "openshift-aws-ebs-csi-driver" not found]


Version-Release number of selected component (if applicable):
[ramakasturinarra@dhcp35-60 ~]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.6.0-0.nightly-2020-08-03-025909   True        False         24h     Cluster version is 4.6.0-0.nightly-2020-08-03-025909

How reproducible:
Always

Steps to Reproduce:
1. Install latest 4.6 cluster
2. Run oc adm must-gather command
3.

Actual results:
must-gather throws below errors bug successfully completes.
[must-gather-r6dx7] POD     [skipping gathering clusteroles.rbac.authorization.k8s.io/pod-identity-webhook due to error: the server doesn't have a resource type "clusteroles", skipping gathering clusterolebindings.rbac.authorization.k8s.io/pod-identity-webhook due to error: the server doesn't have a resource type "clusterolebindings", skipping gathering clustercsidrivers.operator.openshift.io/csi.ovirt.org due to error: clustercsidrivers.operator.openshift.io "csi.ovirt.org" not found, skipping gathering clustercsidrivers.operator.openshift.io/manila.csi.openstack.org due to error: clustercsidrivers.operator.openshift.io "manila.csi.openstack.org" not found, skipping gathering namespaces/openshift-aws-ebs-csi-driver due to error: namespaces "openshift-aws-ebs-csi-driver" not found]

Expected results:
must-gather should not throw any error when it runs.

Additional info:

Comment 1 Maciej Szulik 2020-08-11 10:52:34 UTC
Looks like you folks have a few typos in related resources in https://github.com/openshift/cloud-credential-operator/blob/e5d1e9c86fd838b36ce43b8441ef33c307449a30/pkg/operator/awspodidentity/controller.go#L71
clusteroles -> clusterroles - notice double 'r'
clusterolebindings -> clusterrolebindings - double 'r'

Comment 2 Greg Sheremeta 2020-08-22 11:56:57 UTC
will investigate next sprint

Comment 3 Devan Goodwin 2020-09-10 12:11:18 UTC
Still hoping to fit in but did not make this sprint.

Comment 4 Akhil Rane 2020-09-22 15:39:05 UTC
Already fixed as part of this PR -> https://github.com/openshift/cloud-credential-operator/pull/233

Comment 5 wang lin 2020-09-23 01:46:18 UTC
Has fixed. won't see the above error now.

$ oc adm must-gather command
[must-gather      ] OUT Using must-gather plugin-in image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:9c085fe57bc08c98270ce7aab9b58b4df68557a6469ac43602b2d5566cb226ef
[must-gather      ] OUT namespace/openshift-must-gather-frg46 created
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-wtmdq created
[must-gather      ] OUT pod for plug-in image quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:9c085fe57bc08c98270ce7aab9b58b4df68557a6469ac43602b2d5566cb226ef created
[must-gather-rc66f] OUT waiting for gather to complete
[must-gather-rc66f] OUT downloading gather output
[must-gather-rc66f] OUT receiving incremental file list
[must-gather-rc66f] OUT ./
[must-gather-rc66f] OUT 
[must-gather-rc66f] OUT sent 27 bytes  received 41 bytes  12.36 bytes/sec
[must-gather-rc66f] OUT total size is 0  speedup is 0.00
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-wtmdq deleted
[must-gather      ] OUT namespace/openshift-must-gather-frg46 deleted

Comment 8 errata-xmlrpc 2021-02-24 15:15:21 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.7.0 security, bug fix, and enhancement 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-2020:5633


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