cloud_controller_ng
cloud_controller_ng copied to clipboard
Routes with metadata cause error when deleting orphan routes
Issue
Calling the delete unmapped routes endpoint, either directly or through the CLI, causes an unknown error if the orphaned route has metadata.
Context
Found while implementing this endpoint for the Cloud Foundry Java Client. Problem doesn't appear directly when using the CLI as it has no facility (afaik) for making routes with metadata.
Steps to Reproduce
Create a minimal domain. Create a route based on the domain with some metadata. Hit the delete orphaned routes endpoint.
Expected result
Orphaned routes, if any, are deleted, and success is returned.
Current result
Delete fails with an UnknownError(10001): An unknown error occurred. message.
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/175034581
The labels on this github issue will be updated when the story is started.