@Icey I'm able to deploy your ceph-mon charm at 8c1ef1d on 1.25 with my above patch.
However, you'll get a hook error in collect-metrics. This patch to your charm should fix it:
ubuntu@juju-125-dev:~/trusty/charm-ceph-mon$ git diff diff --git a/hooks/ceph_hooks.py b/hooks/ceph_hooks.py index 59b1c9c..8f49ccc 100755 --- a/hooks/ceph_hooks.py +++ b/hooks/ceph_hooks.py @@ -140,7 +140,7 @@ def collect_metrics(): cluster = rados.Rados(conffile='/etc/ceph/ceph.conf') cluster.connect(timeout=60) # 1 minute timeout log("Gathering pool stats") - version = rados.version() + version = cluster.version() pools = cluster.list_pools() kb_used = 0 for pool in pools:
@Icey
I'm able to deploy your ceph-mon charm at 8c1ef1d on 1.25 with my above patch.
However, you'll get a hook error in collect-metrics. This patch to your charm should fix it:
ubuntu@ juju-125- dev:~/trusty/ charm-ceph- mon$ git diff ceph_hooks. py b/hooks/ ceph_hooks. py ceph_hooks. py ceph_hooks. py
cluster = rados.Rados( conffile= '/etc/ceph/ ceph.conf' )
cluster. connect( timeout= 60) # 1 minute timeout
log( "Gathering pool stats") list_pools( )
kb_ used = 0
diff --git a/hooks/
index 59b1c9c..8f49ccc 100755
--- a/hooks/
+++ b/hooks/
@@ -140,7 +140,7 @@ def collect_metrics():
- version = rados.version()
+ version = cluster.version()
pools = cluster.
for pool in pools: