diff --git a/vitrage_tempest_tests/tests/api/alarms/test_alarms.py b/vitrage_tempest_tests/tests/api/alarms/test_alarms.py index 0643b0b20..a9f7470fb 100644 --- a/vitrage_tempest_tests/tests/api/alarms/test_alarms.py +++ b/vitrage_tempest_tests/tests/api/alarms/test_alarms.py @@ -46,7 +46,8 @@ class TestAlarms(BaseAlarmsTest): self._compare_alarms_lists( api_alarms, cli_alarms, AODH_DATASOURCE, utils.uni2str(instances[0].id)) - + except Exception as e: + LOG.exception(e) finally: self._delete_ceilometer_alarms() self._delete_instances() diff --git a/vitrage_tempest_tests/tests/api/datasources/test_aodh.py b/vitrage_tempest_tests/tests/api/datasources/test_aodh.py index dc0e8abd1..835489bae 100644 --- a/vitrage_tempest_tests/tests/api/datasources/test_aodh.py +++ b/vitrage_tempest_tests/tests/api/datasources/test_aodh.py @@ -54,6 +54,8 @@ class TestAodhAlarm(BaseAlarmsTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._delete_ceilometer_alarms() self._delete_instances() @@ -80,6 +82,8 @@ class TestAodhAlarm(BaseAlarmsTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._delete_ceilometer_alarms() diff --git a/vitrage_tempest_tests/tests/api/datasources/test_cinder_volume.py b/vitrage_tempest_tests/tests/api/datasources/test_cinder_volume.py index 5e4707789..1b5a821d0 100644 --- a/vitrage_tempest_tests/tests/api/datasources/test_cinder_volume.py +++ b/vitrage_tempest_tests/tests/api/datasources/test_cinder_volume.py @@ -53,5 +53,7 @@ class TestCinderVolume(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() diff --git a/vitrage_tempest_tests/tests/api/datasources/test_heat_stack.py b/vitrage_tempest_tests/tests/api/datasources/test_heat_stack.py index 4a34e0f3d..52fe3dfa3 100644 --- a/vitrage_tempest_tests/tests/api/datasources/test_heat_stack.py +++ b/vitrage_tempest_tests/tests/api/datasources/test_heat_stack.py @@ -64,6 +64,8 @@ class TestHeatStack(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._delete_stacks() diff --git a/vitrage_tempest_tests/tests/api/datasources/test_neutron.py b/vitrage_tempest_tests/tests/api/datasources/test_neutron.py index c34d4b32f..40bb22c61 100644 --- a/vitrage_tempest_tests/tests/api/datasources/test_neutron.py +++ b/vitrage_tempest_tests/tests/api/datasources/test_neutron.py @@ -61,6 +61,8 @@ class TestNeutron(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._delete_instances() diff --git a/vitrage_tempest_tests/tests/api/datasources/test_nova.py b/vitrage_tempest_tests/tests/api/datasources/test_nova.py index 381a4a58b..19d261f50 100644 --- a/vitrage_tempest_tests/tests/api/datasources/test_nova.py +++ b/vitrage_tempest_tests/tests/api/datasources/test_nova.py @@ -49,5 +49,7 @@ class TestNova(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() diff --git a/vitrage_tempest_tests/tests/api/datasources/test_static_physical.py b/vitrage_tempest_tests/tests/api/datasources/test_static_physical.py index 9cb98a191..4b7deb178 100644 --- a/vitrage_tempest_tests/tests/api/datasources/test_static_physical.py +++ b/vitrage_tempest_tests/tests/api/datasources/test_static_physical.py @@ -53,6 +53,8 @@ class TestStaticPhysical(BaseApiTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._delete_switches() diff --git a/vitrage_tempest_tests/tests/api/rca/test_rca.py b/vitrage_tempest_tests/tests/api/rca/test_rca.py index 10f43fc8d..ceefd1fd2 100644 --- a/vitrage_tempest_tests/tests/api/rca/test_rca.py +++ b/vitrage_tempest_tests/tests/api/rca/test_rca.py @@ -50,8 +50,8 @@ class TestRca(BaseRcaTest): 'vitrage rca show ' + vitrage_id, self.conf) self._compare_rca(api_rca, cli_rca) - except Exception: - LOG.error('Got exception', False) + except Exception as e: + LOG.exception(e) finally: self._clean_all() diff --git a/vitrage_tempest_tests/tests/api/topology/test_topology.py b/vitrage_tempest_tests/tests/api/topology/test_topology.py index fc6049854..decd0897a 100644 --- a/vitrage_tempest_tests/tests/api/topology/test_topology.py +++ b/vitrage_tempest_tests/tests/api/topology/test_topology.py @@ -83,6 +83,8 @@ class TestTopology(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -115,6 +117,8 @@ class TestTopology(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -145,6 +149,8 @@ class TestTopology(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -170,6 +176,8 @@ class TestTopology(BaseTopologyTest): self.num_default_entities, self.num_default_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -195,6 +203,8 @@ class TestTopology(BaseTopologyTest): self.num_default_entities, self.num_default_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -225,6 +235,8 @@ class TestTopology(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -251,6 +263,8 @@ class TestTopology(BaseTopologyTest): self.num_default_entities, self.num_default_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -282,6 +296,8 @@ class TestTopology(BaseTopologyTest): num_entities, num_edges, entities) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -330,6 +346,8 @@ class TestTopology(BaseTopologyTest): self.assertEqual( 0, len(api_graph['links']), 'num of edges') + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default() @@ -351,5 +369,7 @@ class TestTopology(BaseTopologyTest): # Test Assertions self.assertEqual({}, api_graph) + except Exception as e: + LOG.exception(e) finally: self._rollback_to_default()