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

Fix warnings generated from istioctl analyze #43589

Closed
linsun opened this issue Feb 24, 2023 · 17 comments
Closed

Fix warnings generated from istioctl analyze #43589

linsun opened this issue Feb 24, 2023 · 17 comments
Labels
area/ambient Issues related to ambient mesh

Comments

@linsun
Copy link
Member

linsun commented Feb 24, 2023

Bug Description

istioctl analyze
Warning [IST0108] (Deployment default/bookinfo-productpage-istio-waypoint) Unknown annotation: istio.io/for-service-account
Warning [IST0108] (Pod default/bookinfo-productpage-istio-waypoint-66f9db6966-ghzhz) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/bookinfo-productpage-istio-waypoint-66f9db6966-ghzhz) Unknown annotation: istio.io/for-service-account
Warning [IST0108] (Pod default/details-v1-7d4d9d5fcb-s2ljz) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/notsleep-bb6696574-jsb9g) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/productpage-v1-7b4dbf9c75-9tv67) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/ratings-v1-85cc46b6d4-ws8hv) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/reviews-v1-777df99c6d-wxw2s) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/reviews-v2-cdd8fb88b-x5gq8) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/reviews-v3-58b6479b-h76r4) Unknown annotation: ambient.istio.io/redirection
Warning [IST0108] (Pod default/sleep-5644bdc767-zv4l9) Unknown annotation: ambient.istio.io/redirection

Might be good to update this message too that we ask user either label for sidecar or ambient.

Info [IST0102] (Namespace default) The namespace is not enabled for Istio injection. Run 'kubectl label namespace default istio-injection=enabled' to enable it, or 'kubectl label namespace default istio-injection=disabled' to explicitly mark it as not needing injection.

Version

1.18-dev

Additional Information

No response

@istio-policy-bot istio-policy-bot added the area/ambient Issues related to ambient mesh label Feb 24, 2023
@linsun
Copy link
Member Author

linsun commented Feb 24, 2023

cc @GregHanson if you have bandwidth

@GregHanson
Copy link
Member

will do - was wondering if there were any analyze additional messages we should generate for ambient

@GregHanson GregHanson self-assigned this Feb 24, 2023
@hanxiaop
Copy link
Member

The annotations depend on those listed in https://github.com/istio/api/blob/master/annotation/annotations.yaml. I believe they will become recognizable once we include them in the YAML.

@GregHanson
Copy link
Member

collecting a list of all items here #43437

@GregHanson
Copy link
Member

@howardjohn based on #43614, it seems like istio/api#2695 is premature - should I limit the new labels I'm adding in the istio/api PR to just the offending ones from analyze? Or should find a way to keep the changes to istioctl code until ambient naming/api concerns are addressed?

@hanxiaop
Copy link
Member

should I limit the new labels I'm adding in the istio/api PR to just the offending ones from analyze

I think we should filter out those that were not added by users. Currently, the result is full of 'Unknown annotation' messages.

@istio-policy-bot istio-policy-bot added the lifecycle/automatically-closed Indicates a PR or issue that has been closed automatically. label Aug 4, 2023
@GregHanson
Copy link
Member

not stale

@GregHanson GregHanson reopened this Aug 4, 2023
@istio-policy-bot istio-policy-bot added the lifecycle/stale Indicates a PR or issue hasn't been manipulated by an Istio team member for a while label Nov 3, 2023
@hanxiaop
Copy link
Member

hanxiaop commented Nov 3, 2023

not stale

@istio-policy-bot istio-policy-bot removed the lifecycle/stale Indicates a PR or issue hasn't been manipulated by an Istio team member for a while label Nov 3, 2023
@aruntomar
Copy link

aruntomar commented Dec 3, 2023

I'm getting the same warning after installing the bookinfo app

$ istioctl analyze
Warning [IST0108] (Pod bookinfo/details-v1-698d88b-bpmjl) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/productpage-v1-675fc69cf-ddh2z) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/ratings-v1-6484c4d9bb-m4nv8) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v1-5b5d6494f4-5nvxr) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v2-5b667bcbf8-5m5hm) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v3-5b9bd44f4-xnk7g) Unknown annotation: istio.io/rev

@hanxiaop
Copy link
Member

hanxiaop commented Dec 4, 2023

I'm getting the same warning after installing the bookinfo app

$ istioctl analyze
Warning [IST0108] (Pod bookinfo/details-v1-698d88b-bpmjl) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/productpage-v1-675fc69cf-ddh2z) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/ratings-v1-6484c4d9bb-m4nv8) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v1-5b5d6494f4-5nvxr) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v2-5b667bcbf8-5m5hm) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v3-5b9bd44f4-xnk7g) Unknown annotation: istio.io/rev

This is not a related problem. istio.io/rev should be a known annotation. Which version of istioctl are you using?

@aruntomar
Copy link

aruntomar commented Dec 4, 2023

I'm getting the same warning after installing the bookinfo app

$ istioctl analyze
Warning [IST0108] (Pod bookinfo/details-v1-698d88b-bpmjl) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/productpage-v1-675fc69cf-ddh2z) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/ratings-v1-6484c4d9bb-m4nv8) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v1-5b5d6494f4-5nvxr) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v2-5b667bcbf8-5m5hm) Unknown annotation: istio.io/rev
Warning [IST0108] (Pod bookinfo/reviews-v3-5b9bd44f4-xnk7g) Unknown annotation: istio.io/rev

This is not a related problem. istio.io/rev should be a known annotation. Which version of istioctl are you using?

I'm on the following version

$ istioctl version
client version: 1.16.1
control plane version: 1.20.0
data plane version: 1.20.0 (7 proxies)

@hanxiaop
Copy link
Member

hanxiaop commented Dec 4, 2023

client version: 1.16.1

Can you upgrade the istioctl version to 1.20.0 to see if there are still warnings?

@aruntomar
Copy link

Upgrading istioctl version solved the warning.

$ istioctl version
client version: 1.20.0
control plane version: 1.20.0
data plane version: 1.20.0 (7 proxies)
$ istioctl analyze

✔ No validation issues found when analyzing namespace: bookinfo.

Previously, I had installed istio from my linux package manager. Normally it's frequently updated and has the latest versions. But in this specific case, it was 1.16, but the latest was 1.20. And i guess, that was somehow throwing that warning. Thank you for the help.

@hanxiaop
Copy link
Member

hanxiaop commented Dec 5, 2023

Upgrading istioctl version solved the warning.

$ istioctl version
client version: 1.20.0
control plane version: 1.20.0
data plane version: 1.20.0 (7 proxies)
$ istioctl analyze

✔ No validation issues found when analyzing namespace: bookinfo.

Previously, I had installed istio from my linux package manager. Normally it's frequently updated and has the latest versions. But in this specific case, it was 1.16, but the latest was 1.20. And i guess, that was somehow throwing that warning. Thank you for the help.

Yeah we have fixed several analysis issues in different versions, so it's always good to use the latest istioctl versions.

@linsun linsun removed the lifecycle/automatically-closed Indicates a PR or issue that has been closed automatically. label Jan 24, 2024
@linsun
Copy link
Member Author

linsun commented Jan 24, 2024

@hanxiaop are the issues reported here all fixed? Let me know - i can try latest code base

@aruntomar
Copy link

aruntomar commented Jan 24, 2024

yes. I think, this issue can be closed.

@hanxiaop
Copy link
Member

@hanxiaop are the issues reported here all fixed? Let me know - i can try latest code base

This has been fixed, I'll close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ambient Issues related to ambient mesh
Projects
None yet
Development

No branches or pull requests

5 participants