Repository navigation
Send arping to the gateway instead of our own address - #1163
Merged
Merged
Conversation
We need to send an Unsolicited ARP to the gateway, instead of our own address. We now encounter problems when people deploy/destroy/deploy and get the same public ip.
Contributor
|
Makes sense @remibergsma Is that test an example of the failure before the fix? |
Contributor
Author
|
@DaanHoogland Yes, that one fails quite regularly and I think that is related. Although without this fix it also passes, just not always (can be explained by ip address reuse and timings) but we'll have to see. |
Contributor
Author
|
Full integration tests pass: Result: And: Result: |
Contributor
|
please merge |
Contributor
Author
|
@DaanHoogland I will count that as a LGTM and will ask @wilderrodrigues to also review. |
Contributor
|
Hi there... Also got my LGTM! So it's now 2. :) Cheers, |
|
Aloha, Nice find Remi, thanks for fixing this! LGTM. Cheers, Funs |
asfgit
pushed a commit
that referenced
this pull request
Dec 4, 2015
Send arping to the gateway instead of our own addressWe need to send an Unsolicited ARP to the gateway, instead of our own address. We now encounter problems when people deploy/destroy/deploy and get the same public ip. Packets arrive, but with incorrect / cached mac and are ignored by the routervm kernel. Run arping manually to update the arp-cache on the gateway and things start to work. Then we discovered the `arping` is actually done, but sent to its own address. Therefore the gateway doesn't pick it up. We only saw this happening when rapid deploy tools are used, like Terraform that do deploy/destroy/deploy and might get the same ip but on a new router having a new mac. ``` 2015-12-03 18:07:25,589 CsHelper.py execute:160 Executing: arping -c 1 -I eth1 -A -U -s 192.168.23.8 192.168.23.1 ``` The integration tests seem happy, although the full run is still ongoing: ``` === TestName: test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL | Status : SUCCESS === ``` Thanks @sspans for helping trouble shoot this. Ping @wilderrodrigues can you review please? * pr/1163: CLOUDSTACK-9097 Make public ip work immediately Signed-off-by: Remi Bergsma <github@remi.nl>
Contributor
|
Thanks guys, will reduce the number of false positives by some |
Member
|
Nice :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We need to send an Unsolicited ARP to the gateway, instead of our own address. We now encounter problems when people deploy/destroy/deploy and get the same public ip.
Packets arrive, but with incorrect / cached mac and are ignored by the routervm kernel.
Run arping manually to update the arp-cache on the gateway and things start to work.
Then we discovered the
arpingis actually done, but sent to its own address. Therefore the gateway doesn't pick it up. We only saw this happening when rapid deploy tools are used, like Terraform that do deploy/destroy/deploy and might get the same ip but on a new router having a new mac.The integration tests seem happy, although the full run is still ongoing:
Thanks @sspans for helping trouble shoot this. Ping @wilderrodrigues can you review please?