Bug 2117822

Summary: oc adm release extract should handle ccoctl
Product: OpenShift Container Platform Reporter: Yaakov Selkowitz <yselkowi>
Component: ocAssignee: Yaakov Selkowitz <yselkowi>
oc sub component: oc QA Contact: zhou ying <yinzhou>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: jchaloup, mfojtik
Version: 4.11   
Target Milestone: ---   
Target Release: 4.12.0   
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: 2023-01-17 19:54:55 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:
Bug Depends On:    
Bug Blocks: 2117823    

Description Yaakov Selkowitz 2022-08-12 02:58:02 UTC
The documentation currently has a complicated procedure for extracting ccoctl from the payload.  oc adm release extract should be taught how to handle this instead in order to provide a simpler extraction procedure.

Comment 2 Jan Chaloupka 2022-08-15 09:56:14 UTC
Hi Yaakov, would you please point me to the documentation? Also, do you know why the BZ was moved to MODIFIED by the OpenShift BugZilla Robot?

Comment 3 Jan Chaloupka 2022-08-15 09:59:08 UTC
I see. When a PR is backported, the Bot creates a fresh new master branch BZ (if there's none) since 4.11 BZ requires a dependent BZ to be in VERIFIED state to properly proceed further.

Comment 4 Yaakov Selkowitz 2022-08-15 13:00:19 UTC
Example: https://docs.openshift.com/container-platform/4.11/authentication/managing_cloud_provider_credentials/cco-mode-sts.html#cco-ccoctl-configuring_sts-mode-upgrading

And yes, while this was changed in 4.12 without a BZ, this is needed in order to proceed with a 4.11 backport/cherry-pick.

Comment 5 zhou ying 2022-08-16 03:17:54 UTC
[root@localhost ~]# oc version --client
Client Version: 4.12.0-0.nightly-2022-08-12-053438
Kustomize Version: v4.5.4


[root@localhost ~]# oc adm release extract --command='ccoctl' registry.ci.openshift.org/ocp/release:4.12.0-0.nightly-2022-08-15-150248
Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version of oc. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version of oc. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
[root@localhost ~]# ls ccoctl 
ccoctl

Comment 8 errata-xmlrpc 2023-01-17 19:54:55 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.12.0 bug fix and security 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-2022:7399