-
Notifications
You must be signed in to change notification settings - Fork 374
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
Add antctl check installation
command to conduct connectivity checks (#6133)
#6133
Add antctl check installation
command to conduct connectivity checks (#6133)
#6133
Conversation
Signed-off-by: Kanha gupta <[email protected]> Enable Post installation Connectivity tests Signed-off-by: Kanha gupta <[email protected]> Enable Post installation Connectivity tests Signed-off-by: Kanha gupta <[email protected]> Enable Post installation Connectivity tests Signed-off-by: Kanha gupta <[email protected]> Enable Post installation Connectivity tests Signed-off-by: Kanha gupta <[email protected]> Enable Post installation Connectivity tests Signed-off-by: Kanha gupta <[email protected]> Pod to pod working, same and different nodes and Internet connectivity
…ests Signed-off-by: Kanha gupta <[email protected]>
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.
some initial comments
Signed-off-by: Kanha gupta <[email protected]> Initial review changes Signed-off-by: Kanha gupta <[email protected]>
Hi @antoninbas Thank you for the review. I have made changes and it is visible in the new commit I've made. |
Signed-off-by: Kanha gupta <[email protected]>
@antoninbas Thanks for the review, I have made all the changes and The examples of randomly generated namespace output is "antrea-test-gst75", "antrea-test-i9ubk" etc. |
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.
Having think about it some more, I think the command could look like this: antctl check installation
. When you address #6153, you should use the same command group (antctl check
), and maybe that command should be antctl check pre-installation
or antctl check cluster
.
ffdae6c
to
9a103cc
Compare
Hi mentors, Thanks for the review and I've made changes and It is visible in the new commit I've made. |
Signed-off-by: Kanha gupta <[email protected]>
9a103cc
to
75aff65
Compare
Signed-off-by: Kanha gupta <[email protected]>
Hey mentors, I have did all the changes. |
Hey mentors, I have made the changes in latest commit. Please review :) |
eb04d42
to
ef850b9
Compare
Signed-off-by: Kanha gupta <[email protected]>
ef850b9
to
f9bae30
Compare
Signed-off-by: Kanha gupta <[email protected]>
Hey mentors, changes have been pushed in the latest commit :) |
Signed-off-by: Kanha gupta <[email protected]>
be96ade
to
130283a
Compare
Hey mentors, Changes have been pushed in the commit :) |
Hey mentors, changes have been pushed :) |
Signed-off-by: Kanha gupta <[email protected]>
6e8bf14
to
78dab63
Compare
Hey mentors, changes have been pushed. |
Signed-off-by: Kanha gupta <[email protected]>
Hey mentors, Changes are pushed :) |
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, @tnqn @luolanzone do you want to take another look?
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
Tested in a cluster which I was reproducing service issue, connecting to google.com failed as expected, but it should be related to DNS, maybe we could differentiate Connection timeout and DNS resolution timeout later.
[kind-kind] Test starting....
[kind-kind] Creating Namespace antrea-test-729be for post installation tests...
[kind-kind] Deploying echo-same-node Service echo-same-node...
[kind-kind] Deploying client Deployment test-client...
[kind-kind] Deploying echo-other-node Service echo-other-node...
[kind-kind] Waiting for Deployment test-client to become ready...
[kind-kind] Deployment test-client is ready.
[kind-kind] Waiting for Deployment echo-same-node to become ready...
[kind-kind] Deployment echo-same-node is ready.
[kind-kind] Waiting for Deployment echo-other-node to become ready...
[kind-kind] Deployment echo-other-node is ready.
[kind-kind] Deployment is validated successfully
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Running test: pod-to-pod-internode-connectivity
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Validating from Pod antrea-test-729be/test-client-5448f7d5f6-dplnl to Pod antrea-test-729be/echo-other-node-64c4f7664-csrw8 at IP 10.244.2.4...
[kind-kind] client Pod test-client-5448f7d5f6-dplnl was able to communicate with echo Pod echo-other-node-64c4f7664-csrw8 (10.244.2.4)
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Test pod-to-pod-internode-connectivity passed
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Running test: pod-to-pod-intranode-connectivity
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Validating from Pod antrea-test-729be/test-client-5448f7d5f6-dplnl to Pod antrea-test-729be/echo-same-node-67dfc97d4b-wdqwh at IP 10.244.1.3...
[kind-kind] client Pod test-client-5448f7d5f6-dplnl was able to communicate with echo Pod echo-same-node-67dfc97d4b-wdqwh (10.244.1.3)
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Test pod-to-pod-intranode-connectivity passed
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Running test: pod-to-internet-connectivity
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Validating connectivity from Pod antrea-test-729be/test-client-5448f7d5f6-dplnl to the world (google.com)...
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Test pod-to-internet-connectivity failed: Pod antrea-test-729be/test-client-5448f7d5f6-dplnl was not able to connect to google.com: error in stream: command terminated with exit code 1
[kind-kind] -------------------------------------------------------------------------------------------
[kind-kind] Test finished
[kind-kind] Deleting post installation tests setup...
[kind-kind] Waiting for Namespace antrea-test-729be to disappear
[kind-kind] Setup deletion successful
/skip-all |
antctl test
command to conduct post installation connectivity testsantctl check installation
command to conduct connectivity checks (#6133)
Thanks for your contribution to Antrea @kanha-gupta ! |
Thanks to all of you for the guidance :) |
Ref #6061
This PR introduces new tests for Antrea (Post installation connectivity tests) using
antctl test
command. Following are the functionalities :Github workflow is also updated accordingly