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

Clarify how to clean-up during a failed provision/bind #353

Merged
merged 2 commits into from
Nov 7, 2017

Conversation

duglin
Copy link
Contributor

@duglin duglin commented Oct 26, 2017

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

@cfdreddbot
Copy link

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>
@duglin
Copy link
Contributor Author

duglin commented Oct 26, 2017

Change it from SHOULD to MUST so brokers will know what to expect.

@avade
Copy link
Contributor

avade commented Oct 26, 2017

LGTM

Approved with PullApprove

@mattmcneeney
Copy link
Contributor

mattmcneeney commented Oct 26, 2017

LGTM 👏

Approved with PullApprove

duglin pushed a commit to duglin/servicebroker that referenced this pull request Oct 27, 2017
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>
@angarg12
Copy link
Contributor

angarg12 commented Oct 27, 2017

LGTM

Approved with PullApprove

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
Copy link
Contributor

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.

Copy link
Contributor

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>
@vaikas
Copy link
Contributor

vaikas commented Oct 31, 2017

LGTM

Approved with PullApprove

2 similar comments
@pmorie
Copy link
Contributor

pmorie commented Oct 31, 2017

LGTM

Approved with PullApprove

@avade
Copy link
Contributor

avade commented Oct 31, 2017

LGTM

Approved with PullApprove

duglin pushed a commit to duglin/servicebroker that referenced this pull request Oct 31, 2017
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>
@duglin
Copy link
Contributor Author

duglin commented Nov 7, 2017

One more review needed

@mattmcneeney
Copy link
Contributor

mattmcneeney commented Nov 7, 2017

LGTM

Approved with PullApprove

@mattmcneeney mattmcneeney merged commit f5450a3 into openservicebrokerapi:master Nov 7, 2017
duglin pushed a commit to duglin/servicebroker that referenced this pull request Nov 7, 2017
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>
@duglin duglin deleted the issue348 branch November 7, 2017 15:17
@avade avade added this to the 2.14 milestone Nov 7, 2017
duglin pushed a commit to duglin/servicebroker that referenced this pull request Nov 8, 2017
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>
@mattmcneeney mattmcneeney added this to Ready to release (2.14) in Roadmap & Release Planning Nov 21, 2017
duglin pushed a commit to duglin/servicebroker that referenced this pull request Nov 21, 2017
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>
duglin pushed a commit to duglin/servicebroker that referenced this pull request Nov 21, 2017
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>
duglin pushed a commit to duglin/servicebroker that referenced this pull request Jan 8, 2018
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>
duglin pushed a commit to duglin/servicebroker that referenced this pull request Jan 9, 2018
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>
duglin pushed a commit to duglin/servicebroker that referenced this pull request Jan 19, 2018
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>
duglin pushed a commit to duglin/servicebroker that referenced this pull request Jan 22, 2018
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

7 participants