Closed toabi closed 3 years ago
Ah, it's probably here: https://github.com/couchbase/service-broker/blob/873ed42595f7db90d4f9af5f2d40c1116f455ad2/pkg/broker/handlers.go#L653-L656
But hard to know at that point if it should say "Ok it's gone now" or "It never existed…"
CloudFoundry doesn’t care about this issue and shows no error after deprovision.
Just stumbled upon https://github.com/openservicebrokerapi/servicebroker/issues/706 so current implementation should be good enough for this broker
From the specification:
The platform MUST consider this response a success
So it's working as per the specification, and eden is at "fault". Cloud Foundry invented the spec, so I'm hardly surprised it works for them! That said, now you've drawn my attention to it:
The expected response body is {}.
So we shouldn't be returning an error string in this case.
As stated above, eden doesn't follow the API correctly, or uses a weird version. But, there was a bug in my implementation of the API that got fixed here.
Describe the bug A clear and concise description of what the bug is.
To Reproduce
=> Service-Instances gets deleted => Created Templates get deleted => Existing service-binding secrets are not deleted (might be okay, because most OSB clients might not let you delete things which have active bindings, eden just does…) but that doesn't matter
Expected behavior Deprovisioning ends a successful response.
But after some digging it might be more an eden issue. I'll have to later test it with the CloudFoundry Marketplace.
https://github.com/starkandwayne/eden/blob/6f84e1d02e8a63edf59802708921684e0b3598dd/apiclient/open_service_broker.go#L198-L239 is the code on edens side.
The OSB Spec looks like eden should fall into a "Polling Last Operation" when getting the 202 which it actually does.
But the last-operation then returns a 410 instead of a 200 with the right state.
Environment:
Additional context
service-broker
eden