OTA-1174: upgrade status: add --detailed=nodes that shows all nodes - #1735
Conversation
Deviate from the mockup and make `--detailed` accept an enum value instead of being a boolean. This allows expanding different sections which can be useful in different scenarios. For now, allow the following values: - `none`: non-detailed output, default - `nodes`: nodes sections are not capped to 10 nodes - `health`: health insights provide further details (not implemented yet) - `all`: all sections capable to emit detailed output do so
upgrade status: add --detailed=nodes that shows all nodesupgrade status: add --detailed=nodes that shows all nodes
|
@petr-muller: This pull request references OTA-1174 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
| build0-gstfj-w-b-infra-n9kc5.c.openshift-ci-build-farm.internal Completed Updated 4.16.0-ec.3 - | ||
| build0-gstfj-w-b-mwf8t.c.openshift-ci-build-farm.internal Completed Updated 4.16.0-ec.3 - | ||
| build0-gstfj-w-c-nsmn5.c.openshift-ci-build-farm.internal Completed Updated 4.16.0-ec.3 - | ||
| build0-gstfj-w-c-qjbdl.c.openshift-ci-build-farm.internal Completed Updated 4.16.0-ec.3 - |
There was a problem hiding this comment.
This is the only output that differs from its non-detailed variant (for now)
There was a problem hiding this comment.
This is good. When we have a detailed output how do we tell the user where to focus or what is the main toot cause of these issues. Because I am familier with OCP I can guess that the issue is
Reason: ClusterOperatorDegraded
Message: Cluster operator machine-config is degraded
But will that be obvious to the user as well?
There was a problem hiding this comment.
Hopefully the remaining bits from #1690 (--details=health or --details=all) will help with that, expanding the = Update Health = section items with "description", "reference" and "resources" fields. That PR grew too much so I'm breaking it down to smaller, easier ones. This PR just brings the change to implement turning off the omission:
Omitted additional 49 Total, 22 Completed, 46 Available, 3 Progressing, 27 Outdated, 3 Draining, 0 Excluded, and 0 Degraded nodes.
Pass along --details=nodes to see all information.
I'm convinced that "I want to see all nodes" and "I want to see details about health insights" are separate use cases so I split them this way.
|
/retest |
Looks unrelated |
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: LalatenduMohanty, petr-muller 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 |
|
@petr-muller: The following test failed, say
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. |
|
[ART PR BUILD NOTIFIER] This PR has been included in build openshift-enterprise-cli-container-v4.16.0-202404190512.p0.gb3dfe36.assembly.stream.el8 for distgit openshift-enterprise-cli. |
Deviate from the mockup and make
--detailedaccept an enum value instead of being a boolean. This allows expanding different sections which can be useful in different scenarios.For now, allow the following values:
none: non-detailed output, defaultnodes: nodes sections are not capped to 10 nodeshealth: health insights provide further details (not implemented yet)all: all sections capable to emit detailed output do soAlso, test
--detailed=allin the examples test.