Bug 1922585 - The windows oc.exe binary does not have version metadata
Summary: The windows oc.exe binary does not have version metadata
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.4
Hardware: x86_64
OS: Windows
medium
medium
Target Milestone: ---
: 4.5.z
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On: 1891892
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-30 11:38 UTC by OpenShift BugZilla Robot
Modified: 2021-02-03 11:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-03 11:34:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description OpenShift BugZilla Robot 2021-01-30 11:38:27 UTC
+++ This bug was initially created as a clone of Bug #1891892 +++

+++ This bug was initially created as a clone of Bug #1891555 +++

Created attachment 1724192 [details]
screenshot of the lack of version info on the oc.exe windows binary

Description of problem:
The oc.exe tool for windows does not have version meta-data imbeded in it. This makes automated deployment/management of it very difficult in an enterprise setting.

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

4.4.23

How reproducible:

Every time

Steps to Reproduce:
1. Download windows tools
2. install
3. right click on oc.exe, look in the details tab

Actual results:

file and product version information is blank (see attached screenshot)

Expected results:

file and product version to be populated with data that can be used to Windows software deployment tooling.

Additional info:

--- Additional comment from yselkowi on 2020-10-26 16:20:17 UTC ---

That's what goversioninfo is supposed to be for.  It seems the build infrastructure in origin used to handle that, specifically:

https://github.com/openshift/origin/blob/master/hack/lib/constants.sh#L198-L259
https://github.com/openshift/origin/blob/master/hack/lib/build/binaries.sh#L218-L221
https://github.com/openshift/origin/blob/master/hack/lib/build/binaries.sh#L238-L240

This appears not have been moved over to the separate oc repo when it was split out.

--- Additional comment from maszulik on 2020-11-13 10:55:27 UTC ---

This is waiting in the queue for its turn.

--- Additional comment from maszulik on 2020-12-04 16:20:33 UTC ---

PR in the queue.

--- Additional comment from maszulik on 2021-01-15 11:49:29 UTC ---

PR in the queue.

--- Additional comment from yinzhou on 2021-01-25 02:05:44 UTC ---

Build the oc with the PR , could see the file and product version to be populated with SOURCE_GIT_TAG=4.6.99.

--- Additional comment from yinzhou on 2021-01-25 06:44:49 UTC ---

Created attachment 1750399 [details]
oc detail

Comment 1 Maciej Szulik 2021-02-03 11:31:18 UTC
Based on https://access.redhat.com/support/policy/updates/openshift#dates
the full support for 4.5 has ended. Since this is medium priority fix it
won't be included in 4.5.


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