router: fix routing table for marked packets - #2579
Conversation
This fixes routing table rule setup regression to correctly router marked packets based on interface related ip route tables. This thereby fixes the access of VMs in the same VPC using NAT/SNAT public IPs. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
d61eed0 to
a20d05a
Compare
|
@rafaelweingartner based on @ustcweizhou 's comment, I've updated and tested the code to add routing rules for fwmarked (MARK-ed) packets. This will fix routing issues that you observed in your env. For additional commentary, see #2514 (comment) |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1945 |
|
@blueorangutan test matrix |
|
@rhtyd a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
rafaelweingartner
left a comment
There was a problem hiding this comment.
@rhtyd I tested this PR again, and now everything (SNAT and normal NAT) are working!
Good job!
|
Great, thanks for the review and testing @rafaelweingartner |
|
nice, code looks good to me! |
|
Trillian test result (tid-2524)
|
|
Trillian test result (tid-2525)
|
|
code lgtm, just wondering about the test_04_restart_network_wo_cleanup failures above. looking into the vmware one now |
|
Trillian test result (tid-2523)
|
|
the failure on test_04_restart_network_wo_cleanup is genuine 14 mins uptime instead of <3 mins. I am not sure that logic is valid though. I can not find a timestamp for the start of the test and that would be the real test (had it been restarted since) |
|
@DaanHoogland I checked I'll go ahead and merge this based on your reviews from Daan, Wei and Rafael and try to address test failures in a separate PR. In future, reviewers are requested to use Github's review feature that makes it easy to count/reference in a long pr. |
Correção na configuração de CD/DVD _drives_ existentes Closes apache#2579 See merge request scclouds/scclouds!1130
This fixes python code that applies NAT/address rules. This fixes routing rules based on ip addresses received to ensure that marked packets will have a routing rule. Thereby, this fixes the issue of
public IP NAT access from other VMs in the VPC.
Types of changes
GitHub Issue/PRs
Screenshots (if appropriate):
How Has This Been Tested?
Checklist:
Testing
@blueorangutan package