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

egress router & local network #12248

Closed
fgiloux opened this issue Dec 13, 2016 · 1 comment
Closed

egress router & local network #12248

fgiloux opened this issue Dec 13, 2016 · 1 comment
Assignees
Labels
component/networking kind/bug Categorizes issue or PR as related to a bug. priority/P2

Comments

@fgiloux
Copy link
Contributor

fgiloux commented Dec 13, 2016

The egress router does not work when the gateway and the destination IPs are the same and more generally when the destination IP is directly accessible from the node.
The following command in the egress-router.sh script fails:
# ip route add ${EGRESS_DESTINATION}/32 via ${EGRESS_GATEWAY} dev macvlan0
RTNETLINK answers: File exists
which would be ok as it is not needed but the script starts with "set -ex" which prevents the following commands to be executed and the nat table does not get populated.
I am preparing a pull request for it, just adding a test before the command should make it but I first need to setup a dev env for executing the test suite.

Version

I tested with:
openshift v3.3.0.34
kubernetes v1.3.0+52492b4

Steps To Reproduce
  1. Create the pod with the same values for EGRESS_DESTINATION an EGRESS_GATEWAY
  2. From another pod try to access a backend service at EGRESS_DESTINATION using the IP address of the router pod => fail
  3. Log into the container of the egress router: # oc rsh egress-1 and check that the nat table has not been populated: # iptables -L -n -t nat => empty

Regards,

Frédéric

@danwinship
Copy link
Contributor

fixed long ago by #12460

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/networking kind/bug Categorizes issue or PR as related to a bug. priority/P2
Projects
None yet
Development

No branches or pull requests

4 participants