-
Notifications
You must be signed in to change notification settings - Fork 589
Adding message field into AnalysisMessage #1776
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
Conversation
|
😊 Welcome @xeviknal! This is either your first contribution to the Istio api repo, or it's been You can learn more about the Istio working groups, code of conduct, and contributing guidelines Thanks for contributing! Courtesy of your friendly welcome wagon. |
|
Hi @xeviknal. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
/ok-to-test |
|
hi @shamsher31, Do you mind assisting me fixing this differences? |
|
@xeviknal Did you run Please run |
|
thanks @shamsher31 The two commands changes parts that shouldn't. I see changes in the operator_pb2.py and also in unrelated places within the proto.lock. In the |
3221a95 to
2c9cdb7
Compare
|
@esnible can you PTAL? |
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
|
@googlebot I consent. |
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
|
@googlebot I consent |
shamsher31
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I will close the test PR #1779.
|
Is something there I can do to move this one forward? |
|
@therealmitchconnors Can you review this please? |
| "description": "A url pointing to the Istio documentation for this specific error type. Should be of the form `^http(s)?://(preliminary\\.)?istio.io/docs/reference/config/analysis/` Required.", | ||
| "type": "string", | ||
| "format": "string" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it depends on the intent of this field. The weak schema description is intended to apply to a class of errors. For example, a PodMissingProxy error is always going to have a description like "This error means that a pod is missing a proxy."
If this description is about this specific instance of an error, e.g. "The pod service-ad64f03 is missing a proxy." then it's not a duplicate. If it's going to just describe the class of error, then we should find some way to include the weak schema or a typed error (of which there's still only one it looks like).
|
Do we have any bugs in validation ? Many of the errors seem to be things
that shouldn't have passed validation.
For dynamic errors - like pod missing proxy - I don't see how a system
would work that dynamically updates
status (of how many resources ?) whenever something happens. The Status is
supposed to represent the status
of that resource - not of other resources ( like other pods or control
plane).
…On Tue, Jan 26, 2021 at 9:44 AM Clay ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In meta/v1alpha1/status.gen.json
<#1776 (comment)>:
> @@ -78,6 +78,11 @@
"description": "A url pointing to the Istio documentation for this specific error type. Should be of the form `^http(s)?://(preliminary\\.)?istio.io/docs/reference/config/analysis/` <http://istio.io/docs/reference/config/analysis/> Required.",
"type": "string",
"format": "string"
+ },
I think it depends on the intent of this field. The weak schema
description is intended to apply to a class of errors. For example, a
PodMissingProxy error is always going to have a description like "This
error means that a pod is missing a proxy."
If this description is about this specific *instance* of an error, e.g.
"The pod service-ad64f03 is missing a proxy." then it's not a duplicate. If
it's going to just describe the *class* of error, then we should find
some way to include the weak schema or a typed error (of which there's
still only one it looks like).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1776 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAUR2QKJ7F7GFE4XPQ4ELLS335ORANCNFSM4UWSK45A>
.
|
|
@costinm you are absolutely right. Validation messages about objects not belonging to Istio (such as pods, deployments, namespaces, etc) are turned off for the in-cluster analysis, but are still accessible when running istioctl analyze. |
|
@xeviknal: PR needs rebase. 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. |
|
🚧 This issue or pull request has been closed due to not having had activity from an Istio team member since 2021-01-27. If you feel this issue or pull request deserves attention, please reopen the issue. Please see this wiki page for more information. Thank you for your contributions. Created by the issue and PR lifecycle manager. |
Related to istio/istio#29445
Related to kiali/kiali#3505
When users have both the status field and the analysis enabled, the message presented is quite limited.
In previous versions, the image there was quite more closer to what we have in the
istioctl analysistool.This change aims to add the description (made out of the message template) in the status field for each message. For instance:
Instead of having this:
have this:
Note that the related issue aims to add the severity into the message. This way, the status will have similar output as the
istioctl analyzetool:This will need a subsequent PR on the istio/istio repo to fill the field.