Skip to content

enhancements/operators/condition-links: Propose a new enhancement - #298

Closed
wking wants to merge 2 commits into
openshift:masterfrom
wking:condition-links
Closed

wking wants to merge 2 commits into
openshift:masterfrom
wking:condition-links

Conversation

@wking

@wking wking commented Apr 30, 2020

Copy link
Copy Markdown
Member

Creating a framework so we can do a better job pointing cluster admins at context, impact, and mitigations for any surprising operator conditions.

To cover the cluster-version operator <-> second-level operator interactions.

Move the previous operator-dev-doc down into this document as a
README, and drop a symlink in the old location for backwards-compat
with existing linkers.
@openshift-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: wking
To complete the pull request process, please assign jsafrane
You can assign the PR to them by writing /assign @jsafrane in a comment when ready.

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

Details 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

@abhinavdahiya

abhinavdahiya commented Apr 30, 2020 •

Copy link
Copy Markdown
Contributor

Keeping the urls out of message into specific API fields means they are going to be consumed as an API.

If there isn't any known automation planned there is diminished returns for this.. imo

Can we explain how that helps as an alternative to just keeping the links in the message itself

Creating a framework so we can do a better job pointing cluster admins at context, impact, and mitigations for any surprising operator conditions.
@wking
wking force-pushed the condition-links branch from 1d9d549 to 2b05511 Compare April 30, 2020 23:27
@wking

wking commented Apr 30, 2020 •

Copy link
Copy Markdown
Member Author

Keeping the urls out of message into specific API fields means they are going to be consumed as an API.

What our our existing condition consumers? Some of this ends up in alerts, where the links may be useful (local cluster stuff) or not (shipping them up in Insights bundles, where we already know about the links). Then there are folks who parse ClusterVersion and ClusterOperator status directly, and they're already dealing with this as a structured API. And then there's the web console, doing what it does. I think the web-console would be the main consumer of this information.

Can we explain how that helps as an alternative to just keeping the links in the message itself

I tried to cover that in the alternatives section. I'm personally fine if we went with the "messages are Markdown" approach, although it would be some work to validate that assertion in CI (for any conditions we happened to see pass by during an e2e run?). Or we could just assume everyone got the Markdown right and patch on a case-by-case basis when folks noticed mistakes.

I'm less excited about the "links in freeform messages" alternative, because... then how does the console decide to render them? Just make live links for anything that matches some link heuristic? We'd have similar issues in CI if we decided to try and require surprising conditions to include a doc link.

Did you have other "link from the message" alternatives besides those two to consider?

## Open Questions

Are there restrictions on URI targets?
Do they all need to point at either docs.openshift.com or Knowledgebase articles?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMO yes we should have restrict it to couple of places. The URLs should be under control of Red Hat as we do not want customers to go to any unavailable URL. Also we should not have to sen a PR to fix a doc URL because Kubernetes (or any external website) has changed the location of the document. The only challenge with knowledge base articles is that customers without subscription will not be able to access it. Which is bad from OKD point of view.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So you would require links to target any RH-controlled site? Or restrict to a subset of those? Do you count GitHub repos with RH maintainers as RH-controlled?

Do you have suggestions for supporting OKD? My fuzzy impression is that Knowledgebase articles can be set public, but we could also require folks to put these in Bugzilla comments or something if I'm misremembering.

Do we require these doc links?
Some messages may be sufficient without links, in which case creating a doc-link may be busywork.
On the other hand, even relatively straightforward stuff like [`VersionNotFound`][version-not-found] could benefit from a few lines of context, which is more than we want to bake into the message string itself.
Deciding this might benefit from a survey of conditions collected in Insights.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the issue can be explained without a document URL link that would be better. So I wont suggest making the doc links compulsory.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If the issue can be explained without a document URL link that would be better.

Do you have an example of a surprising condition (Degraded=True, Upgradeable=False) that you think can be explained without a document URI? Can you paste it in here so we can kick around whether we think it is sufficient on its own? I'm personally skeptical that we have any URI-less messages that cover the reason the condition is firing, the expected impact of the condition, and suggested mitigations.

@openshift-bot

Copy link
Copy Markdown

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 9, 2020
@openshift-bot

Copy link
Copy Markdown

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 8, 2020
@openshift-bot

Copy link
Copy Markdown

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot

Copy link
Copy Markdown

@openshift-bot: Closed this PR.

Details

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

@wking wking mentioned this pull request Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants