Bug 1365676

Summary: add host query to foreman-debug to verify forward/reverse dns
Product: Red Hat Satellite Reporter: Chris Roberts <chrobert>
Component: Foreman DebugAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Adam Ruzicka <aruzicka>
Severity: low Docs Contact:
Priority: low    
Version: 6.1.8CC: aruzicka, bbuckingham, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/15921
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 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 Chris Roberts 2016-08-09 20:14:52 UTC
Host bypasses /etc/hosts and uses the dns servers in /etc/resolv.conf

Lets add a host command output of the fqdn of satellite to verify it maps back to the katello server.

Comment 1 Chris Roberts 2016-08-09 20:15:57 UTC
https://github.com/theforeman/foreman/pull/3711

Comment 4 Adam Ruzicka 2017-08-16 10:37:14 UTC
Verified.
Version Tested: Satellite-6.3 Snap 11
Package versions:
foreman-1.15.3-1.el7sat.noarch
satellite-6.3.0-16.0.beta.el7sat.noarch
foreman-debug-1.15.3-1.el7sat.noarch

# foreman-debug                                                                                                                                      
Processing... (takes a while)

 HOSTNAME: snap11.satellite63.centos7.lxc
       OS: redhat
  RELEASE: CentOS Linux release 7.3.1611 (Core) 
  FOREMAN: 1.15.3
     RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
   PUPPET: 3.8.6


A debug file has been created: /tmp/foreman-debug-U88or.tar.xz (578652 bytes)

To upload a tarball to our secure site, please use the -u option.

# cd /tmp/foreman-debug-U88or

# ls  |grep hostname_dns
hostname_dns_check

# cat hostname_dns_check
COMMAND> host snap11.satellite63.centos7.lxc

Host snap11.satellite63.centos7.lxc not found: 3(NXDOMAIN)

Comment 5 Satellite Program 2018-02-21 16:51:07 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/RHSA-2018:0336