Bug 1763807
Summary: | --since argument for 'oc adm node-logs' command returns an error "error: rhhi-node-master-0 the server rejected our request for an unknown reason" | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Alexander Chuzhoy <sasha> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.2.0 | CC: | aos-bugs, dmoessne, jokerman, mfojtik, yinzhou |
Target Milestone: | --- | ||
Target Release: | 4.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-01-23 11:08: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: | |||
Bug Depends On: | 1779563 | ||
Bug Blocks: |
Description
Alexander Chuzhoy
2019-10-21 16:13:09 UTC
In your case the problem is the format of --since parameter, see this error: parameter 'since' is invalid: date must be a relative time of the form '(+|-)[0-9]+(s|m|h|d)' or a date in 'YYYY-MM-DDTHH:MM:SSZ' form which is hidden when you executed with -v=7. I've put together https://github.com/openshift/oc/pull/135 which should expose that error to user. https://github.com/openshift/origin/pull/24201 is going to fix the situation in master, 4.3 cherry-pick will follow. https://github.com/openshift/origin/pull/24213 merged, moving to qa. Confirmed with latest version, the error issue has fixed: [root@dhcp-140-138 ~]# oc version -o yaml clientVersion: buildDate: "2019-12-03T14:24:28Z" compiler: gc gitCommit: a82d2ce4efdbfa9836480d8567acccfde19d297b gitTreeState: clean gitVersion: v4.3.0 goVersion: go1.12.12 major: "" minor: "" platform: linux/amd64 openshiftVersion: 4.3.0-0.nightly-2019-12-03-211441 [root@dhcp-140-138 ~]# oc adm node-logs ip-10-0-137-15.us-east-2.compute.internal --since "16:00:00" error: the server rejected our request for an unknown reason parameter 'since' is invalid: date must be a relative time of the form '(+|-)[0-9]+(s|m|h|d)' or a date in 'YYYY-MM-DDTHH:MM:SSZ' form [root@dhcp-140-138 ~]# oc adm node-logs ip-10-0-137-15.us-east-2.compute.internal --since yesterday error: the server rejected our request for an unknown reason parameter 'since' is invalid: date must be a relative time of the form '(+|-)[0-9]+(s|m|h|d)' or a date in 'YYYY-MM-DDTHH:MM:SSZ' form From previous comment it looks like it's not working as it should, moving back to dev. *** Bug 1779563 has been marked as a duplicate of this bug. *** This is not blocking 4.3, but we want to fix it in 4.3, moving to .z Confirmed with latest version, the issue has fixed: [root@dhcp-140-138 ~]# oc version -o yaml clientVersion: buildDate: "2019-12-13T10:59:49Z" compiler: gc gitCommit: 6a937dfe56ff26255d09702c69b8406040c14505 gitTreeState: clean gitVersion: v4.3.0 goVersion: go1.12.12 major: "" minor: "" platform: linux/amd64 [root@dhcp-140-138 ~]# oc adm node-logs node/ip-10-0-172-171.us-east-2.compute.internal --since "2019-12-18 05:17:00.9999" -- Logs begin at Wed 2019-12-18 01:03:06 UTC, end at Wed 2019-12-18 05:21:56 UTC. -- -- No entries -- -- Logs begin at Wed 2019-12-18 01:03:06 UTC, end at Wed 2019-12-18 05:21:56 UTC. -- Dec 18 05:17:01 ip-10-0-172-171 hyperkube[2053]: I1218 05:17:01.170997 2053 kubelet_pods.go:1328] Generating status for "packageserver-55c9c87665-ljw9h_openshift-operator-lifecycle-manager(b7c41ff7-ced4-4425-8a2f-cf11bb60ab9b)" .... [root@dhcp-140-138 ~]# oc adm node-logs node/ip-10-0-172-171.us-east-2.compute.internal --since=-2m --until=-1m -- Logs begin at Wed 2019-12-18 01:03:06 UTC, end at Wed 2019-12-18 05:20:59 UTC. -- -- No entries -- -- Logs begin at Wed 2019-12-18 01:03:06 UTC, end at Wed 2019-12-18 05:20:59 UTC. -- Dec 18 05:18:59 ip-10-0-172-171 hyperkube[2053]: I1218 05:18:59.170951 2053 kubelet_pods.go:1328] Generating status for "openshift-service-catalog-apiserver-operator-7bbb64c9bc-tttj2_openshift-service-catalog-apiserver-operator(ed10d844-4252-4986-91be-3766f5c07193)" 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-2020:0062 |