Bug 1780779 - CLI tools downloaded from mirror.openshift.com don't have the correct version numbers from 4.2 onwards
Summary: CLI tools downloaded from mirror.openshift.com don't have the correct version...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: 4.2.z
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
: 1781909 1786837 (view as bug list)
Depends On: 1791523
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-06 21:59 UTC by Chris Callegari
Modified: 2023-09-14 05:48 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1791523 (view as bug list)
Environment:
Last Closed: 2020-06-09 00:12:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Callegari 2019-12-06 21:59:44 UTC
Description of problem:
Unexpected and/or mismatched versions when downloading openshift client from mirror.openshift.com

Version-Release number of the following components:
n/a

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
$ curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest /openshift-client-linux-4.2.9.tar.gz -o openshift-client-linux-4.2.9.tar.gz | tar zxvf - oc
$ ./oc version
Client Version: openshift-clients-4.2.2-201910250432

$ export VERSION=$(curl -s https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/latest/release.txt | grep 'Name:' | awk -F: '{print $2}' | xargs)
$ echo $VERSION
4.4.0-0.nightly-2019-12-06-144548
$ curl -s https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/$VERSION/openshift-client-linux-$VERSION.tar.gz | tar zxvf - oc
oc
$ ./oc version
Client Version: openshift-clients-4.3.0-201910250623-91-gc994341a

Expected results:

Additional info:

Comment 1 Clayton Coleman 2019-12-06 22:11:54 UTC
This may be an ART time problem (not running oc adm release extract after they relabel the payload).

Comment 2 W. Trevor King 2019-12-06 23:34:29 UTC
In this space (but not this issue) is extract-time version injection into the installer: bug 1773257.

> ...not running oc adm release extract after they relabel the payload...

It's hard to see how payload-relabels would work without a fresh extraction, because the installers from the old extraction wouldn't pin the relabeled release image.  But maybe there's some magic that bumps installer pullspec pins without also getting oc version injection?

Comment 6 W. Trevor King 2019-12-10 05:43:01 UTC
> ... not running oc adm release extract after they relabel the payload ...

Also in this space, extract-time version injection only landed in oc with 4.3, so there's no extract-time oc manipulation in these 4.2 release images.  If we want that, we'd have to backport bug 1715001, which eventually resulted in [1,2,3,4] landing in 4.3.

[1]: https://github.com/openshift/oc/pull/88
[2]: https://github.com/openshift/oc/pull/131
[3]: https://github.com/openshift/oc/pull/155
[4]: https://github.com/openshift/oc/pull/198

Comment 9 Maciej Szulik 2019-12-11 16:23:31 UTC
*** Bug 1781909 has been marked as a duplicate of this bug. ***

Comment 12 Maciej Szulik 2020-01-02 15:05:34 UTC
*** Bug 1786837 has been marked as a duplicate of this bug. ***

Comment 13 Maciej Szulik 2020-01-07 12:50:00 UTC
*** Bug 1788357 has been marked as a duplicate of this bug. ***

Comment 16 Michal Fojtik 2020-06-01 11:01:23 UTC
The LifecycleStale keyword was removed, because the needinfo? flag was reset or the bug received blocker/security keyword.
The bug assignee was notified.

Comment 17 Michal Fojtik 2020-06-01 12:01:28 UTC
The LifecycleStale keyword was removed, because the needinfo? flag was reset or the bug received blocker/security keyword.
The bug assignee was notified.

Comment 19 Michal Fojtik 2020-06-09 00:12:17 UTC
This bug hasn't had any activity 7 days after it was marked as LifecycleStale, so we are closing this bug as WONTFIX. If you consider this bug still valuable, please reopen it or create new bug.

Comment 20 Red Hat Bugzilla 2023-09-14 05:48:18 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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