Bug 1732153

Summary: Missing information about oc client version.
Product: OpenShift Container Platform Reporter: Simon <skordas>
Component: ocAssignee: Tomáš Nožička <tnozicka>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, jokerman, mfojtik, tnozicka
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:30:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Simon 2019-07-22 19:31:07 UTC
Description of problem:

Missing information about oc version.

Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-07-22-160516


How reproducible:
100%

Steps to Reproduce:
1. From page https://openshift-release.svc.ci.openshift.org/releasestream/4.2.0-0.nightly/release/4.2.0-0.nightly-2019-07-22-160516 download instaler

oc adm release extract --tools registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-07-22-160516

2. Unpack files.
3. Get oc version:
# oc version -o yaml

Actual results:
clientVersion:
  buildDate: ""
  compiler: gc
  gitCommit: ""
  gitTreeState: ""
  gitVersion: unknown
  goVersion: go1.12.6
  major: ""
  minor: ""
  platform: linux/amd64


Expected results:
buildDate, gitCommit, gitTreeState, major, minor fields should be completed.

Additional info:
Not sure if this is in conflict with:
https://bugzilla.redhat.com/show_bug.cgi?id=1729610

Comment 1 Tomáš Nožička 2019-07-23 16:16:44 UTC
bump in https://github.com/openshift/oc/pull/23 is fixing those for ART builds

Comment 2 zhou ying 2019-07-25 03:24:24 UTC
Confirmed with latest version, the issue has fixed: 4.2.0-201907241419.git.0.bd34733.el7
clientVersion:
  buildDate: "2019-07-24T18:32:52Z"
  compiler: gc
  gitCommit: bd34733a7
  gitTreeState: clean
  gitVersion: v4.2.0
  goVersion: go1.12.6
  major: "4"
  minor: 2+
  platform: linux/amd64

Comment 3 errata-xmlrpc 2019-10-16 06:30:26 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-2019:2922