rmq next charm: config-changed hook fails when deployed to lxc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rabbitmq-server (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The rabbitmq-server next charm works on bare metal but not in a container; the stable charm works fine on both.
After deploy, the rabbit startup errors out with:
ERROR: node with name "rabbit" already running on "10-245-173-99"
DIAGNOSTICS
===========
nodes in question: ['rabbit@
hosts, their running nodes and ports:
- 10-245-173-99: [{rabbit,44415},
current node details:
- node name: 'rabbitmqprelau
- home dir: /var/lib/rabbitmq
- cookie hash: /Pe4Mo4pg2tLXWU
After stopping the rabbitmq-server service on the unit, there remains a running mq server process.
Kill -9ing that service, then starting the rabbitmq-server service seems to resolve in place.
## REPRODUCER:
To remove the surrounding complexity of OpenStack and bundles, here is a simplified approach to reproducing this bug.
juju bootstrap --constraints "arch=amd64 tags=uosci"
mkdir trusty
# grab next charm
bzr branch lp:~openstack-charmers/charms/trusty/rabbitmq-server/next trusty/
# grab next charm with proposed fix
bzr branch lp:~james-page/charms/trusty/rabbitmq-server/fixup-configure-nodename trusty/
# grab stable charm
bzr branch lp:charms/trusty/rabbitmq-server trusty/
# Manually change "name:" to "rabbitmq-
# Manually change "name:" to "rabbitmq-
# Deploy next charm to a container (FAIL):
juju deploy --to lxc:0 --repository=./ local:trusty/
# Deploy next charm to bare metal (OK):
juju add-unit rabbitmq-server
# Deploy proposed charm fix to a container (FAIL):
juju deploy --to lxc:0 --repository=./ local:trusty/
# Deploy proposed charm fix to bare metal (OK):
juju add-unit rabbitmq-
# Deploy stable charm to a container (OK):
juju deploy --to lxc:0 --repository=./ local:trusty/
# Deploy stable charm to bare metal (OK):
juju add-unit rabbitmq-
# juju stat after reproducer:
juju stat --format tabular
juju stat --format yaml
SEE --> http://
## RESULTANT CONFS:
jenkins@
# ignore 0
- MachineId: "0"
Stderr: "Warning: Permanently added '10.245.168.11' (ECDSA) to the list of known
hosts.\r\ncat: /etc/rabbitmq/
# next charm in lxc
- MachineId: 0/lxc/0
RABBITMQ_
# proposed fix charm in lxc
- MachineId: 0/lxc/1
RABBITMQ_
# stable charm in lxc
- MachineId: 0/lxc/2
RABBITMQ_
# next charm on bare metal
- MachineId: "1"
RABBITMQ_
# proposed fix charm on bare metal
- MachineId: "2"
RABBITMQ_
# stable charm on bare metal
- MachineId: "3"
RABBITMQ_
## JUJU/MAAS VERSION INFO:
# juju version:
jenkins@
juju:
Installed: 1.24.2-
Candidate: 1.24.2-
Version table:
*** 1.24.2-
500 http://
100 /var/lib/
1.
500 http://
1.
500 http://
# maas version:
ubuntu@lescina:~$ apt-cache policy maas
maas:
Installed: 1.8.0+bzr4001-
Candidate: 1.8.0+bzr4001-
Version table:
*** 1.8.0+bzr4001-
500 http://
500 http://
100 /var/lib/
1.
500 http://
1.
500 http://
1.
500 http://
You have new mail in /var/mail/ubuntu
Related branches
- charmers: Pending requested
-
Diff: 12 lines (+2/-0)1 file modifiedhooks/rabbitmq_server_relations.py (+2/-0)
- charmers: Pending requested
-
Diff: 1490 lines (+727/-136)15 files modifiedhooks/charmhelpers/contrib/hahelpers/cluster.py (+37/-2)
hooks/charmhelpers/contrib/openstack/neutron.py (+10/-5)
hooks/charmhelpers/contrib/openstack/utils.py (+65/-18)
hooks/charmhelpers/contrib/peerstorage/__init__.py (+123/-3)
hooks/charmhelpers/contrib/python/packages.py (+28/-5)
hooks/charmhelpers/core/hookenv.py (+147/-10)
hooks/charmhelpers/core/host.py (+1/-1)
hooks/charmhelpers/core/services/base.py (+32/-11)
hooks/charmhelpers/fetch/__init__.py (+1/-1)
hooks/charmhelpers/fetch/giturl.py (+7/-5)
hooks/rabbit_utils.py (+24/-14)
hooks/rabbitmq_server_relations.py (+72/-39)
tests/charmhelpers/core/hookenv.py (+147/-10)
tests/charmhelpers/core/host.py (+1/-1)
tests/charmhelpers/core/services/base.py (+32/-11)
- OpenStack Charmers: Pending requested
-
Diff: 55 lines (+8/-2)1 file modifiedhooks/rabbitmq_server_relations.py (+8/-2)
description: | updated |
description: | updated |
description: | updated |
summary: |
- rmq next charm: pkg install fails when deployed to lxc + rmq next charm: config-changed hook fails when deployed to lxc |
description: | updated |
Changed in rabbitmq-server (Juju Charms Collection): | |
status: | New → Fix Released |
It is worth noting that reverse dns is technically "working" in this environment and scenario, but the ptr records for the units which are in lxc are handled slightly differently by maas. http:// paste.ubuntu. com/11888267/