I am attempting to use juju to install a rabbitmq cluster on LXD.
$ juju --version
2.9.43-ubuntu-amd64
$ lxd --version
5.0.2
I am using revision 150 of the charm, that I have locally:-
$ git clone https://opendev.org/openstack/charm-rabbitmq-server
I attempt to deploy a rabbitmq cluster, following the instructions at: https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/app-ha.html#rabbitmq
$ juju deploy -n 3 --to lxd,lxd,lxd --config min-cluster-size=3 ./charm-rabbitmq-server
This invariably leads to a state where all the containers are listed as started but pending, and the deployment never finishes:-
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default overlord localhost/localhost 2.9.43 unsupported 21:02:19+10:00
App Version Status Scale Charm Channel Rev Exposed Message
rabbitmq-server waiting 0/3 rabbitmq-server 150 no waiting for machine
Unit Workload Agent Machine Public address Ports Message
rabbitmq-server/0 waiting allocating 0/lxd/0 waiting for machine
rabbitmq-server/1 waiting allocating 1/lxd/0 waiting for machine
rabbitmq-server/2 waiting allocating 2/lxd/0 waiting for machine
Machine State Address Inst id Series AZ Message
0 started 10.140.147.93 juju-94265b-0 focal Running
0/lxd/0 pending juju-94265b-0-lxd-0 focal Container started
1 started 10.140.147.81 juju-94265b-1 focal Running
1/lxd/0 pending juju-94265b-1-lxd-0 focal Container started
2 started 10.140.147.71 juju-94265b-2 focal Running
2/lxd/0 pending juju-94265b-2-lxd-0 focal Container started
I have connected to the machines (eg. $ juju ssh 0
) and don’t see any errors in the cloud-init logs.
What could be the problem here?