Bug 1991819 - Misspelled word "ocurred" in oc inspect cmd
Summary: Misspelled word "ocurred" in oc inspect cmd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.9
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.10.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-10 06:10 UTC by Wei Duan
Modified: 2022-03-11 18:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-11 18:15:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wei Duan 2021-08-10 06:10:45 UTC
Description of problem:
I find in inspect cmd, there is a misspelled word "ocurred".
$ grep -r "ocurred" 
pkg/cli/admin/inspect/inspect.go:		return fmt.Errorf("errors ocurred while gathering data:\n    %v", errors.NewAggregate(allErrs))
pkg/cli/admin/inspect/inspect.go:		return fmt.Errorf("one or more errors ocurred while gathering config.openshift.io resource data:\n\n    %v", errors.NewAggregate(errs))
pkg/cli/admin/inspect/inspect.go:		return fmt.Errorf("one or more errors ocurred while gathering operator.openshift.io resource data:\n\n    %v", errors.NewAggregate(errs))
pkg/cli/admin/inspect/namespace.go:		return fmt.Errorf("one or more errors ocurred while gathering pod-specific data for namespace: %s\n\n    %v", namespace, errors.NewAggregate(errs))
pkg/cli/admin/inspect/pod.go:		return fmt.Errorf("one or more errors ocurred while gathering container data for pod %s:\n\n    %v", pod.Name, utilerrors.NewAggregate(errs))

Version-Release number of selected component (if applicable):
$ oc version
Client Version: 4.9.0-0.nightly-2021-08-07-175228
Server Version: 4.9.0-0.nightly-2021-08-07-175228
Kubernetes Version: v1.21.1+8268f88

How reproducible:
Always

Steps to Reproduce:
$ oc adm inspect co storage
Gathering data for ns/openshift-cluster-storage-operator...
Gathering data for ns/openshift-cluster-csi-drivers...
Wrote inspect data to inspect.local.4356476781761520600.
error: errors ocurred while gathering data:
    skipping gathering namespaces/openshift-manila-csi-driver due to error: namespaces "openshift-manila-csi-driver" not found

Actual results:


Expected results:
"ocurred" should be updated to "occurred"

Additional info:

Comment 2 Maciej Szulik 2022-01-25 10:40:33 UTC
This was fixed in https://github.com/openshift/oc/pull/1002

Comment 5 zhou ying 2022-01-30 04:35:59 UTC
the issue has fixed :


[root@localhost openshift-tests-private]# oc adm inspect co storage
Gathering data for ns/openshift-cluster-storage-operator...
Gathering data for ns/openshift-cluster-csi-drivers...
Wrote inspect data to inspect.local.5355791683796258326.
error: errors occurred while gathering data:


[root@localhost openshift-tests-private]# oc version --client
Client Version: 4.10.0-202201281850.p0.g7c299f1.assembly.stream-7c299f1


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