Bug 1271793

Summary: rdo-manager doc has incomplete /etc/hosts configuration
Product: [Community] RDO Reporter: Mohammed Arafa <bugzilla>
Component: DocumentationAssignee: Nobody <nobody>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: LibertyCC: pkovar, srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-03 14:00:55 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 Mohammed Arafa 2015-10-14 18:15:35 UTC
Description of problem:
rdo-manager documentation says that the hostname must be resolvable and if no dns is in use to modify /etc/hosts
however, it only says 

Baremetal Ensure that there is a FQDN hostname set and that the $HOSTNAME environment variable matches that value.

problem is with rabbitmq connecting to `hostname -s` values so if the hostname -f is rdo.redhat.com, rabbitmq will only connect to rabbit@rdo
if it cannot resolve rdo from dns or hosts file then everything stops.

for more info see: https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/653405

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


How reproducible:
every time

Steps to Reproduce:
1.follow the doc
2.
3.

Actual results:
crash

Expected results:
it works

Additional info:

Comment 1 Mohammed Arafa 2015-10-14 18:16:40 UTC
so /etc/hosts should have something like this, however you want to word it

127.0.0.1 hostname.f.q.d.n hostname
OR
127.0.0.1   myhost.mydomain myhost

Comment 2 Petr Kovar 2016-05-03 14:00:55 UTC
Thanks for your bug report. This has been fixed in tripleo-docs:

commit 094157c86da444146015a167615445317baea53b
Author: Ignacio Bravo <ibravo>
Date:   Thu Oct 15 18:14:16 2015 -0400

    Updated /etc/hosts file definition
    
    rabbitmq connects with `hostname -s` values so if the hostname -f
    is rdo.redhat.com, rabbitmq will only connect to rabbit@rdo.
    
    If it cannot resolve rdo from dns or hosts file then everything stops.
    
    Via: https://bugzilla.redhat.com/show_bug.cgi?id=1271793
    
    Change-Id: I756dc3bf60daa2b6ede8cad97f90e8fe45918007