Use Cinder API v2
Change-Id: I2f75b8d11abcc938cff8fbf2662954a98a420ba1
diff --git a/collectd/files/plugin/openstack_cinder.py b/collectd/files/plugin/openstack_cinder.py
index 8211f71..880e082 100644
--- a/collectd/files/plugin/openstack_cinder.py
+++ b/collectd/files/plugin/openstack_cinder.py
@@ -37,7 +37,7 @@
def itermetrics(self):
- volumes_details = self.get_objects('cinder', 'volumes',
+ volumes_details = self.get_objects('cinderv2', 'volumes',
params={'all_tenants': 1},
detail=True)
@@ -66,7 +66,7 @@
'values': size
}
- snaps_details = self.get_objects('cinder', 'snapshots',
+ snaps_details = self.get_objects('cinderv2', 'snapshots',
params={'all_tenants': 1})
status_snaps = self.count_objects_group_by(snaps_details,
group_by_func=groupby)