Fix that required tests are skipped 39/61239/2
authorToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
Wed, 22 Aug 2018 08:47:30 +0000 (08:47 +0000)
committerToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
Tue, 25 Sep 2018 08:25:00 +0000 (08:25 +0000)
Because the service running flags of Gnocchi and Aodh
are overwritten in the loop of the compute node, once the flag
become false, the tests on all subsequent nodes are skipped.
This change makes to use new flags for each compute node.

Change-Id: Idc807419151b34b29f0117c9a7708a16a20d70dd
Signed-off-by: Toshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
baro_tests/collectd.py

index 922403f..a476e48 100644 (file)
@@ -793,15 +793,15 @@ def main(bt_logger=None):
         compute_node_names.append(node_name)
         plugins_to_enable = []
         error_plugins = []
-        gnocchi_running = (
+        gnocchi_running_com = (
             gnocchi_running and conf.check_gnocchi_plugin_included(
                 compute_node))
-        aodh_running = (
+        aodh_running_com = (
             aodh_running and conf.check_aodh_plugin_included(compute_node))
         # logger.info("SNMP enabled on {}" .format(node_name))
-        if gnocchi_running:
+        if gnocchi_running_com:
             out_plugins[node_id].append("Gnocchi")
-        if aodh_running:
+        if aodh_running_com:
             out_plugins[node_id].append("AODH")
         if snmp_running:
             out_plugins[node_id].append("SNMP")