'admin' client name is hardcoded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charms.ceph |
Triaged
|
Low
|
Unassigned |
Bug Description
'admin' client name is hardcoded here (`svc = 'admin'`):
https:/
This creates a problem when a ceph charm (e.g. ceph-radosgw) is related with ceph-proxy (instead of ceph-mon) and ceph-proxy charm is configured with `admin-user` different than 'client.admin'.
As a result, ceph commands run on ceph-proxy unit fail, because ceph-proxy is using different client than 'admin', e.g. 'my-ceph-
unit-ceph-proxy-1: 12:27:47 ERROR unit.ceph-
Steps to reproduce:
```
# Deploy ceph-radosgw and ceph-proxy
juju deploy ceph-radosgw \
--config source=
juju deploy ceph-proxy \
--config source=
# Configure ceph-proxy with custom admin-user
juju config ceph-proxy \
fsid=
admin-
admin-
monitor-
# Relate ceph-radosgw and ceph-proxy
juju add-relation ceph-proxy:radosgw ceph-radosgw:mon
```
ceph-radosgw unit will be stuck in blocked workload state with message "Services not running that should be: <email address hidden>". And in the debug-log for ceph-proxy unit you'll see the error message mentioned earlier.
Changed in charms.ceph: | |
status: | New → Triaged |
importance: | Undecided → Low |