-
Notifications
You must be signed in to change notification settings - Fork 385
Deleting ServiceInstance does not send a delete to the broker #1574
Comments
I get different results when I run this through the aggregator. In Step 3, the ServiceInstance is deleted, even though the response from the kubectl command is the same as you received. The Deprovision request is also sent to the broker in Step 3. I will re-test without using the aggregator to see if that makes a difference. |
Should service catalog be adding a finalizer to namespaces in which its resources are created and watching for changes to those namespaces? Without aggregation, I don't think kube-apiserver can know that the service catalog resources need to be deleted when the namespace is deleted. That would explain Bug 1. Or maybe there is a race where the service-catalog resource may be deleted after the namespace, since service catalog is not adding a finalizer to the namespace. When the namespace does not exist, then the controller does not attempt to do any reconciliation for the resource. I still don't understand how Bug 2 would happen, though. |
Successfully reproduced the issue with minikube (k8s 1.8.0) and ups-broker as per the doc https://github.com/kubernetes-incubator/service-catalog/blob/master/docs/walkthrough.md
then deleted a namespace:
and checked the
As you can see, despite the deletion of namespace, there was no OSB request for deprovisioning the instance. |
Sorry, actually, there was a deprovisioning request, just 30 seconds later...
Actually there were 2 requests (race condition?), and there is another issue with sending events after the namespace was deleted in Service Catalog log:
|
There is still definitely something wrong, as after another try I see 5 deprovisioning requests:
Looks like Service Catalog also fails to update the status
And after several retries the last message is
|
Would someone follow up with this issue? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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/test-infra repository. |
How to reproduce:
BUG 1: instance is not getting deleted after namespace is no longer there and the list operation shows that the instance is still there.
Trying to delete it directly:
BUG 2: Instance is deleted instantaneously but no REST call is made to the broker
Kubernetes and kubectl 1.8.3
Service Catalog v0.1.2
This is WITHOUT aggregation layer (kubectl talks to Service Catalog directly) but with proper RBAC setup. Does it matter?
/cc @staebler If I remember correctly you were asking about this issue on Slack.
The text was updated successfully, but these errors were encountered: