Bug 1768516 - oc adm release extract - cannot use extracted oc to extract another version of oc
Summary: oc adm release extract - cannot use extracted oc to extract another version o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.3.0
Assignee: Sally
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-04 16:13 UTC by Sally
Modified: 2020-01-23 11:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:10:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 155 0 'None' closed Bug 1768516: fix extracted-oc adm extract oc 2021-01-07 12:28:26 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:10:51 UTC

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


Note You need to log in before you can comment on or make changes to this bug.