Bug 1775718

Summary: Openshift-installer binary shows a wrong version
Product: OpenShift Container Platform Reporter: Joel Rosental R. <jrosenta>
Component: InstallerAssignee: Scott Dodson <sdodson>
Installer sub component: openshift-installer QA Contact: Yang Yang <yanyang>
Status: CLOSED WONTFIX Docs Contact:
Severity: medium    
Priority: unspecified CC: adahiya, jialiu, rnoriega, wking
Version: 4.2.z   
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1728714 Environment:
Last Closed: 2020-03-05 21:25:50 UTC Type: ---
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: 1790537    
Bug Blocks:    

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.