Bug 2058267
| Summary: | Better to named the oc-mirror version info with more information like the `oc version --client` | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Vu Dinh <vdinh> |
| Component: | oc | Assignee: | Alex <aflom> |
| oc sub component: | oc-mirror | QA Contact: | RamaKasturi <knarra> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | unspecified | CC: | aos-bugs, jpower, knarra, mfojtik, vdinh |
| Version: | 4.10 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.10.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-28 12:03:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2056752 | ||
| Bug Blocks: | |||
|
Description
Vu Dinh
2022-02-24 15:39:45 UTC
Verified by extracting oc-mirror from the payload below and i see that version info is being displayed for oc-mirror.
[knarra@knarra test]$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.10.0-0.nightly-2022-03-17-204457 True False 6h28m Error while reconciling 4.10.0-0.nightly-2022-03-17-204457: the cluster operator ingress is degraded
Steps followed to verify the bug:
==================================
[knarra@knarra openshift-client-linux-4.9.25]$ RELEASE_IMAGE='registry.ci.openshift.org/ocp/release:4.10.0-0.nightly-2022-03-17-204457'
[knarra@knarra test]$ oc image extract $(oc adm release info $RELEASE_IMAGE -o=json | jq -r '.references.spec.tags[] | select(.name=="oc-mirror") | .from.name') --path=/usr/bin/oc-mirror:.
W0318 21:43:39.552984 65167 helpers.go:151] Defaulting of registry auth file to "${HOME}/.docker/config.json" is deprecated. The default will be switched to podman config locations in the future version.
W0318 21:43:47.028833 65200 helpers.go:151] Defaulting of registry auth file to "${HOME}/.docker/config.json" is deprecated. The default will be switched to podman config locations in the future version.
[knarra@knarra test]$ ls -l
total 110476
-rw-r-----. 1 knarra knarra 113126160 Mar 18 00:22 oc-mirror
[knarra@knarra test]$ chmod +x oc-mirror
[knarra@knarra test]$ ./oc-mirror version
Client Version: version.Info{Major:"0", Minor:"1", GitVersion:"v0.1.0", GitCommit:"39506b334d161747ee5018e235f57bdff113bf70", GitTreeState:"clean", BuildDate:"2022-03-17T18:51:12Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}
Based on the above moving bug to verified state.
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 (OpenShift Container Platform 4.10.6 bug fix 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/RHBA-2022:1026 |