-
Notifications
You must be signed in to change notification settings - Fork 91
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
Unable to delete project/namespace due to waiting for SBO's finalizers #476
Comments
I believe this is related to #384 as well |
I've hit this too with my project. The status of the SBR is potentially interesting:
|
This happens, from where I can see, due to the operator being shut before it receives the resource deletion event required to remove the finalizer and unblock the garbage collector. I wonder if enabling the |
cc @sbose78 I've just tried again with SBO |
@isutton I even tried with the
but the workaround didn't work... the project is still in |
I also see that the random suffix appended to the test-namespace is not changing for me even when I change my clusters from 4.4 to 4.5. |
@Avni-Sharma the name (the suffix) of the namespace is generated and stored in the |
Hi @pmacik If we add an ownerReference of the specific project in the sbr, something like
Then IMO this issue won't happen as the finalisers of the SBO will be deleted. |
@Avni-Sharma I've set the
|
That is strange as it works if the owner is a deployment 🤔 Maybe I am missing something with regard to the Namespace. Opened an issue operator-framework/operator-sdk#3625 for more input related to finalisers |
I hope that we are not bitten by kubernetes/kubernetes#73098 |
Fixed in #639 |
@matthewpwilson our observation was that the issue happens when running the operator outside of the cluster and terminating it before removing SBRs in the namespace. This is typical for dev and testing workflows, and #639 fixed those. Are you able to reproduce the issue on a production setup, when operator runs inside cluster? Please share your steps. |
After successfully executing the
nodejs_postgresql
scenario I attempted to delete the example'sservice-binding-demo
project by executing theoc delete project service-binding-demo
command.I expected the project to be deleted after 10s of seconds (while it is supposed to delete the dependent resources (such as
ImageStream
,BuildConfig
,Deployment
,Database
,ServiceBindingRequest
,...) created during the example. But after ~10 minutes the project is still in theTerminating
phase.While inspecting the project I found it waiting for SBO's finalizers:
Some content in the namespace has finalizers remaining: finalizer.servicebindingrequest.openshift.io in 1 resource instances
The text was updated successfully, but these errors were encountered: