-
Notifications
You must be signed in to change notification settings - Fork 192
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
Fix network discovery issue in ovn non-ic deployments #2674
Conversation
🤖 Created branch: z_pr2674/aswinsuryan/fix-nonic |
1877ca0
to
4e1774c
Compare
65dba9d
to
cb0a47e
Compare
6e9252f
to
1640291
Compare
1640291
to
0cfa698
Compare
0cfa698
to
dcc9955
Compare
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
dcc9955
to
2ff6786
Compare
b169419
to
6ce79df
Compare
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
6ce79df
to
7d24625
Compare
|
||
_, err = k8sClientSet.CoreV1().Services(ovnPod.Namespace).Get(ctx, ovnKubeService, metav1.GetOptions{}) | ||
if err == nil { | ||
return defaultOpenshiftOVNNBDB, nil |
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.
According to code it seems that there are only two options
- non-ic ==> when both pod and service exist
- rest of the cases
Is it correct?
if the answer is yes , maybe it would be better to have a separate boolean function for detecting non-ic deployment.
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.
non-ic deployment identification is not same for kind and Openshift. So cannot have common for both.
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.
Thanks for refactoring the code @aswinsuryan
If you happen to re-spin, please address the review comments.
} | ||
|
||
ovnPod, err := FindPod(ctx, k8sClientSet, "app=ovnkube-node") |
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.
Looks like you are using ovnPod just for the namespace. Can we use the namespace of ovnDBPod? or do you think they can be deployed in different namespaces?
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.
This if for the case where we are not able to find a db pod.
The code is refactored, but I have few comments and would like to hear from Aswin.
Verified the PR manually in an OCP 4.13.10 cluster and confirm that CrashloopBackoff Error is no longer seen. |
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.
As discused on slack, please address the review comments in a follow up PR.
🤖 Closed branches: [z_pr2674/aswinsuryan/fix-nonic] |
Fix network discovery issue in ovn non-ic deployments
Fixes: #2673