Changes openstack vim status check to use nova to allow non admin users in config 09/7609/3
authorBenjamin Diaz <bdiaz@whitestack.com>
Tue, 4 Jun 2019 13:55:18 +0000 (10:55 -0300)
committerdiazb <bdiaz@whitestack.com>
Thu, 6 Jun 2019 20:26:04 +0000 (21:26 +0100)
Change-Id: I1cdfeac879580a61e0211e869785c737763cd310
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
osm_mon/collector/infra_collectors/base_osinfra.py

index 278cc20..afbf245 100644 (file)
@@ -76,7 +76,7 @@ class BaseOpenStackInfraCollector(BaseVimInfraCollector):
 
     def is_vim_ok(self) -> bool:
         try:
-            self.keystone.projects.list()
+            self.nova.servers.list()
             return True
         except Exception:
             log.exception("VIM status is not OK!")