Skip to content

Conversation

@ldx
Copy link
Contributor

@ldx ldx commented Apr 2, 2020

The behavior of iproute2 changed in 5.0 as described in #750: now if a
table has not been created, ip route list table <table> will produce a
non-zero exit code.

It's not really needed to check tables via list anyway, since they
will be created by iproute2 when needed on first use. So relax error
handling for ip route list table, and remove it completely when a
table might be missing.

This fixes #750

The behavior of iproute2 changed in 5.0 as described in cloudnativelabs#750: now if a
table has not been created, `ip route list table <table>` will produce a
non-zero exit code.

It's not really needed to check tables via `list` anyway, since they
will be created by iproute2 when needed on first use. So relax error
handling for `ip route list table`, and remove it completely when a
table might be missing.

This fixes cloudnativelabs#750
@ldx
Copy link
Contributor Author

ldx commented Apr 14, 2020

Ping @murali-reddy @roffe - not sure how the review process works here, but I see you guys have been working on this part of the code. Care to give this a once over?

@murali-reddy
Copy link
Member

@ldx Thanks for your PR. Apologies for the delay in the review. Will review the PR

@murali-reddy
Copy link
Member

LGTM

@murali-reddy murali-reddy merged commit ffad338 into cloudnativelabs:master Apr 23, 2020
@ldx ldx deleted the handle-missing-iproute-table branch May 2, 2020 01:14
FabienZouaoui pushed a commit to SirDataFR/kube-router that referenced this pull request May 11, 2020
The behavior of iproute2 changed in 5.0 as described in cloudnativelabs#750: now if a
table has not been created, `ip route list table <table>` will produce a
non-zero exit code.

It's not really needed to check tables via `list` anyway, since they
will be created by iproute2 when needed on first use. So relax error
handling for `ip route list table`, and remove it completely when a
table might be missing.

This fixes cloudnativelabs#750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kube-router fails to setup policy routing for DSR

2 participants