-
Notifications
You must be signed in to change notification settings - Fork 433
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
Clarify how to clean-up during a failed provision/bind #353
Conversation
Hey duglin! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA. |
Closes openservicebrokerapi#348 We actually already had text to deal with this in the bind() case, it was just missing the MUST, so I added that and then copied that same text into the provision case. Net: platforms MUST send a DELETE to the brokers upon a failed provison/bind just to make sure things are cleaned up. I'll open a 2nd PR to add text talking about how the brokers SHOULD clean-up on their own w/o the need for the DELETE. Signed-off-by: Doug Davis <dug@us.ibm.com>
Change it from SHOULD to MUST so brokers will know what to expect. |
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
spec.md
Outdated
@@ -817,7 +817,11 @@ $ curl http://username:password@service-broker-url/v2/service_instances/:instanc | |||
| 409 Conflict | MUST be returned if a service instance with the same id already exists but with different attributes. The expected response body is `{}`, though the description field MAY be used to return a user-facing error message, as described in [Service Broker Errors](#service-broker-errors). | | |||
| 422 Unprocessable Entity | MUST be returned if the Service Broker only supports asynchronous provisioning for the requested plan and the request did not include `?accepts_incomplete=true`. The expected response body is: `{ "error": "AsyncRequired", "description": "This service plan requires client support for asynchronous service operations." }`, as described below (see [Service Broker Errors](#service-broker-errors). | | |||
|
|||
Responses with any other status code will be interpreted as a failure. Service brokers can include a user-facing message in the `description` field; for details see [Service Broker Errors](#service-broker-errors). | |||
Responses with any other status code will be interpreted as a failure and a | |||
deprovision request SHOULD be sent to the Service Broker to prevent an orphan |
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.
I'd like similar language here added to L694 saying that if a request fails (aka, we get 200 but status is failed) that deprovision will be sent too.
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.
Or maybe L641 is better for it. Point being that we should clarify on polling as well.
Signed-off-by: Doug Davis <dug@us.ibm.com>
2 similar comments
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
One more review needed |
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Provide more guidance for what should happen when things go wrong so we can ensure a more consistent semantics and interop. This should only be reviewed after openservicebrokerapi#353 Signed-off-by: Doug Davis <dug@us.ibm.com>
Closes #348
We actually already had text to deal with this in the bind() case, it
was just missing the MUST, so I added that and then copied that same
text into the provision case.
Net: platforms MUST send a DELETE to the brokers upon a failed
provison/bind just to make sure things are cleaned up.
I'll open a 2nd PR to add text talking about how the brokers SHOULD
clean-up on their own w/o the need for the DELETE.
Signed-off-by: Doug Davis dug@us.ibm.com