Merge "Replaces call to Gnocchi status for a request of metric list when determining...
authordiazb <bdiaz@whitestack.com>
Wed, 4 Sep 2019 18:26:12 +0000 (20:26 +0200)
committerGerrit Code Review <root@osm.etsi.org>
Wed, 4 Sep 2019 18:26:12 +0000 (20:26 +0200)
osm_mon/collector/vnf_collectors/openstack.py

index f63d0b2..58721a9 100644 (file)
@@ -122,7 +122,7 @@ class OpenstackCollector(BaseVimCollector):
             return ceilometer
         except EndpointNotFound:
             gnocchi = GnocchiBackend(vim_account)
-            gnocchi.client.status.get()
+            gnocchi.client.metric.list(limit=1)
             return gnocchi
 
     def _get_metric_type(self, metric_name: str, interface_name: str) -> MetricType: