{"action":"created","issue":{"url":"https://api.github.com/repos/cf-tm-bot/routing/issues/6","repository_url":"https://api.github.com/repos/cf-tm-bot/routing","labels_url":"https://api.github.com/repos/cf-tm-bot/routing/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/cf-tm-bot/routing/issues/6/comments","events_url":"https://api.github.com/repos/cf-tm-bot/routing/issues/6/events","html_url":"https://github.com/cf-tm-bot/routing/issues/6","id":176310996,"number":6,"title":"if router group is removed from routing api, cc requires a hostname when creating a route for a TCP shared domain - Story Id: 121334657","user":{"login":"cf-tm-bot","id":20690070,"avatar_url":"https://avatars.githubusercontent.com/u/20690070?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-tm-bot","html_url":"https://github.com/cf-tm-bot","followers_url":"https://api.github.com/users/cf-tm-bot/followers","following_url":"https://api.github.com/users/cf-tm-bot/following{/other_user}","gists_url":"https://api.github.com/users/cf-tm-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-tm-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-tm-bot/subscriptions","organizations_url":"https://api.github.com/users/cf-tm-bot/orgs","repos_url":"https://api.github.com/users/cf-tm-bot/repos","events_url":"https://api.github.com/users/cf-tm-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-tm-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cf-tm-bot/routing/labels/blocked-by-capi","name":"blocked-by-capi","color":"ededed"},{"url":"https://api.github.com/repos/cf-tm-bot/routing/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/cf-tm-bot/routing/labels/cf-release","name":"cf-release","color":"ededed"},{"url":"https://api.github.com/repos/cf-tm-bot/routing/labels/finished","name":"finished","color":"172c51"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-12T07:32:51Z","updated_at":"2016-09-12T07:33:30Z","closed_at":null,"body":"to repro:\n\nbug 1: \n\n- deploy all the things, with a router group for routing api\n- create shared domain, referring router group\n- delete router group from etcd. `cf curl /routing/v1/router_groups` returns empty array\n- create a route for shared tcp domain `cf create-route test-space tcp.superman.cf-app.com --random-port`\n\n```\n$ cf create-route test tcp.superman.cf-app.com\nCreating route tcp.superman.cf-app.com for org scoen / space test as admin...\nFAILED\nServer error, status code: 400, error code: 210001, message: The route is invalid: host is required for shared-domains\n```\nCC thinks this is an HTTP domain...\n~~The error should be that \"port is required for domains of TCP router groups\".. there is an existing error for that. It should be the same behavior as when attempt to create a route for a TCP domain~~\nCC does not have knowledge of what type of router group the domain is associated with, in this case, we should return an error like \"router group guid not found: dd2258f5-a275-4b84-57de-f27f266a63ba\"\nbug 2: \n\n```\n$ cf create-route test tcp.superman.cf-app.com --hostname foo\nCreating route foo.tcp.superman.cf-app.com for org scoen / space test as admin...\nOK\n```\nThis should have returned an error like \"router group not found: dd2258f5-a275-4b84-57de-f27f266a63ba\"\n\n---\n\nMirrors: [story 121334657](https://www.pivotaltracker.com/story/show/121334657) submitted on Jun 10, 2016 UTC\n- **Requester**: Shannon Coen\n- **Owners**: Shash  Reddy, Edwin Xie\n- **Estimate**: 0.0"},"comment":{"url":"https://api.github.com/repos/cf-tm-bot/routing/issues/comments/246270065","html_url":"https://github.com/cf-tm-bot/routing/issues/6#issuecomment-246270065","issue_url":"https://api.github.com/repos/cf-tm-bot/routing/issues/6","id":246270065,"user":{"login":"cf-tm-bot","id":20690070,"avatar_url":"https://avatars.githubusercontent.com/u/20690070?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-tm-bot","html_url":"https://github.com/cf-tm-bot","followers_url":"https://api.github.com/users/cf-tm-bot/followers","following_url":"https://api.github.com/users/cf-tm-bot/following{/other_user}","gists_url":"https://api.github.com/users/cf-tm-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-tm-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-tm-bot/subscriptions","organizations_url":"https://api.github.com/users/cf-tm-bot/orgs","repos_url":"https://api.github.com/users/cf-tm-bot/repos","events_url":"https://api.github.com/users/cf-tm-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-tm-bot/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T07:33:30Z","updated_at":"2016-09-12T07:33:30Z","body":"Judy Wang [commented](https://www.pivotaltracker.com/n/projects/1358110/stories/121334657/comments/146968347) on Aug 17, 2016, 9.44 PM UTC:\n\ntypo in error response when creating a route with a random port:\n```\n$ cf create-route test tcp.catwoman.cf-app.com --random-port\nCreating route tcp.catwoman.cf-app.com for org judy / space test as admin...\nFAILED\nServer error, status code: 404, error code: 210009, message: The router group could not be found: f69e6df9-dafb-497e-57b4-999981d9dde7 could not be found\n```\n\"could not be found\" is repeated.\n\n<!--\nComment Id: 146968347\n-->"}}
{"actor":{"display_login":"cf-tm-bot"}}