Bug 1599784

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: John Eckersberg <jeckersb>
Status: CLOSED DUPLICATE QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: apevec, jschluet, knoha, lhh, rhos-maint, srevivo
Target Milestone: zstreamKeywords: Triaged, 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 Environment:
Last Closed: 2018-08-03 13:10:03 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, 1599787, 1599789, 1607962    
Bug Blocks:    

Description Daniel Alvarez Sanchez 2018-07-10 15:16:25 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 OSP13.

Comment 1 John Eckersberg 2018-08-03 13:10:03 UTC

*** This bug has been marked as a duplicate of bug 1569430 ***