-
Notifications
You must be signed in to change notification settings - Fork 77
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
AllowedOutgoingLinksHostnames changes not always causing link status to change #762
Comments
I have tried to reproduce the issue with a bash script, but I was not able to. You can check the code here: https://gist.github.com/hash-d/151fbc9fc7df56c76c499e88b439052f I can't tell what's special about the test where it is failing, as the workings are the same: change policy, run link status waiting for it to turn. |
Discussing the issue with the developer, he noticed that the test was giving access only to the inter-router host, and not to the edge host as well. Adding the edge host to the policy made the test pass: the link went up and down as expected, depending on the policy that was defined. However, that does not explain why, in the previous setup, the link would sometimes be up, even when the I'm still unable to reproduce that situation out of the go testing code, however. |
I have retested this as follows:
With that, the following tests failed:
These are all All of the
With that, I conclude that I could not reproduce a situation where the link would be up when it was truly expected to be down, or the other way around. Whether that's because of changes to the code fixing the original issue, I cannot tell at this point. I believe so, but I could not point to any specific commits that fixed the issue. I have checked the logs for the last test I ran before opening this ticket, and there were failures on |
How to reproduce
TBD
The error can be reliably reproduced using the
statusTestTable
test on my fork at dh-policy-testing-2/test/integration/acceptance/custom/hello_policy/hostnames_test.go.However I have not been able to create a minimum reproducer, yet.
Description
On a test in which the list of allowed hostnames will alternate between including or not the
inter-router-host
, an existing link is expected to come up when the router is included, and down when it is not.This is not happening 100% of the time, using the test mentioned above. Instead, sometimes the system will not react to a changed policy. Both possibilities occur: links not going down when the host is removed, and links not going up when it is added.
Notes
get policies outgoinglink
while the error is happening, it reflects the installed policy (ie, even if the link status did not change, the policy engine reports the correct value).The text was updated successfully, but these errors were encountered: