{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/12195","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/12195/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/12195/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/12195/events","html_url":"https://github.com/openshift/origin/pull/12195","id":194442264,"number":12195,"title":"[RFE] Router sets its dns name in admitted routes","user":{"login":"pecameron","id":13967482,"avatar_url":"https://avatars.githubusercontent.com/u/13967482?v=3","gravatar_id":"","url":"https://api.github.com/users/pecameron","html_url":"https://github.com/pecameron","followers_url":"https://api.github.com/users/pecameron/followers","following_url":"https://api.github.com/users/pecameron/following{/other_user}","gists_url":"https://api.github.com/users/pecameron/gists{/gist_id}","starred_url":"https://api.github.com/users/pecameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pecameron/subscriptions","organizations_url":"https://api.github.com/users/pecameron/orgs","repos_url":"https://api.github.com/users/pecameron/repos","events_url":"https://api.github.com/users/pecameron/events{/privacy}","received_events_url":"https://api.github.com/users/pecameron/received_events","type":"User","site_admin":false},"labels":[{"id":364523425,"url":"https://api.github.com/repos/openshift/origin/labels/api-approved","name":"api-approved","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":47,"created_at":"2016-12-08T20:56:41Z","updated_at":"2017-01-18T17:29:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/12195","html_url":"https://github.com/openshift/origin/pull/12195","diff_url":"https://github.com/openshift/origin/pull/12195.diff","patch_url":"https://github.com/openshift/origin/pull/12195.patch"},"body":"The router is managed by the cluster admin and the admin knows the\r\nexternal host name of the router. The user creates routes to route\r\ndesired host DNS names to the the application. The user doesn't have\r\naccess to the router (which is usually in a diffeent namespace). When\r\na router admits a route the user needs to work with the external\r\nnetwork admin to point the route's hostname to the router. Previously\r\nthe user had to contact the cluster admin to find the host name of the\r\nrouter.\r\n\r\nThis change adds the --router-canonical-hostname= option to oadm router\r\nwhich creates and populates the ROUTER_CANONICAL_HOSTNAME environment\r\nvariable in the router's dc. This is a string that contains the\r\ncanonical hostname of the router. Whenever the router reloads and\r\nevaluates the routes the route's status is edited to include the router's\r\nhost name so the user can quickly access the information. If the\r\nROUTER_CANONICAL_HOSTNAME is updated or added to an existing router the\r\nnew information is updated in the admitted routes on the next reload.\r\n\r\nThe route (oc get route <routename> -o yaml) status reports the name\r\nof the router(s) that have admitted the route. This change adds the\r\nRouter's host name to the status in the route.\r\n\r\nThe information is also reported in \"oc describe route\" as shown below.\r\n\r\nExample:\r\n\r\noadm router myroutername --router-canonical-hostname=oh.my.heavens.org\r\n\r\noc get dc/myroutername -o yaml\r\n...\r\nspec:\r\n  template:\r\n    spec:\r\n      containers:\r\n      - env:\r\n        - name: ROUTER_CANONICAL_HOSTNAME\r\n          value: oh.my.heavens.org\r\n\r\noc get route hello-route3 -o yaml\r\n...\r\nstatus:\r\n  ingress:\r\n  - conditions:\r\n    - lastTransitionTime: 2016-12-07T15:20:57Z\r\n      status: \"True\"\r\n      type: Admitted\r\n    host: hello-openshift-v3.not.in3.mycloud.com\r\n    routerCanonicalHostname: oh.my.heavens.org\r\n    routerName: myroutername\r\n    wildcardPolicy: None\r\n\r\noc describe route/hello-route3\r\n...\r\nRequested Host: hello-openshift-v3.not.in3.mycloud.com\r\n          exposed on router myroutername (host oh.my.heavens.org) 12\r\nminutes ago\r\n\r\nbug 1393489 https://bugzilla.redhat.com/show_bug.cgi?id=1393489\r\nResolves origin-web-console issue 336\r\n           https://github.com/openshift/origin-web-console/issues/336\r\nDocs: openshift/openshift-docs pr 3377\r\n\r\nSigned-off-by: Phil Cameron <pcameron@redhat.com>"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/273542761","html_url":"https://github.com/openshift/origin/pull/12195#issuecomment-273542761","issue_url":"https://api.github.com/repos/openshift/origin/issues/12195","id":273542761,"user":{"login":"openshift-bot","id":1779249,"avatar_url":"https://avatars.githubusercontent.com/u/1779249?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift-bot","html_url":"https://github.com/openshift-bot","followers_url":"https://api.github.com/users/openshift-bot/followers","following_url":"https://api.github.com/users/openshift-bot/following{/other_user}","gists_url":"https://api.github.com/users/openshift-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-bot/subscriptions","organizations_url":"https://api.github.com/users/openshift-bot/orgs","repos_url":"https://api.github.com/users/openshift-bot/repos","events_url":"https://api.github.com/users/openshift-bot/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-bot/received_events","type":"User","site_admin":false},"created_at":"2017-01-18T17:29:18Z","updated_at":"2017-01-18T17:29:18Z","body":"continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12983/) (Base Commit: 68d4d0ab03bf3fd4922041ce0fa1159d988764f7)"}}
{"actor":{"display_login":"openshift-bot"}}