-
Notifications
You must be signed in to change notification settings - Fork 90
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
Ping external ip to verify connectivity #202
Conversation
efec0a2
to
09cecb9
Compare
I am installing "iputils" but we may want to use golang tools like https://godoc.org/github.com/sparrc/go-ping both options are going to increase the size of Dockerfile |
@qinqon at least we can use the container for network debugging when needed :) |
09cecb9
to
262f9fc
Compare
deploy/operator.yaml
Outdated
@@ -55,6 +55,11 @@ spec: | |||
configMapKeyRef: | |||
name: nmstate-config | |||
key: interfaces_filter | |||
- name: CONNECTIVITY_CHECK_ENDPOINT |
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.
If I was a user I would have no idea what the endpoint means. Maybe connectivity_check_ip_target?
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.
But since it can be domain name, maybe just connectivity_check_target?
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.
ack, is good name too.
fc0e1cf
to
beaf1e6
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.
We should have a test for this.
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.
I am not sure this is a good solution for disconnected environment.
can we just save the environment default gateway before the change make the change and check it again?
also we can add a check that we can still query the k8s api.
@SchSeba the API ping would come later. We want to start with this since we work on single node environment, so access to API server is not that hard. However y the idea with default gateway sounds great. Less configuration variables. |
cac643a
to
e5ee2f7
Compare
@qinqon for a test you can do it. just run the Then just return the one you deleted on the |
@qinqon @SchSeba we can configure the route via nmstate ;) https://nmstate.github.io/examples.html#route |
@SchSeba my idea is to try to do it first using nmstate, if this renders impossible we can hack it at node. |
pkg/helper/client.go
Outdated
@@ -159,12 +167,26 @@ func UpdateCurrentState(client client.Client, nodeNetworkState *nmstatev1alpha1. | |||
return nil | |||
} | |||
|
|||
func ping(target string) error { |
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.
It may be interesting to log the output of the ping too. Don't you think?
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.
I want to see CI passing and then will cover this.
d728669
to
3de0ab8
Compare
3de0ab8
to
d5e6366
Compare
d5e6366
to
bcfcd4e
Compare
281c436
to
440e52a
Compare
440e52a
to
58fedf1
Compare
In case it fails it will rollback nmstate changes. Signed-off-by: Quique Llorente <[email protected]>
35bcfad
to
5a6a1fe
Compare
Remove Brad and Toni from reviewers
Signed-off-by: Quique Llorente [email protected]