Bug 1790954
| Summary: | `oc --v 7` shows User-Agent as "v0.0.0...$Format" | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Maciej Szulik <maszulik> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED WONTFIX | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 4.3.0 | CC: | aos-bugs, jokerman, maszulik, mfojtik, sttts, xxia, yinzhou |
| Target Milestone: | --- | Flags: | maszulik:
needinfo-
|
| Target Release: | 4.3.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | LifecycleReset | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1779519 | Environment: | |
| Last Closed: | 2020-08-25 06:28:37 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: | 1779519 | ||
| Bug Blocks: | |||
|
Description
Maciej Szulik
2020-01-14 15:23:05 UTC
Still could reproduce the issue with oc from yum repo and payload: [root@dhcp-140-138 ~]# oc version -o yaml clientVersion: buildDate: "2020-04-04T06:05:10Z" compiler: gc gitCommit: 081196cac40a01e541152175cc4da92d3a5ab07d gitTreeState: clean gitVersion: 4.3.11-202004040552-081196c goVersion: go1.12.12 major: "" minor: "" platform: linux/amd64 [root@dhcp-140-138 ~]# oc get po -v 7 I0408 12:25:07.134096 4507 loader.go:375] Config loaded from file: /root/kubeconfig I0408 12:25:07.135628 4507 round_trippers.go:420] GET https://api.yinzhou-bugv.qe.devcluster.openshift.com:6443/apis/metrics.k8s.io/v1beta1?timeout=32s I0408 12:25:07.135643 4507 round_trippers.go:427] Request Headers: I0408 12:25:07.135655 4507 round_trippers.go:431] Accept: application/json, */* I0408 12:25:07.135665 4507 round_trippers.go:431] User-Agent: oc/v0.0.0 (linux/amd64) kubernetes/$Format [root@dhcp-140-138 ~]# ./oc version -o yaml clientVersion: buildDate: "2020-04-06T13:26:27Z" compiler: gc gitCommit: 081196cac40a01e541152175cc4da92d3a5ab07d gitTreeState: dirty gitVersion: openshift-clients-4.3.11-202004040552 goVersion: go1.12.12 major: "" minor: "" platform: linux/amd64 [root@dhcp-140-138 ~]# ./oc get po -v 7 I0408 12:31:04.264509 4562 loader.go:375] Config loaded from file: /root/kubeconfig I0408 12:31:04.266024 4562 round_trippers.go:420] GET https://api.yinzhou-bugv.qe.devcluster.openshift.com:6443/apis/metrics.k8s.io/v1beta1?timeout=32s I0408 12:31:04.266038 4562 round_trippers.go:427] Request Headers: I0408 12:31:04.266052 4562 round_trippers.go:431] Accept: application/json, */* I0408 12:31:04.266063 4562 round_trippers.go:431] User-Agent: oc/v0.0.0 (linux/amd64) kubernetes/$Format I've verified this with quay.io/openshift-release-dev/ocp-release:4.3.21-x86_64 and this works as expected, moving to qa. Still could reproduce : [root@dhcp-140-138 ~]# oc version -o yaml clientVersion: buildDate: "2020-05-23T09:59:41Z" compiler: gc gitCommit: 4fb2d4d96e6b604f7d4ee49080238a5aec04dc4f gitTreeState: clean gitVersion: 4.3.23-202005230952-4fb2d4d goVersion: go1.12.12 major: "" minor: "" platform: linux/amd64 [root@dhcp-140-138 ~]# oc get po --v 7 I0525 13:25:33.097361 23152 loader.go:375] Config loaded from file: /root/kubeconfig I0525 13:25:33.098842 23152 round_trippers.go:420] GET https://api.xxxxx.openshift.com:6443/apis/metrics.k8s.io/v1beta1?timeout=32s I0525 13:25:33.098856 23152 round_trippers.go:427] Request Headers: I0525 13:25:33.098872 23152 round_trippers.go:431] User-Agent: oc/v0.0.0 (linux/amd64) kubernetes/$Format I0525 13:25:33.098885 23152 round_trippers.go:431] Accept: application/json, */* [root@dhcp-140-138 ~]# ./oc version -o yaml clientVersion: buildDate: "2020-05-23T10:59:39Z" compiler: gc gitCommit: 4fb2d4d96e6b604f7d4ee49080238a5aec04dc4f gitTreeState: dirty gitVersion: openshift-clients-4.3.23-202005230952 goVersion: go1.12.12 major: "" minor: "" platform: linux/amd64 openshiftVersion: 4.5.0-0.nightly-2020-05-24-223848 releaseClientVersion: 4.3.0-0.nightly-2020-05-24-223407 [root@dhcp-140-138 ~]# ./oc get po --v 7 I0525 13:26:29.213673 23177 loader.go:375] Config loaded from file: /root/kubeconfig I0525 13:26:29.215020 23177 round_trippers.go:420] GET https://apixxxxx.openshift.com:6443/apis/metrics.k8s.io/v1beta1?timeout=32s I0525 13:26:29.215035 23177 round_trippers.go:427] Request Headers: I0525 13:26:29.215044 23177 round_trippers.go:431] Accept: application/json, */* I0525 13:26:29.215051 23177 round_trippers.go:431] User-Agent: oc/v0.0.0 (linux/amd64) kubernetes/$Format Where did you get the binary from? oc installed from yum repo or extracted from payload: oc adm release extract --command='oc' registry.svc.ci.openshift.org/ocp/release:4.3.0-0.nightly-2020-05-30-012900 [root@dhcp-140-138 ~]# ./oc version -o yaml clientVersion: buildDate: "2020-05-25T09:06:07Z" compiler: gc gitCommit: 4fb2d4d96e6b604f7d4ee49080238a5aec04dc4f gitTreeState: dirty gitVersion: openshift-clients-4.3.23-202005230952 goVersion: go1.12.12 major: "" minor: "" platform: linux/amd64 releaseClientVersion: 4.3.0-0.nightly-2020-05-30-012900 I’m adding UpcomingSprint, because I was occupied by fixing bugs with higher priority/severity, developing new features with higher priority, or developing new features to improve stability at a macro level. I will revisit this bug next sprint. This bug hasn't had any activity 7 days after it was marked as LifecycleStale, so we are closing this bug as WONTFIX. If you consider this bug still valuable, please reopen it or create new bug. The LifecycleStale keyword was removed because the bug got commented on recently. The bug assignee was notified. |