rabbitmq-server charm fails on cluster-relation-changed when using openstack provider

Bug #1489053 reported by Matt Rae
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rabbitmq-server (Juju Charms Collection)
Fix Released
Medium
Jorge Niedbalski
Trusty
Fix Released
Undecided
Jorge Niedbalski

Bug Description

When deploying 3 rabbitmq-server units, if the units are unable to look up the hostname of other units during cluster relation then the relation defaults to attempting to cluster with itself rather than the other hosts.

notes from ante:

before trying to figure out hostnames, /etc/hosts should be populated with rabbitmq units. this information should be available within juju and charm should do that

also instead of using socket.gethostname() it should use socket.gethostbyaddr()[0]

Related branches

Revision history for this message
Matt Rae (mattrae) wrote :

sorry this should be opened against the rabbitmq-server charm

affects: juju-core → rabbitmq-server (Juju Charms Collection)
Revision history for this message
Matt Rae (mattrae) wrote :

The patch for this bug appears to be related to this problem:
https://bugs.launchpad.net/charms/+source/rabbitmq-server/+bug/1378263

18 + ip_addr = get_host_ip(unit_get('private-address'))
19 + try:
20 + nodename = get_hostname(ip_addr, fqdn=False)
21 + except:
22 + log('Cannot resolve hostname for %s using DNS servers' % ip_addr)
23 + log('Falling back to use socket.gethostname()')
24 + #If the private-address is not resolvable using DNS
25 + # then use the current hostname
26 + nodename = socket.gethostname()

Changed in rabbitmq-server (Juju Charms Collection):
assignee: nobody → Jorge Niedbalski (niedbalski)
Changed in rabbitmq-server (Juju Charms Collection):
status: New → Confirmed
Ante Karamatić (ivoks)
tags: added: cpec
Changed in rabbitmq-server (Juju Charms Collection):
status: Confirmed → In Progress
Changed in rabbitmq-server (Juju Charms Collection):
status: In Progress → Fix Committed
milestone: none → 15.10
tags: added: backport-potential
Changed in rabbitmq-server (Juju Charms Collection):
status: Fix Committed → In Progress
importance: Undecided → Medium
Changed in rabbitmq-server (Juju Charms Collection):
status: In Progress → Fix Committed
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

This has been released for /next and /trunk charms.

Thanks for reporting.

Changed in rabbitmq-server (Charms Trusty):
status: New → Fix Released
Changed in rabbitmq-server (Charms Trusty):
assignee: nobody → Jorge Niedbalski (niedbalski)
James Page (james-page)
Changed in rabbitmq-server (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.