-
Notifications
You must be signed in to change notification settings - Fork 3.4k
test/l4lb,nat46x64: Replace Kind/Helm with DinD #22653
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
Conversation
87bc448
to
74a05da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
edcded8
to
66d2f41
Compare
cda609d
to
b7e39d5
Compare
The nat46x64 test case is failing after the rewrite :-( The following curl fails - https://github.com/cilium/cilium/pull/22653/files#diff-a971eb8f1b155111301db7bc65b14d8f369bc570b09cec47f67ff24cbd54e914R125:
The
Err=7 == The PERM neigh entry was added before:
UPDATE: the neigh entries got removed:
|
[...]
Could you dump the next hop address that fib lookup returned? Maybe its different than expected. |
4092f1d
to
3e926ee
Compare
The usage of Kind/Helm when testing the Cilium in the standalone L4LB mode started to be a source of confusion. In particular, this gave a wrong impression that in that mode Cilium still has a connectivity to the kube-apiserver. This is not true. Previously, we used Kind/Helm for these tests just to create Docker containers acting as nodes, and then to install Cilium. This can be achieved by simply using docker/dind (aka Docker-in-Docker), and then starting the L4LB Cilium by execing into the dind container and running "docker run". Signed-off-by: Martynas Pumputis <m@lambda.lt>
The same reasoning applies as in the previous commit. Signed-off-by: Martynas Pumputis <m@lambda.lt>
3e926ee
to
72b70a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I like this change, clarifies the purpose of the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left two questions, but more for my curiosity
PORT=$(echo ${HOSTPORT} | cut -d: -f2) | ||
|
||
# Wait until Docker is ready in the lb-node node | ||
while ! docker exec -t lb-node docker ps >/dev/null; do sleep 1; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test have external timeout? If not, you can do something like
TIMEOUT=60 # 1 minute or so
for dummy in $(seq $TIMEOUT); do
docker exec -t lb-node docker ps >/dev/null && break
done
if [ "$dummy" = "$TIMEOUT" ]; then
blah-blah-blah
exit 1
fi
kind delete cluster | ||
docker rm -f lb-node | ||
docker rm -f nginx | ||
docker network rm cilium-l4lb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May this test break any consequent test if we don't clean the docker setup? If yes, then we better do a trap EXIT
to cleanup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
The DinD for the tests was introduced in [1]. However, it never made into the v1.12 branch which made the GHA always to fail. Fix this by taking the test.sh files from the main branch. [1]: #22653 Signed-off-by: Martynas Pumputis <m@lambda.lt>
The DinD for the tests was introduced in [1]. However, it never made into the v1.12 branch which made the GHA always to fail. Fix this by taking the test.sh files from the main branch. [1]: #22653 Signed-off-by: Martynas Pumputis <m@lambda.lt>
The DinD for the tests was introduced in [1]. However, it never made into the v1.11 branch which made the GHA always to fail. Fix this by taking the test.sh files from the main branch. [1]: #22653 Signed-off-by: Martynas Pumputis <m@lambda.lt>
The DinD for the tests was introduced in [1]. However, it never made into the v1.12 branch which made the GHA always to fail. Fix this by taking the test.sh files from the main branch. [1]: #22653 Signed-off-by: Martynas Pumputis <m@lambda.lt>
The DinD for the tests was introduced in [1]. However, it never made into the v1.11 branch which made the GHA always to fail. Fix this by taking the test.sh files from the main branch. [1]: #22653 Signed-off-by: Martynas Pumputis <m@lambda.lt>
See commit msgs.
Successful run - https://github.com/cilium/cilium/actions/runs/3685163577/jobs/6235811777.