Bug 1723941
| Summary: | Allow `oc adm release info` to output digest, name, or pull spec | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Eric Paris <eparis> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.1.z | CC: | aos-bugs, jokerman, mfojtik, xtian, xxia |
| Target Milestone: | --- | ||
| Target Release: | 4.1.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | 4.1.4 | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-07-04 09:01:54 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: | |||
|
Description
Eric Paris
2019-06-25 19:39:00 UTC
Confirmed with latest client 4.1.4-201906261555.git.0.c9e4f28.el7, works well:
[root@dhcp-140-138 ~]# oc adm release info registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-06-27-204704 --commits -o pullspec
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e5e539a01405f05cc8a94c04752bec886dfd2e91f421ef94d5b37ea8660747e1
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:46d6adc979aead6908a57c8a1d771a498f93506c5bc9cd7bb8aceee041fc0242
...
[root@dhcp-140-138 ~]# oc adm release info registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-06-27-204704 --commits -o digest
sha256:e5e539a01405f05cc8a94c04752bec886dfd2e91f421ef94d5b37ea8660747e1
sha256:46d6adc979aead6908a57c8a1d771a498f93506c5bc9cd7bb8aceee041fc0242
...
[root@dhcp-140-138 ~]# oc adm release info registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-06-27-204704 --commits -o name
aws-machine-controllers
azure-machine-controllers
...
[root@dhcp-140-138 ~]# oc adm release info registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-06-27-204704 --commits -o json
{
"image": "registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-06-27-204704",
"digest": "sha256:30f79c8afa66dc4cf73dae48d6881e34bc4fcb0fb2fb96e74efee0b1509a7f63",
....
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, 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-2019:1635 |