Bug 1793267
| Summary: | [RPM-packed oc ] `oc version -o yaml` does not show the oc detailed version information, blocking QE 4.4 auto test | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | zhou ying <yinzhou> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | zhou ying <yinzhou> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 4.4 | CC: | aos-bugs, jokerman, lmeyer, lxia, maszulik, mfojtik, shiywang, vlaad, xtian, xxia, yuxzhu |
| Target Milestone: | --- | Keywords: | Regression, Reopened, TestBlocker |
| Target Release: | 4.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
Internal build components has moved places.
Consequence:
oc version wasn't outputting proper version information.
Fix:
Update internal build components with the new paths.
Result:
oc version is providing correct information about its version.
|
Story Points: | --- |
| Clone Of: | 1788357 | Environment: | |
| Last Closed: | 2020-02-12 06:45:08 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: | 1788357 | ||
| Bug Blocks: | |||
|
Comment 1
zhou ying
2020-01-21 03:20:51 UTC
Shiyang, Yuxiang, Luke and Vikas, Since QE's auto test slaves extract latest oc automatically from latest above RPM, retrieve client version from that oc to run tests for the versioned cases, now QE's 4.4 auto test failed and is blocked due to this bug. So adding this needinfo request to you, please help address it by making the oc in above RPM include the fix of bug 1788357 ASAP. Thank you in advance. @lmeyer has created tag https://github.com/openshift/oc/tree/openshift-clients-4.4. Succeeding builds should have correct version. In https://github.com/openshift/oc/pull/250 we fixed the ld flags injected into the command, I have a PR also for 4.3 fixing the same issue. All the data are read from current git, this includes the gitVersion, gitCommit and gitTreeState. If those cannot be read properly from repository then can be injected into build system through these 3 variables: SOURCE_GIT_TAG, SOURCE_GIT_COMMIT, SOURCE_GIT_TREE_STATE. I hope the above will help unstick ART. Not there yet, still missing one final PR. Confirmed with latest oc clients, the issue still can reproduce: [root@dhcp-140-138 ~]# rpm -q openshift-clients openshift-clients-4.4.0-202002052231.git.1.3433f68.el7.x86_64 [root@dhcp-140-138 ~]# oc version -o yaml clientVersion: buildDate: "" compiler: gc gitCommit: "" gitTreeState: "" gitVersion: unknown goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64 This was merged into oc on Feb 6th, so the build with a fix must be older than Feb 7th, at least. Moving back to modified. The issue has fixed: [root@localhost ~]# oc version -o yaml clientVersion: buildDate: "2020-02-10T17:21:47Z" compiler: gc gitCommit: ee05f83cb8f0bee84c0a1516591437cd71befdc8 gitTreeState: clean gitVersion: v4.4.0 goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64 Fixed in latest releases. |