Bug 1599787

Summary: py-amqp will try to resolve hostnames through nameservers unless they have both IPv4 and IPv6 entries in /etc/hosts leading to timeouts
Product: Red Hat OpenStack Reporter: Daniel Alvarez Sanchez <dalvarez>
Component: python-amqpAssignee: RHOS Maint <rhos-maint>
Status: CLOSED WONTFIX QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 11.0 (Ocata)CC: apevec, jschluet, lhh, rhos-maint, srevivo
Target Milestone: zstream   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1599766
: 1599789 (view as bug list) Environment:
Last Closed: 2018-07-10 15:19:54 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:
Bug Depends On: 1599766, 1607962    
Bug Blocks: 1599784, 1599789    

Description Daniel Alvarez Sanchez 2018-07-10 15:17:38 UTC
+++ This bug was initially created as a clone of Bug #1599766 +++

Description of problem:
OSPD normally configures the controllers hostnames in /etc/hosts (IPv4) but py-amqp will try to query nameservers because there's no IPv6 entry there.

When nameservers are non-existent or unreachable, this leads to 60 seconds timeout when connecting to Rabbit.

The fix got recently merged in py-amqp:

https://github.com/celery/py-amqp/commit/1ad97fb14c0c3c57395ca525932f95a830e51a88

We would need this fix in OSP11.