cloudfoundry / cloud_controller_ng

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

Routes with metadata cause error when deleting orphan routes #1876

Open twoseat opened 3 years ago

twoseat commented 3 years ago

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.

cf-gitbot commented 3 years ago

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.