-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
panic in istio-init #30393
Comments
Why are there multiple runs on a single pod? |
@howardjohn not sure why it's running second time but I suspect the moment PREROUTING pkt nd bytes counter increases it restarts the istio pod and starts the init pod. |
Init container runs until successfully, there is only one possibility, it fails during pod bootstrap, and restarted. Not sure if the initcontainer start is idempotently |
Thanks @howardjohn @hzxuzhonghu any suggestions/pointers on what to check? |
@rlenglet Could you take a look |
Yes, this typically indicates that the init container ran more than once. |
Thanks much @rlenglet @hzxuzhonghu @howardjohn for your help and responses.. After going through several old git issues I found this issue kubernetes/kubernetes#67261 similar to my case.. and yes it was because of cron job clearing the init container and triggering the restart. I am marking this issue resolved and closing it. |
I think this issue should not be closed. Even despite the fact that it was a cron job responsible for clearing the init containers, it still shows that istio-iptables is NOT idempotent. If, for whatever reason, the init containers are getting re-executed, we should make sure that they do not fail because the settings are already in effect. Even Kubernetes docs mention that init containers should be designed in such fashion:
I have observed a similar (but distinct!!) problem in an IPv6 environment. I was able to locate the problem for the IPv6 case at istio/tools/istio-iptables/pkg/cmd/run.go Line 370 in 4ce531f
ip -6 addr add ::6/128 dev lo will exit(2) during reruns. (And, of course, there may still be other problems after this one, like for example the one shown by @vinemish)
@rlenglet @hzxuzhonghu @howardjohn would you be willing to reopen this case or should I create another, specific to my IPv6 issue? Edit: IPv6 issue could be as easy as replacing |
Reopening this since I'm working on making istio-iptables idempotent |
[ ] Docs
[ ] Installation
[X ] Networking
[X] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Version (include the output of
istioctl version --remote
andkubectl version --short
andhelm version --short
if you used Helm)Environment where the bug was observed (cloud vendor, OS, etc)
IBM cloud
Also FIRST attempted run of istio-init in the pod is always good but next attempt fails while restroing the iptables. Attaching logs of the first run.
Also I have observed that whenever packet and byte counter increases init pod crashes..
If you see good run log packet and byte counters are 0. Can somebody please help me and let me know what is missing here ?
The text was updated successfully, but these errors were encountered: