-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: successfully delete instances and bindings with invalid state
As part of the upgrade epic, we added checks to make sure that service instances and bindings had been updated to the latest version. This involves parsing the Terraform state and extracting the version. But sometimes the Terraform state is not valid due to being empty, or being invalid JSON. Typically this is after a failure to provision/bind, and the service instance or binding is in a failed state. In these situations, the lack of state data means CSB does not have enough data to successfully clean up using Terraform. We have had feedback that this can be problematic for users because they have to do a manual purge of the service instance, and it would be easier if the delete operations would just work. This is a tradeoff because a manual purge could have the effect of triggering someone to look at the backing IaaS to look for resource leakage. By making this just work, we might make resource leakage worse. [#185835561](https://www.pivotaltracker.com/story/show/185835561)
- Loading branch information
Showing
10 changed files
with
201 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package workspace | ||
|
||
type CannotReadVersionError struct { | ||
message string | ||
} | ||
|
||
func (s CannotReadVersionError) Error() string { | ||
return s.message | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.