Bug 1395821 - Display Service DNS when possible in the Web Console
Summary: Display Service DNS when possible in the Web Console
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.4.1
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: ---
Assignee: Juan Vallejo
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-16 18:35 UTC by Alfredo Quiroga
Modified: 2017-07-24 14:11 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Service page did not display local service DNS Consequence: Users could not see a service's local hostname Fix: Add 'Hostname' field to service page which displays local service address Result: Service page now displays a service's local hostname
Clone Of:
Environment:
Last Closed: 2017-04-12 19:17:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 22:50:07 UTC

Description Alfredo Quiroga 2016-11-16 18:35:51 UTC
Description of problem:

- Display Service DNS when possible in the Web Console.
- Currently we only display for example 172.30.X.X for the service.
- We should be automatically showing whenever possible the DNS for the service.
- The same can be same about:

oc get service in the CLI.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jessica Forrester 2016-11-16 19:06:07 UTC
Are you asking to show the Routes associated with the service, or something else?

See some in progress work on the service details page https://github.com/openshift/origin-web-console/pull/839

Comment 2 Alfredo Quiroga 2016-11-18 15:40:48 UTC
A service has an IP address. It also has DNS associated with it.

See in the documentation Table 1.

https://docs.openshift.org/latest/architecture/additional_concepts/networking.html

In the User Interface today we are only displaying the Service IP address. For example 172.30.x.x. We should be showing in addition to that the actual DNS that can be used to access the service.

Example:

Table 1. DNS Example Names
Object Type	Example
Default
<pod_namespace>.cluster.local
Services
<service>.<pod_namespace>.svc.cluster.local
Endpoints
<name>.<namespace>.endpoints.cluster.local

Comment 3 Juan Vallejo 2016-11-18 20:59:51 UTC
Hm, so this seems similar to the Hostname that we are showing with routes in this PR https://github.com/openshift/origin-web-console/pull/839 (https://cloud.githubusercontent.com/assets/3902875/20356589/f529349e-abf2-11e6-8b89-5b552809359c.png)

The only difference is that we are only showing the "Endpoint" DNS type instead of all three kinds.

jforrest would it be worth adding a new tab with a table that displays the other two remaining DNS types?

Comment 4 Jessica Forrester 2016-11-18 21:32:59 UTC
Ah ok, this request is for the DNS where the service is available from within the cluster, not the external DNS like with Routes.

Comment 5 Alfredo Quiroga 2016-11-18 21:53:27 UTC
Correct. This is for service DNS. The service that gets created when an application is exposed within the cluster. This is the service that is created from the port that the application/container exposes.

Route => Service => Container

The service in that flow right now only shows in the GUI and the CLI output for "oc get service" as the private internal IP address. That same service can also be referenced via DNS (internal DNS). Remembering that DNS is quite hard. We should be showing that in both places, GUI and CLI output.

Appreciate the help. Almost every customer I talk to by the way asks for this.

Comment 6 Juan Vallejo 2016-12-13 16:17:02 UTC
Related PR: https://github.com/openshift/origin-web-console/pull/839
Related screenshot: https://github.com/openshift/origin-web-console/pull/839#issuecomment-265240687

The service page now displays the "Hostname" field

Comment 7 Jessica Forrester 2016-12-13 16:23:24 UTC
OCP bugs need to go to MODIFIED

Comment 8 Troy Dawson 2017-01-27 21:43:01 UTC
This has been merged into ocp and is in OCP v3.5.0.10 or newer.

Comment 9 Yanping Zhang 2017-02-03 07:21:34 UTC
Checked on OCP v3.5.0.14
Create service in project, check on the service page, there is "Hostname" field showing the service dns now:
Hostname:    service-unsecure-4.prozyp.svc 

The bug has been fixed, so move it to Verified.

Comment 11 errata-xmlrpc 2017-04-12 19:17:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0884


Note You need to log in before you can comment on or make changes to this bug.