client-relation-joined fails when relating ceph-proxy to gnocchi or nova-compute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceph-Proxy Charm |
Fix Released
|
High
|
Chris MacNaughton |
Bug Description
Relating gnocchi (or nova-compute) with ceph-proxy ends up with ceph-proxy in error state due to failed client-
unit-ceph-proxy-0: 23:24:56 WARNING unit.ceph-
unit-ceph-proxy-0: 23:24:56 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:56 WARNING unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 INFO unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 WARNING unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 DEBUG unit.ceph-
unit-ceph-proxy-0: 23:24:57 ERROR juju.worker.
DEPLOYMENT
bionic-stein
CHARM REVISIONS
ceph-proxy: Revision 26
gnocchi: Revision 32, Version 4.3.2
ADDITIONAL INFORMATION
I have added a few debug printouts in client-
relid: None
unit: None
units: ['gnocchi/2']
settings: {'broker_req': '{"api-version": 1, "ops": [{"op": "create-pool", "name": "gnocchi", "replicas": 3, "pg_num": null, "weight": null, "group": null, "group-namespace": null, "app-name": null, "max-bytes": null, "max-objects": null}], "request-id": "79847532-
The code fails because 'settings' is not None and 'unit' is None.
When applied the following patch, the relation has been successfully executed:
diff --git a/ceph_
index a637ff6..ab126d8 100755
--- a/ceph_
+++ b/ceph_hooks.py
@@ -206,7 +206,7 @@ def client_
if 'broker_req' in settings:
- unit_id = unit.replace('/', '-')
+ unit_id = units[0]
summary: |
- client-relation-joined fails when relating ceph-proxy to gnocchi + client-relation-joined fails when relating ceph-proxy to gnocchi or + nova-compute |
description: | updated |
Changed in charm-ceph-proxy: | |
status: | New → Confirmed |
Changed in charm-ceph-proxy: | |
importance: | Undecided → High |
Changed in charm-ceph-proxy: | |
milestone: | none → 20.02 |
status: | In Progress → Fix Committed |
Changed in charm-ceph-proxy: | |
status: | Fix Committed → Fix Released |
Hi, we are seeing the same issue with ceph-proxy: https:/ /pastebin. canonical. com/p/WTcf7s6Pw 5/