Can't use RBD backend for rabbitmq-server (ceph auth)

Bug #1906430 reported by Hybrid512
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack RabbitMQ Server Charm
New
Undecided
Unassigned

Bug Description

Hi,

There are 2 bugs related to Ceph/RBD backend for RabbitMQ-server :

- first, it can't be done if RabbitMQ is installed in a lxd container (see https://bugs.launchpad.net/bugs/1906424)
- second, when installed on bare metal, there is a cephx error, rabbitmq-server is not authorized to create the RBD pool on the Ceph cluster.

./hooks/ceph-relation-changed
tmux kill-session -t rabbitmq-server/0 # or, equivalently, CTRL+a d

4. CTRL+a is tmux prefix.

More help and info is available in the online documentation:
https://discourse.jujucharms.com/t/debugging-charm-hooks

root@lab-mrs-cp1:/var/lib/juju/agents/unit-rabbitmq-server-0/charm# ./hooks/ceph-relation-changed
Error EACCES: access denied
Traceback (most recent call last):
  File "./hooks/ceph-relation-changed", line 974, in <module>
    hooks.execute(sys.argv)
  File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/charmhelpers/core/hookenv.py", line 945, in execute
    self._hooks[hook_name]()
  File "./hooks/ceph-relation-changed", line 623, in ceph_changed
    ceph.create_pool(service=SERVICE_NAME, name=POOL_NAME,
  File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/charmhelpers/contrib/storage/linux/ceph.py", line 1399, in create_pool
    check_call(cmd)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ceph', '--id', 'rabbitmq-server', 'osd', 'pool', 'create', 'rabbitmq-server', '1200']' returned non-zero exit status 13.

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.