Comment 2 for bug 1639855

Revision history for this message
Casey Marshall (cmars) wrote :

@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: