Bug 1775718 - Openshift-installer binary shows a wrong version
Summary: Openshift-installer binary shows a wrong version
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.2.z
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: 4.2.z
Assignee: Scott Dodson
QA Contact: Yang Yang
URL:
Whiteboard:
Depends On: 1790537
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-22 16:19 UTC by Joel Rosental R.
Modified: 2023-09-07 21:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1728714
Environment:
Last Closed: 2020-03-05 21:25:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Joel Rosental R. 2019-11-22 16:19:33 UTC
+++ This bug was initially created as a clone of Bug #1728714 +++

Description of problem:

Running `openshift-install version` shows a different version.

4.2.7 binary from https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/

$ ./openshift-install version
./openshift-install v4.2.5
built from commit 425e4ff0037487e32571258640b39f56d5ee5572
release image quay.io/openshift-release-dev/ocp-release@sha256:bac62983757570b9b8f8bc84c740782984a255c16372b3e30cfc8b52c0a187b9
Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Get https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux-4.2.7.tar.gz
2. Extract and uncompress it
3. Run `openshift-install version`

Actual results:
A different version is shown:

./openshift-install v4.2.5


Expected results:

Version should match, i.e: ./openshift-install v4.2.7

Additional info:

Comment 1 Johnny Liu 2020-01-14 01:56:44 UTC
Reproduce:
# oc adm release extract --command='openshift-install' "quay.io/openshift-release-dev/ocp-release:4.2.7" --to=/usr/bin

# openshift-install version
openshift-install v4.2.5
built from commit 425e4ff0037487e32571258640b39f56d5ee5572
release image quay.io/openshift-release-dev/ocp-release@sha256:bac62983757570b9b8f8bc84c740782984a255c16372b3e30cfc8b52c0a187b9

Verification:
# oc adm release extract --command='openshift-install' "quay.io/openshift-release-dev/ocp-release:4.2.14-x86_64" --to=/usr/bin

# openshift-install version
openshift-install v4.2.14
built from commit 46f909e4ccb4f7a4f82bf1ee28b32fa011a6bd1f
release image quay.io/openshift-release-dev/ocp-release@sha256:3fabe939da31f9a31f509251b9f73d321e367aba2d09ff392c2f452f6433a95a

Comment 2 Johnny Liu 2020-01-14 02:14:40 UTC
Also confirm this:
# wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.2.14/openshift-install-linux-4.2.14.tar.gz
# gunzip openshift-install-linux-4.2.14.tar.gz
# tar -xf ./openshift-install-linux-4.2.14.tar
# ./openshift-install version
./openshift-install v4.2.14
built from commit 46f909e4ccb4f7a4f82bf1ee28b32fa011a6bd1f
release image quay.io/openshift-release-dev/ocp-release@sha256:3fabe939da31f9a31f509251b9f73d321e367aba2d09ff392c2f452f6433a95a

Comment 3 W. Trevor King 2020-02-04 17:31:35 UTC
Should probably not be POST, since the 4.3 bug 1790537 and its [1] are still open.

[1]: https://github.com/openshift/installer/pull/2907

Comment 5 Scott Dodson 2020-03-05 21:25:50 UTC
This has been addressed in 4.3 and has not been deemed critical enough to fix in 4.2.


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