cloudfoundry / cloud_controller_ng

Cloud Foundry Cloud Controller
Apache License 2.0
191 stars 357 forks source link

Orphaned mitigation on service instance update failures #1690

Closed brunograz closed 4 years ago

brunograz commented 4 years ago

Thanks for submitting an issue to cloud_controller_ng. We are always trying to improve! To help us, please fill out the following template.

Issue

CC issues an orphaned mitigation on service instances with failed updates resulting in the removal of the service instance.

Context

Updating service instances may result in a failure and for such scenario the orphaned mitigation should not be triggered as described in the OSB specification.

We assume that this commit has introduced this bug where it triggers the mitigation when a request to last_operation is issued by the CC and the service broker report its state is 'failed'.

From our point view it is incorrect to initiate a mitigation on a service instance based on the last_operation without checking the type of the operation that had been performed.

For additional information:

Steps to Reproduce

Expected result

Current result

cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/173291140

The labels on this github issue will be updated when the story is started.

blgm commented 4 years ago

Thank you for raising this @brunograz. This is clearly an incorrect behavior and we are working on a fix.