| Summary: | [RFE] Administrators should be able to set a routes host name, so that the name responds to DNS queries. | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Eric Rich <erich> |
| Component: | RFE | Assignee: | Phil Cameron <pcameron> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | zhaozhanqi <zzhao> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.3.0 | CC: | akostadi, aos-bugs, bbennett, ccoleman, erich, jokerman, jpazdziora, mmccomas, pcameron, sukulkar, vlaad, zzhao |
| Target Milestone: | --- | ||
| Target Release: | 3.5.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1347822 | Environment: | |
| Last Closed: | 2018-10-08 13:36:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1347822 | ||
| Bug Blocks: | |||
|
Description
Eric Rich
2016-11-09 16:37:25 UTC
Code changes https://github.com/openshift/origin/pull/12195 Documentation PR 3377 https://github.com/openshift/openshift-docs/pull/3377 Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/dc5a0b0999abcbdb47d558c95110fa97bc60415a Router sets its host name in admitted routes The router is managed by the cluster admin and the admin knows the external host name of the router. The user creates routes to route desired host DNS names to the the application. The user doesn't have access to the router (which is usually in a different namespace). When a router admits a route the user needs to work with the external network admin to point the route's hostname to the router. Previously the user had to contact the cluster admin to find the host name of the router. This change adds the --router-canonical-hostname= option to oadm router which creates and populates the ROUTER_CANONICAL_HOSTNAME environment variable in the router's dc. This is a string that contains the canonical hostname of the router. Whenever the router reloads and evaluates the routes the route's status is edited to include the router's host name so the user can quickly access the information. If the ROUTER_CANONICAL_HOSTNAME is updated or added to an existing router the new information is updated in the admitted routes on the next reload. The route (oc get route <routename> -o yaml) status reports the name of the router(s) that have admitted the route. This change adds the Router's host name to the status in the route. The information is also reported in "oc describe route" as shown below. Example: oadm router myroutername --router-canonical-hostname=oh.my.heavens.org oc get dc/myroutername -o yaml ... spec: template: spec: containers: - env: - name: ROUTER_CANONICAL_HOSTNAME value: oh.my.heavens.org oc get route hello-route3 -o yaml ... status: ingress: - conditions: - lastTransitionTime: 2016-12-07T15:20:57Z status: "True" type: Admitted host: hello-openshift-v3.not.in3.mycloud.com routerCanonicalHostname: oh.my.heavens.org routerName: myroutername wildcardPolicy: None oc describe route/hello-route3 ... Requested Host: hello-openshift-v3.not.in3.mycloud.com exposed on router myroutername (host oh.my.heavens.org) 12 minutes ago bug 1393489 https://bugzilla.redhat.com/show_bug.cgi?id=1393489 Resolves origin-web-console issue 336 https://github.com/openshift/origin-web-console/issues/336 openshift-docs PR#3377 Signed-off-by: Phil Cameron <pcameron> Commit pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/ceacf503e656f663726ae571c2fd1ff604ad1801 Router sets its hostname in admitted routes Openshift 3.5 feature The router is managed by the cluster admin and the admin knows the external host name of the router. The user creates routes to route desired host DNS names to the the application. The user doesn't have access to the router (which is usually in a different namespace). When a router admits a route the user needs to work with the external network admin to point the route's hostname to the router. Previously the user had to contact the cluster admin to find the host name of the router. This change adds the --router-canonical-hostname= option to oadm router which creates and populates the ROUTER_CANONICAL_HOSTNAME environment variable in the router's dc. This is a string that contains the canonical hostname of the router. Whenever the router reloads and evaluates the routes the route's status is edited to include the router's host name so the user can quickly access the information. If the ROUTER_CANONICAL_HOSTNAME is updated or added to an existing router the new information is updated in the admitted routes on the next reload. The route (oc get route <routename> -o yaml) status reports the name of the router(s) that have admitted the route. This change adds the Router's host name to the status in the route. The information is also reported in "oc describe route" as shown below. Example: oadm router myroutername --router-canonical-hostname=oh.my.heavens.org oc get dc/myroutername -o yaml ... spec: template: spec: containers: - env: - name: ROUTER_CANONICAL_HOSTNAME value: oh.my.heavens.org oc get route hello-route3 -o yaml ... status: ingress: - conditions: - lastTransitionTime: 2016-12-07T15:20:57Z status: "True" type: Admitted host: hello-openshift-v3.not.in3.mycloud.com routerCanonicalHostname: oh.my.heavens.org routerName: myroutername wildcardPolicy: None oc describe route/hello-route3 ... Requested Host: hello-openshift-v3.not.in3.mycloud.com exposed on router myroutername (host oh.my.heavens.org) 12 minutes ago bug 1393489 https://bugzilla.redhat.com/show_bug.cgi?id=1393489 Resolves origin-web-console issue 336 Trello: https://trello.com/c/BLASUOQC/376-5-add-a-way-to-pass-a-preferred-dns-name-to-routers-to-populate-route-statuses-ingress-usability https://github.com/openshift/origin/pull/12195 Signed-off-by: Phil Cameron <pcameron> this issue had been resolved from 3.5 version. So verified this bug . |