Bug 1991819
| Summary: | Misspelled word "ocurred" in oc inspect cmd | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Wei Duan <wduan> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| oc sub component: | oc | QA Contact: | zhou ying <yinzhou> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | low | ||
| Priority: | low | CC: | aos-bugs, mfojtik |
| Version: | 4.9 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-11 18:15:11 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: | |||
This was fixed in https://github.com/openshift/oc/pull/1002 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 |
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: