Skip to content
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

Service binding could not be deleted #493

Open
dileep-rk opened this issue Dec 16, 2024 · 10 comments
Open

Service binding could not be deleted #493

dileep-rk opened this issue Dec 16, 2024 · 10 comments

Comments

@dileep-rk
Copy link

Hello,

While trying to delete a namespace with all its resources, the namespace deletion is stuck in terminating state, due to one of the service bindings is not getting deleted. I checked the respective binding, only the secret is deleted but not the binding.

Now the respective service instance and other dependent service instances are also not getting deleted.

We are not able to create binding-secret also as it is complaining that secrets "dsi-test-app-acfun001-imagepullsecret" is forbidden: unable to create new content in namespace s-test-app because it is being terminated

We need help in clearing all resources within this namespace and also deleting this namespace.
Any help here would be greatly appreciated!

Thanks,
Dileep

@kerenlahav
Copy link
Contributor

Hi @dileep-rk
What is the status of the binding that is stuck in deletion? does it have any error?
Thanks

@dileep-rk
Copy link
Author

Hi @kerenlahav,
It is having a 401 unauthorized error and it is in delete failed status.
I think since the secret is not present, it is not able to present credentials while trying to delete the bindings.
Thanks,
Dileep

@kerenlahav
Copy link
Contributor

can you create the required secret in the management namespace?
https://github.com/SAP/sap-btp-service-operator?tab=readme-ov-file#working-with-multiple-subaccounts

@dileep-rk
Copy link
Author

Hi @kerenlahav,
Do we need to create a dedicated namespace management_namespace and then create secret within this new namespace?
But, how can we link this secret to the failed service binding in the our terminating namespace s-test-app?
Thanks,
Dileep

@kerenlahav
Copy link
Contributor

please attach the binding's yaml from the cluster

@dileep-rk
Copy link
Author

Sure, please find the bindings yaml
failed-binding.yml.txt

@kerenlahav
Copy link
Contributor

seems like you are using the default secret, the defualt managment namespace is "sap-btp-operator", try to create the secret with the relevant credentials in the management namespace and name it "sap-btp-service-operator"
restart the operator and see if the binding is deleted.

@dileep-rk
Copy link
Author

Ok, do I need to restart the operator sap-btp-operator-controller-manager which is there in the kyma-system namespace?

@kerenlahav
Copy link
Contributor

i didnt know it is kyma environment, i'm not sure what is the management namespace in that case, you can check it in the configmap named "sap-btp-operator-config".
after secret is created you should restart the btp operator pod

@kerenlahav
Copy link
Contributor

any comments or issue can be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants