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
Recursive deletion of space containing async provided service instance fails #613
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/120941969 The labels on this github issue will be updated when the story is started. |
Are there any plans to fix the current behaviour? If yes, when can we expect a fix or solution? |
@friday11 can you let us know how you attempted to delete the space? did you use the CLI or did you use the API directly? if API directly, can you give us the endpoint and any parameters you may have passes? |
@SocalNick I've used the CLI. Here is the corresponding CLI trace output: REQUEST: [2016-09-21T10:14:39+02:00] RESPONSE: [2016-09-21T10:14:41+02:00] { REQUEST: [2016-09-21T10:14:41+02:00] RESPONSE: [2016-09-21T10:14:42+02:00] { REQUEST: [2016-09-21T10:14:47+02:00] RESPONSE: [2016-09-21T10:14:47+02:00] {
FAILED
Z:> |
Thanks, we'll take a look. |
@SocalNick: Do you have any news regarding this issue? |
Hi @friday11 - engineering has taken a look, we are trying to determine the correct behavior for this situation. The current idea is we should fail fast in this situation. We dedicate half of every day to community issues, we'll try to resume this work shortly. Please feel free to follow the conversation here: https://www.pivotaltracker.com/story/show/120941969 |
Hi @SocalNick , thank you for your reply. Our preferred solution would have been that the Cloud Controller waits until the async provided service instance has been successfully deleted and then deletes the space. What are your arguments to not support this behaviour? Thanks again for your feedback |
Hi @friday11 The Service Broker API documents a Maximum Polling Duration that defaults to 1-week. Therefore, we can't assume the asynchronous deletion will complete in a time period that would allow us to wait. Asynchronous services should be cleaned up before attempting to delete the Org or Space. I think responding with an error is the best we can do. |
@SocalNick: Ok, thank you for your feedback. In which CF version will this improvement be available? |
@friday11 this bug is prioritized in our backlog, but it's not a top priority to fix. |
This is unlikely to be fixed in v2 of the CC API. This behaviour spans many other recursive delete workflows. We will bear this use case in mind however when designing future versions of the API! We have tracked this in http://v3-dreams.sapi.life |
Issue
Recursive deletion of spaces containing async provided service instances will be rejected with the following error message:
"Deletion of space ABC failed because one or more resources within could not be deleted. An operation for service instance XYZ is in progress.".
The same applies for organizations with spaces containing async provided service instances.
We would expect, that the Cloud Controller can handle this kind of (temporal) dependency, especially when invoked with the async flag.
Are there any plans to support recursive (cascading) deletions where such dependencies are handled by the Cloud Controller?
Context
Working as a developer for the Swisscom application cloud project. Our application cloud is based on CloudFoundry.
Some of the Swisscom application cloud services can be configured to be provided asynchronously (e.g. MongoDB, Redis).
Steps to Reproduce
Expected result
The deletion succeeds. The Cloud Controller waits until the async provided service instance has been successfully deleted and then deletes the space.
Current result
The deletion fails. The Cloud Controller doesn't wait until the async provided service instance has been successfully deleted and therefore aborts the deletion.
The text was updated successfully, but these errors were encountered: