remove ceph code
[stor4nfv.git] / src / ceph / src / script / subman
diff --git a/src/ceph/src/script/subman b/src/ceph/src/script/subman
deleted file mode 100755 (executable)
index 8ad7d76..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-
-import json
-import os
-import re
-import subprocess
-
-disks = json.loads(subprocess.check_output("ceph-disk list --format json", shell=True))
-used = 0
-
-for disk in disks:
-    for partition in disk.get('partition', []):
-        if partition.get('type') == 'data':
-            df = subprocess.check_output("df --output=used " + partition['path'], shell=True)
-            used += int(re.findall('\d+', df)[0])
-
-facts_file = os.environ.get("CEPH_FACTS_FILE", "/etc/rhsm/facts/ceph_usage.facts")
-open(facts_file, 'w').write("""\
-{
-"band.storage.usage": {used}
-}
-""".replace('{used}', str(int(used/(1024*1024*1024)))))