-
Notifications
You must be signed in to change notification settings - Fork 32
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
[ovn-controller] Don't create ovn-controller ds if no NicMappings set #337
base: main
Are you sure you want to change the base?
[ovn-controller] Don't create ovn-controller ds if no NicMappings set #337
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: averdagu The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
654c295
to
146cb76
Compare
356465e
to
2c35719
Compare
76a3b67
to
ef131e8
Compare
3373548
to
9005e1e
Compare
Needed-by: openstack-k8s-operators/ovn-operator#337 Related: OSPRH-7463
Needed-by: openstack-k8s-operators/ovn-operator#337 Related: OSPRH-7463
2d7852f
to
35d94bb
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/061a329e176641b2a3bf3c6810ac62c7 ❌ openstack-k8s-operators-content-provider FAILURE in 7m 28s |
35d94bb
to
484eb3b
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/2b201907b5cd47c18fdf17e5cdea1193 ❌ openstack-k8s-operators-content-provider FAILURE in 7m 48s |
1e47d79
to
2e8d704
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/167f03c966a74b1298eedf75972dacee ✔️ openstack-k8s-operators-content-provider SUCCESS in 49m 39s |
a83afe9
to
3ddb099
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.
Wondering if we really need all these cleanup logic considering the user interface is on openstackcontrolplane CR and we could just handle it there[1] as when we don't have nicMappings configured we don't need even OvnController CR and that should take care of cleaning up all child resources(daemonsets/cms etc).
https://github.com/openstack-k8s-operators/openstack-operator/blob/main/pkg/openstack/ovn.go#L310
/test ovn-operator-build-deploy-kuttl |
0b0d702
to
8fbbe89
Compare
/retest |
Resolves: OSPRH-7463
8fbbe89
to
a9ead03
Compare
@averdagu: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
But
? And that would do all the cleanup for us? |
return dset, nil | ||
} | ||
|
||
func (r *OVNControllerReconciler) ensureCMDeleted( |
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.
nitty nit: just for readability IMHO this could be named "ensureConfigMapDeleted" :)
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 we end up ensuring the deletion on the ovn-controller I'll modify this func name.
return nil | ||
} | ||
|
||
func ensureDSDeleted( |
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.
similar nit here too
@slawqo yes that what i mean |
Needed-by: openstack-k8s-operators/ovn-operator#337 Related: OSPRH-7463 (cherry picked from commit 321e10b)
Sounds like a good idea for me and would make this patch much smaller probably :) |
Needed-by: openstack-k8s-operators/ovn-operator#337 Related: OSPRH-7463 (cherry picked from commit 321e10b)
Switched it to draft since I believe you will instead try to merge this in openstack-operator: openstack-k8s-operators/openstack-operator#1070 |
Currently there's no way to disable ovn-controller/ovn-controller-ovs on oc nodes (workarround is to set nodeSelector).
Since if there's no nicMappings set there's no use for ovn-controllers pods on oc nodes, this commit will set this behavior.
Resolves: OSPRH-7463
Things to do: