Bug 1768516

Summary: oc adm release extract - cannot use extracted oc to extract another version of oc
Product: OpenShift Container Platform Reporter: Sally <somalley>
Component: ocAssignee: Sally <somalley>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, jokerman, maszulik, mfojtik, wking
Target Milestone: ---   
Target Release: 4.3.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: 2020-01-23 11:10:40 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 Sally 2019-11-04 16:13:16 UTC
Description of problem:
You cannot use an extracted oc to extract oc

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. oc adm release extract --command oc <any release image>
2../oc adm release extract --command oc <any release image>

Actual results:
The second extract fails

Expected results:
An extracted oc should be able to extract another oc

Comment 2 W. Trevor King 2019-11-16 17:54:45 UTC
I have [1] in flight touching this same code.  Might want to wait on verifying this bug until that settles.

[1]: https://github.com/openshift/oc/pull/165

Comment 3 zhou ying 2019-11-18 00:36:01 UTC
Confirmed with latest version, the issue has fixed:
[root@dhcp-140-138 tmp]# oc adm release extract --command oc registry.svc.ci.openshift.org/ocp/release:4.3.0-0.nightly-2019-11-17-145435
[root@dhcp-140-138 tmp]# ll
total 81424
-rwxr-xr-x. 1 root     root     83377816 Nov 15 21:55 oc

[root@dhcp-140-138 tmp]# ./oc version
Client Version: 4.3.0-0.nightly-2019-11-17-145435


[root@dhcp-140-138 test2]# ../oc adm release extract --command oc registry.svc.ci.openshift.org/ocp/release:4.3.0-0.nightly-2019-11-13-173334

[root@dhcp-140-138 test2]# ./oc version
Client Version: 4.3.0-0.nightly-2019-11-13-173334

Comment 5 errata-xmlrpc 2020-01-23 11:10:40 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, 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-2020:0062