Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA-1174: upgrade status: Expand health insights with --detailed=health #1736

Merged

Conversation

petr-muller
Copy link
Member

@petr-muller petr-muller commented Apr 18, 2024

Review notes:

Please focus on the structure, not on the actual content of the expaned insights. Insights are data, we can easily improve them. Especially the content of the node-related insights can be improved (and generating single insight per node is probably overwhelming) and #1690 goes further in that direction, but this PR concerns mostly about the new --detailed=health formatting, not with existing insight content.

Some smaller changes are separated into small commits, I recommend reviewing by commit.


--details=health shows reference and description

Every insight will have two more fields:

  • description: human-oriented, potentially longer form message that should explain what is going on and should indicate a direction for fixing the problem
  • remediation URL: link to a helpful runbook or documentation location

In detailed mode the output is arranged not in a table, but as a oc describe-like tree.


populate descriptions and refs for insights

Descriptions were populated with message strings coming from respective sources: either a ClusterOperator condition or MCO annotation.

References were populated with existing runbooks for matching ClusterOperator alerts, or with links to existing MCO documentation for the given domain.


pad linebreaks in descriptions

Descriptions (with linebreaks) are no longer shown in tabular output, just in detailed tree one. Hence, we may keep them, but should pad them respectively so the blocks of text are properly indented.


ignore incomplete insights

Incomplete insights are not not actionable enough to show them to the user, so we filter them out while processing.


always tabulate 'All is well'

"All is well" is an artificial insight so that we can show something when everything goes fine. There is no point in showing details for it because all detailed fields are empty.

Every insight will have two more fields:
 - description: human-oriented, potentially longer form message that should explain what is going on and should indicate a direction for fixing the problem
 - remediation URL: link to a helpful runbook or documentation location

In detailed mode the output is arranged not in a table, but as a `oc describe`-like tree.
Descriptions were populated with `message` strings coming from respective sources: either a `ClusterOperator` condition or MCO annotation.

References were populated with existing runbooks for matching `ClusterOperator` alerts, or with links to existing MCO documentation for the given domain.
Descriptions (with linebreaks) are no longer shown in tabular output, just in detailed tree one. Hence, we may keep them, but should pad them respectively so the blocks of text are properly indented.
Incomplete insights are not not actionable enough to show them to the user, so we filter them out while processing.
"All is well" is an artificial insight so that we can show *something* when everything goes fine. There is no point in showing details for it because all detailed fields are empty.
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 18, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 18, 2024

@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.

In response to this:

--details=health shows reference and description

Every insight will have two more fields:

  • description: human-oriented, potentially longer form message that should explain what is going on and should indicate a direction for fixing the problem
  • remediation URL: link to a helpful runbook or documentation location

In detailed mode the output is arranged not in a table, but as a oc describe-like tree.


populate descriptions and refs for insights

Descriptions were populated with message strings coming from respective sources: either a ClusterOperator condition or MCO annotation.

References were populated with existing runbooks for matching ClusterOperator alerts, or with links to existing MCO documentation for the given domain.


pad linebreaks in descriptions

Descriptions (with linebreaks) are no longer shown in tabular output, just in detailed tree one. Hence, we may keep them, but should pad them respectively so the blocks of text are properly indented.


ignore incomplete insights

Incomplete insights are not not actionable enough to show them to the user, so we filter them out while processing.


always tabulate 'All is well'

"All is well" is an artificial insight so that we can show something when everything goes fine. There is no point in showing details for it because all detailed fields are empty.

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.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 18, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 18, 2024

@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.

In response to this:

Review notes: Please focus on the structure, not on the actual content of the expaned insights. Insights are data, we can easily improve them. Especially the content of the node-related insights can be improved (and generating single insight per node is probably overwhelming) and #1690 goes further in that direction, but this PR concerns mostly about the new --detailed=health formatting, not with existing insight content.


--details=health shows reference and description

Every insight will have two more fields:

  • description: human-oriented, potentially longer form message that should explain what is going on and should indicate a direction for fixing the problem
  • remediation URL: link to a helpful runbook or documentation location

In detailed mode the output is arranged not in a table, but as a oc describe-like tree.


populate descriptions and refs for insights

Descriptions were populated with message strings coming from respective sources: either a ClusterOperator condition or MCO annotation.

References were populated with existing runbooks for matching ClusterOperator alerts, or with links to existing MCO documentation for the given domain.


pad linebreaks in descriptions

Descriptions (with linebreaks) are no longer shown in tabular output, just in detailed tree one. Hence, we may keep them, but should pad them respectively so the blocks of text are properly indented.


ignore incomplete insights

Incomplete insights are not not actionable enough to show them to the user, so we filter them out while processing.


always tabulate 'All is well'

"All is well" is an artificial insight so that we can show something when everything goes fine. There is no point in showing details for it because all detailed fields are empty.

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.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 18, 2024

@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.

In response to this:

Review notes:

Please focus on the structure, not on the actual content of the expaned insights. Insights are data, we can easily improve them. Especially the content of the node-related insights can be improved (and generating single insight per node is probably overwhelming) and #1690 goes further in that direction, but this PR concerns mostly about the new --detailed=health formatting, not with existing insight content.

Some smaller changes are separated into small commits, I recommend reviewing by commit.


--details=health shows reference and description

Every insight will have two more fields:

  • description: human-oriented, potentially longer form message that should explain what is going on and should indicate a direction for fixing the problem
  • remediation URL: link to a helpful runbook or documentation location

In detailed mode the output is arranged not in a table, but as a oc describe-like tree.


populate descriptions and refs for insights

Descriptions were populated with message strings coming from respective sources: either a ClusterOperator condition or MCO annotation.

References were populated with existing runbooks for matching ClusterOperator alerts, or with links to existing MCO documentation for the given domain.


pad linebreaks in descriptions

Descriptions (with linebreaks) are no longer shown in tabular output, just in detailed tree one. Hence, we may keep them, but should pad them respectively so the blocks of text are properly indented.


ignore incomplete insights

Incomplete insights are not not actionable enough to show them to the user, so we filter them out while processing.


always tabulate 'All is well'

"All is well" is an artificial insight so that we can show something when everything goes fine. There is no point in showing details for it because all detailed fields are empty.

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.

Copy link
Member

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 18, 2024
Copy link
Contributor

openshift-ci bot commented Apr 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: petr-muller, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD b3dfe36 and 2 for PR HEAD 31b1c91 in total

@wking
Copy link
Member

wking commented Apr 19, 2024

The openshift-console downloads pods ... should be scheduled on different nodes business is orthogonal to this change.

/retest-required

Copy link
Contributor

openshift-ci bot commented Apr 19, 2024

@petr-muller: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 17c015a into openshift:master Apr 19, 2024
13 checks passed
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build openshift-enterprise-cli-container-v4.16.0-202404191609.p0.g17c015a.assembly.stream.el8 for distgit openshift-enterprise-cli.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants