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

nodelocal dns 1.15.11 cannot add iptables rules. executable file not found in $PATH #90043

Closed
LuckySB opened this issue Apr 10, 2020 · 12 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/network Categorizes an issue or PR as relevant to SIG Network.

Comments

@LuckySB
Copy link

LuckySB commented Apr 10, 2020

What happened:
daemonset nodelocaldns with image gcr.io/google-containers/k8s-dns-node-cache:1.15.11
flood error log with message

[ERROR] Error adding iptables rule {raw OUTPUT [-p udp -s 169.254.25.10 --sport 53 -j NOTRACK]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {filter OUTPUT [-p tcp -s 169.254.25.10 --sport 53 -j ACCEPT]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {filter OUTPUT [-p udp -s 169.254.25.10 --sport 53 -j ACCEPT]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {raw OUTPUT [-p tcp -d 169.254.25.10 --dport 53 -j NOTRACK]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {raw OUTPUT [-p udp -d 169.254.25.10 --dport 53 -j NOTRACK]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {raw OUTPUT [-p tcp -d 169.254.25.10 --dport 8080 -j NOTRACK]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {raw OUTPUT [-p tcp -s 169.254.25.10 --sport 8080 -j NOTRACK]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {raw PREROUTING [-p tcp -d 169.254.25.10 --dport 53 -j NOTRACK]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {raw PREROUTING [-p udp -d 169.254.25.10 --dport 53 -j NOTRACK]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {filter INPUT [-p tcp -d 169.254.25.10 --dport 53 -j ACCEPT]} - error checking rule: executable file not found in $PATH:
[ERROR] Error adding iptables rule {filter INPUT [-p udp -d 169.254.25.10 --dport 53 -j ACCEPT]} - error checking rule: executable file not found in $PATH:

What you expected to happen:
compare files in image 1.15.10 with 1.15.11 i see:
no /usr/bin/iptables-xml file in 1.15.11

How to reproduce it (as minimally and precisely as possible):

kubectl apply -f https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml

kubectl set image ds nodelocaldns node-cache=gcr.io/google-containers/k8s-dns-node-cache:1.15.11
@LuckySB LuckySB added the kind/bug Categorizes issue or PR as related to a bug. label Apr 10, 2020
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Apr 10, 2020
@LuckySB
Copy link
Author

LuckySB commented Apr 10, 2020

/sig network
/sig apps

@k8s-ci-robot k8s-ci-robot added sig/network Categorizes an issue or PR as relevant to SIG Network. sig/apps Categorizes an issue or PR as relevant to SIG Apps. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Apr 10, 2020
@athenabot
Copy link

/triage unresolved

Comment /remove-triage unresolved when the issue is assessed and confirmed.

🤖 I am a bot run by vllry. 👩‍🔬

@k8s-ci-robot k8s-ci-robot added the triage/unresolved Indicates an issue that can not or will not be resolved. label Apr 10, 2020
@LuckySB
Copy link
Author

LuckySB commented Apr 10, 2020

kubernetes/dns#367

@rikatz
Copy link
Contributor

rikatz commented Apr 16, 2020

/assign @bowei

@athenabot
Copy link

@bowei
If this issue has been triaged, please comment /remove-triage unresolved.

If you aren't able to handle this issue, consider unassigning yourself and/or adding the help-wanted label.

🤖 I am a bot run by vllry. 👩‍🔬

@bowei
Copy link
Member

bowei commented Apr 30, 2020

/assign @prameshj

@bowei
Copy link
Member

bowei commented Apr 30, 2020

/remove-triage unresolved

@k8s-ci-robot k8s-ci-robot removed the triage/unresolved Indicates an issue that can not or will not be resolved. label Apr 30, 2020
@bowei
Copy link
Member

bowei commented Apr 30, 2020

pavithra -- can you take a look?

@bowei
Copy link
Member

bowei commented Apr 30, 2020

Looks like is discussion on the linked PR in the DNS repo.

@prameshj
Copy link
Contributor

This has been fixed in 1.15.12 image.
kubernetes/dns#365

@prameshj
Copy link
Contributor

/close
Please reopen if needed.

@k8s-ci-robot
Copy link
Contributor

@prameshj: Closing this issue.

In response to this:

/close
Please reopen if needed.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/network Categorizes an issue or PR as relevant to SIG Network.
Projects
None yet
Development

No branches or pull requests

6 participants