Bug 1623338

Summary: Misunderstanding about svc hostname from Webconsle
Product: OpenShift Container Platform Reporter: wangzhida <zhiwang>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: aos-bugs, hasha, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-20 14:11:01 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:
Embargoed:

Description wangzhida 2018-08-29 06:34:09 UTC
Description of problem:

This is concern from customer. They found that from WebConsole, The service hostname shows a info and says: This address is only resolvable from within the cluster.

However when they $nslookup the hostname such as: <svc>.<project>.svc from node. The DNS will return : <svc>.<project>.svc.cluster.local instead of the one without .cluster.local.

The question is, which is correct that our internal DNS service (skyDNS) can do. 

From my test, the resolve can not be directly success and sent to upstream DNS Server. If the upstream return no match then it will auto add the search domain "cluster.local" and then get the correct answer from local DNS.

The customer concern about the info from WebConsole which tells them that "<svc>.<project>.svc" can be resolved inside the cluster and the result doesn't match that.

Actual results:

- The result doesn't match the info provided from webconsole.

Expected results:

- 1. Need to know which kind of name could be resolved. Must contains "cluster.local"?

- 2. Is there any details info about skyDNS ? how to config it ?
- 3. If sky DNS can only resolve the name contains cluster.local, the info from WebConsole may caused some misunderstanding for customer.


This question can be repo in all of OCP version begin from 3.6


Thanks a lot.

Comment 1 Samuel Padgett 2019-01-30 00:17:04 UTC
`<service>.<namespace>.svc` should resolve from inside a pod as well, but we will update the hostname in the console to use the fully-qualified `.cluster.local`.

https://github.com/openshift/origin-web-console/pull/3111

Comment 3 shahan 2019-02-11 10:30:14 UTC
check service instance on web console, hostname will be <svc>.<ns>.svc.cluster.local with suffix 'cluster.local'.

OpenShift Master:
    v3.11.82 
Kubernetes Master:
    v1.11.0+d4cacc0 
OpenShift Web Console:
    v3.11.83 
verified this bug

Comment 5 errata-xmlrpc 2019-02-20 14:11: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-2019:0326