OCPBUGS-11652: Extend adm node-logs to new API#1403
OCPBUGS-11652: Extend adm node-logs to new API#1403openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Conversation
|
Skipping CI for Draft Pull Request. |
|
@aravindhp: This pull request references Jira Issue OCPBUGS-11652, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/test unit |
|
/cc @ardaguclu |
|
/cc @soltysh |
ardaguclu
left a comment
There was a problem hiding this comment.
@aravindhp thanks for the PR. I left a few comments.
| return fmt.Errorf("--boot accepts values [-100, 0]") | ||
| } | ||
| if len(o.Query) > 0 && (len(o.Path) > 0 || len(o.Units) > 0) { | ||
| return fmt.Errorf("cannot combine --query with --unit or --path") |
There was a problem hiding this comment.
| return fmt.Errorf("cannot combine --query with --unit or --path") | |
| return fmt.Errorf("--path and --unit flags are mutually exclusive with --query") |
4a6b9bf to
c83fd1f
Compare
aravindhp
left a comment
There was a problem hiding this comment.
Thanks for the review, @ardaguclu. I have responded to your comments.
| return fmt.Errorf("--boot accepts values [-100, 0]") | ||
| } | ||
| if len(o.Query) > 0 && (len(o.Path) > 0 || len(o.Units) > 0) { | ||
| return fmt.Errorf("cannot combine --query with --unit or --path") |
c83fd1f to
1789830
Compare
| return fmt.Errorf("cannot combine --since-time with --since or --until") | ||
| } | ||
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { | ||
| return fmt.Errorf("cannot combine --since-time with --since or --until") |
There was a problem hiding this comment.
Can we also change this in the format of https://github.com/openshift/oc/pull/1403/files#diff-fe5df7f76dde8b46f44cbcfa239451ec304c914cfc3d6a17087debb317079ee0R194
| return fmt.Errorf("--path and --unit flags are mutually exclusive with --query") | ||
| } | ||
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { | ||
| return fmt.Errorf("cannot combine --since-time with --since or --until") |
There was a problem hiding this comment.
Can we also change this in the format of https://github.com/openshift/oc/pull/1403/files#diff-fe5df7f76dde8b46f44cbcfa239451ec304c914cfc3d6a17087debb317079ee0R194?
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { | ||
| return fmt.Errorf("cannot combine --since-time with --since or --until") | ||
| } | ||
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { |
There was a problem hiding this comment.
I think this should be len(o.UntilTime)?
1789830 to
a1daedc
Compare
aravindhp
left a comment
There was a problem hiding this comment.
If the user sets
query, we are settingpathto empty string. But we are generating Path by usingpathflag in hereLine 253 in a65a29a
, will it work for the new API?
Yes that will still work. Setting path to journal means the API call will be proxy/logs/journal?options=. With query it will be proxy/logs/?query=... and that works.
| return fmt.Errorf("--path and --unit flags are mutually exclusive with --query") | ||
| } | ||
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { | ||
| return fmt.Errorf("cannot combine --since-time with --since or --until") |
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { | ||
| return fmt.Errorf("cannot combine --since-time with --since or --until") | ||
| } | ||
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { |
| return fmt.Errorf("cannot combine --since-time with --since or --until") | ||
| } | ||
| if len(o.SinceTime) > 0 && (len(o.Since) > 0 || len(o.Until) > 0) { | ||
| return fmt.Errorf("cannot combine --since-time with --since or --until") |
|
Sounds good to me, thanks @aravindhp |
|
/test e2e-agnostic-ovn-cmd The failure is in |
|
/retest-required e2e-aws-ovn-serial failed in |
a1daedc to
6350165
Compare
|
/test e2e-metal-ipi-ovn-ipv6 |
|
According to the pre-merging tests, this PR is compatible with older server versions. I think, we can merge it especially considering that current /lgtm |
|
@soltysh I have addressed your comments. Please review. |
|
/retest-required Cluster failed to come up e2e-aws-ovn-upgrade |
|
@aravindhp: This pull request references Jira Issue OCPBUGS-11652, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| oc adm node-logs --role master --path=cron | ||
|
|
||
| # Display kubelet log from worker nodes using the new query sub-command | ||
| oc adm node-logs --role worker --query=kubelet |
There was a problem hiding this comment.
Now , we can't support query, please remove this example.
There was a problem hiding this comment.
Sorry about that. I have now removed it.
- Map --tail internally to tailLines - Map --unit internally to query - Use service instead of journal in the help to normalize across Linux and Windows
|
@aravindhp What are we waiting for this PR?, is it requiring a new round of review? |
|
@ardaguclu it is not waiting on anything other than the official QE ack. /hold cancel |
|
I think, we are waiting for the last review from @soltysh; |
|
@aravindhp I have one last question just for clarification; |
|
Yes the relative time options for |
|
/test e2e-metal-ipi-ovn-ipv6 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aravindhp, ardaguclu, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required |
|
@aravindhp: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@aravindhp: Jira Issue OCPBUGS-11652: Some pull requests linked via external trackers have merged: The following pull requests linked via external trackers have not merged:
These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-11652 has not been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Uh oh!
There was an error while loading. Please reload this page.