{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/977","repository_url":"https://api.github.com/repos/cloudfoundry/cli","labels_url":"https://api.github.com/repos/cloudfoundry/cli/issues/977/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/977/comments","events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/977/events","html_url":"https://github.com/cloudfoundry/cli/issues/977","id":182375479,"number":977,"title":"I am confused why I cannot see a route that I'm told is unavailable.","user":{"login":"jchesterpivotal","id":8314494,"avatar_url":"https://avatars.githubusercontent.com/u/8314494?v=3","gravatar_id":"","url":"https://api.github.com/users/jchesterpivotal","html_url":"https://github.com/jchesterpivotal","followers_url":"https://api.github.com/users/jchesterpivotal/followers","following_url":"https://api.github.com/users/jchesterpivotal/following{/other_user}","gists_url":"https://api.github.com/users/jchesterpivotal/gists{/gist_id}","starred_url":"https://api.github.com/users/jchesterpivotal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchesterpivotal/subscriptions","organizations_url":"https://api.github.com/users/jchesterpivotal/orgs","repos_url":"https://api.github.com/users/jchesterpivotal/repos","events_url":"https://api.github.com/users/jchesterpivotal/events{/privacy}","received_events_url":"https://api.github.com/users/jchesterpivotal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudfoundry/cli/labels/unscheduled","name":"unscheduled","color":"D9D9D9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-11T21:11:05Z","updated_at":"2016-10-11T21:11:07Z","closed_at":null,"body":"Using `cf version 6.20.0+25b1961-2016-06-29`\r\n\r\n## What Happens\r\n\r\nSo I try to push an app:\r\n\r\n`cf push example-app`\r\n\r\nAnd I am told I can't, because the route is taken:\r\n\r\n```\r\nUsing route example-app.local.pcfdev.io\r\n       Binding example-app.local.pcfdev.io to app_using_angular...\r\n       FAILED\r\n       The route example-app.local.pcfdev.io is already in use.\r\n       TIP: Change the hostname with -n HOSTNAME or use --random-route to generate a new route and then push again.\r\n```\r\n\r\nHuh, that's weird. Just a few minutes ago I'd used `cf delete example-app` to clear the way.\r\n\r\nLet me just check!\r\n\r\n```\r\n$ cf routes\r\nGetting routes for org pivotal / space integration as admin ...\r\n\r\nspace   host   domain   port   path   type   apps   service\r\nNo routes found\r\n```\r\n\r\nUm ... what? Where's the route?\r\n\r\nAfter some searching, it turns out that the route is in *another organization*. I can't see that route from where I am. I just keep getting told \"no, you can't use it\". On a scale from 1 to \"Jacquesrant\", this rates increasingly higher on each iteration.\r\n\r\nLuckily one of my colleagues has seen this before and does this:\r\n\r\n```\r\n$ cf target\r\n\r\nAPI endpoint:   https://api.local.pcfdev.io (API version: 2.58.0)\r\nUser:           admin\r\nOrg:            org-which-does-not-contain-the-route-but-is-nevertheless-blocked-from-acquiring-it\r\nSpace:        a-space\r\n```\r\n\r\nAnd then does this:\r\n\r\n```\r\n$ cf target -o org-which-happens-to-be-holding-on-the-route\r\n\r\nAPI endpoint:   https://api.local.pcfdev.io (API version: 2.58.0)\r\nUser:           admin\r\nOrg:            org-which-happens-to-be-holding-on-the-route\r\nSpace:        another-space\r\n```\r\n\r\nAnd then:\r\n\r\n```\r\n$ cf delete-orphaned-routes\r\n\r\nReally delete orphaned routes?>> y\r\nGetting routes as admin ...\r\n\r\nDeleting route example-app.local.pcfdev.io...\r\nOK\r\n```\r\n\r\nAnd now we're clear to reuse `example-app`.\r\n\r\n## What I Wish Had Happened:\r\n\r\n```\r\nUsing route example-app.local.pcfdev.io\r\n       Binding example-app.local.pcfdev.io to app_using_angular...\r\n       FAILED\r\n       The route example-app.local.pcfdev.io is not available for binding because it has been used by another organization.\r\n       TIP: Change the hostname with -n HOSTNAME or use --random-route to generate a new route and then push again.\r\n```\r\n\r\nThe change is to say that the route was taken by a different org.\r\n\r\nWhile it would be convenient to know *which* org is holding the route, this would leave folk open to enumeration attacks intended to find who owns what routes.\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/comments/253047487","html_url":"https://github.com/cloudfoundry/cli/issues/977#issuecomment-253047487","issue_url":"https://api.github.com/repos/cloudfoundry/cli/issues/977","id":253047487,"user":{"login":"cf-gitbot","id":5589368,"avatar_url":"https://avatars.githubusercontent.com/u/5589368?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T21:11:07Z","updated_at":"2016-10-11T21:11:07Z","body":"We have created an issue in Pivotal Tracker to manage this: \n\nhttps://www.pivotaltracker.com/story/show/132116249 \n\nThe labels on this github issue will be updated when the story is started."}}
{"actor":{"display_login":"cf-gitbot"}}