unbind last_operation response always responds with 410 Gone #709
Labels
3.9 | release-1.1
Kubernetes 1.9 | Openshift 3.9 | Broker release-1.1
3.10 | release-1.2
Kubernetes 1.10 | Openshift 3.10 | Broker release-1.2
What happened:
When an async unbind operation is in-progress, the last_operation endpoint incorrectly responds with a
410 Goneresponse code.This is on the
release-1.1branch.What you expected to happen:
The spec says a 410 response to a last_operation request is "Appropriate only for asynchronous delete operations. The Platform MUST consider this response a success and remove the resource from its database."
In our case, a 410 response does not indicate success because it gets returned even while the job is in-progress. Thus our response is misleading.
How to reproduce it:
Use the last_operation endpoint to query the state of an in-progress unbind operation.
Cause
This is likely caused by the fact that when the DELETE is requested on the binding, the
BindInstanceis deleted from etcd before even a 202 response is returned. It may be better to do that deleting at the end of the unbind job.The text was updated successfully, but these errors were encountered: