sensors refactored
diff --git a/wally/ceph.py b/wally/ceph.py
index cbb4740..592d595 100644
--- a/wally/ceph.py
+++ b/wally/ceph.py
@@ -28,7 +28,11 @@
"""Get set of osd's ip"""
data = node.run("ceph -c {} -k {} --format json osd dump".format(conf, key))
- jdata = json.loads(data)
+ try:
+ jdata = json.loads(data)
+ except:
+ open("/tmp/ceph-out.json", "w").write(data)
+ raise
ips = {} # type: Dict[IP, List[OSDInfo]]
first_error = True
for osd_data in jdata["osds"]:
@@ -56,6 +60,7 @@
osd_data_path = line.split("=")[1].strip()
if osd_data_path is None or osd_journal_path is None:
+ open("/tmp/ceph-out.json", "w").write(osd_cfg)
logger.error("Can't detect osd %s journal or storage path", osd_id)
raise StopTestError()