diff --git a/fuel_health/ceilometermanager.py b/fuel_health/ceilometermanager.py index e6ecc111..c28d1600 100644 --- a/fuel_health/ceilometermanager.py +++ b/fuel_health/ceilometermanager.py @@ -473,7 +473,7 @@ class CeilometerBaseTest(fuel_health.nmanager.PlatformServicesBaseClass): try: method(resource) except Exception: - LOG.exception() + LOG.exception("") @classmethod def tearDownClass(cls): diff --git a/fuel_health/cleanup.py b/fuel_health/cleanup.py index bbd93ff3..a947e6b6 100755 --- a/fuel_health/cleanup.py +++ b/fuel_health/cleanup.py @@ -190,7 +190,7 @@ def cleanup(cluster_deployment_info): LOG.info('Delete server with name {0}'.format(s.name)) manager._get_compute_client().servers.delete(s.id) except Exception: - LOG.exception() + LOG.exception("") else: LOG.info('No servers found') @@ -232,12 +232,12 @@ def _delete_it(client, log_message, name='ost1_test-', delete_type='name'): else: client.delete(item.id) except Exception: - LOG.exception() + LOG.exception("") except AttributeError: if item.display_name.startswith(name): client.delete(item) except Exception: - LOG.exception() + LOG.exception("") if __name__ == "__main__": diff --git a/fuel_health/common/ssh.py b/fuel_health/common/ssh.py index dcbc026e..e32088f8 100644 --- a/fuel_health/common/ssh.py +++ b/fuel_health/common/ssh.py @@ -169,7 +169,7 @@ class Client(object): connection = self._get_ssh_connection() connection.close() except paramiko.AuthenticationException: - LOG.exception() + LOG.exception("") return False return True diff --git a/fuel_health/nmanager.py b/fuel_health/nmanager.py index 5ef5dbd2..7ba904ff 100644 --- a/fuel_health/nmanager.py +++ b/fuel_health/nmanager.py @@ -29,42 +29,42 @@ LOG = logging.getLogger(__name__) try: import heatclient.v1.client except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Heatclient could not be imported.') try: import muranoclient.v1.client except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Muranoclient could not be imported.') try: import saharaclient.client except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Sahara client could not be imported.') try: import ceilometerclient.v2.client except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Ceilometer client could not be imported.') try: import neutronclient.neutron.client except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Neutron client could not be imported.') try: import glanceclient except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Glance client could not be imported') try: import ironicclient except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Ironic client could not be imported') try: import muranoclient.glance.client as art_client except Exception: - LOG.exception() + LOG.exception("") LOG.warning('Artifacts client could not be imported') import aodhclient.client @@ -511,7 +511,7 @@ class OfficialClientTest(fuel_health.test.TestCase): .format(image=self.manager.config.compute.image_name) ) except nova_exc.ClientException: - LOG.exception() + LOG.exception("") self.fail("Image can not be retrieved. " "Please refer to OpenStack logs for more details") @@ -614,7 +614,7 @@ class NovaNetworkScenarioTest(OfficialClientTest): timeout=self.timeout) return sshclient.exec_longrun_command(cmd) except Exception: - LOG.exception() + LOG.exception("") self.fail("%s command failed." % cmd) def _create_keypair(self, client, namestart='ost1_test-keypair-smoke-'): @@ -665,7 +665,7 @@ class NovaNetworkScenarioTest(OfficialClientTest): try: client.security_group_rules.create(secgroup.id, **ruleset) except Exception: - LOG.exception() + LOG.exception("") self.fail("Failed to create rule in security group.") return secgroup @@ -803,7 +803,7 @@ class NovaNetworkScenarioTest(OfficialClientTest): try: client.servers.add_floating_ip(server, floating_ip) except Exception: - LOG.exception() + LOG.exception("") self.fail('Can not assign floating ip to instance') @classmethod @@ -829,7 +829,7 @@ class NovaNetworkScenarioTest(OfficialClientTest): key_filename=self.key, timeout=timeout) except Exception: - LOG.exception() + LOG.exception("") return self.retry_command(retries=retries[0], timeout=retries[1], @@ -860,7 +860,7 @@ class NovaNetworkScenarioTest(OfficialClientTest): timeout=timeout) except Exception: - LOG.exception() + LOG.exception("") command = "ping -q -c1 -w10 8.8.8.8" @@ -891,7 +891,7 @@ class NovaNetworkScenarioTest(OfficialClientTest): LOG.debug('Host is {0}'.format(host)) except Exception: - LOG.exception() + LOG.exception("") return self.retry_command(retries[0], retries[1], ssh.exec_command_on_vm, diff --git a/fuel_health/tests/sanity/test_sanity_infrastructure.py b/fuel_health/tests/sanity/test_sanity_infrastructure.py index 1144312e..e9f0fa7e 100644 --- a/fuel_health/tests/sanity/test_sanity_infrastructure.py +++ b/fuel_health/tests/sanity/test_sanity_infrastructure.py @@ -82,7 +82,7 @@ class SanityInfrastructureTest(nmanager.SanityChecksTest): 'Step 2 failed: Some nova services have not been started.') except Exception: LOG.info("Will sleep for 120 seconds and try again") - LOG.exception() + LOG.exception("") time.sleep(120) # Re-collect data silently output = get_controllers_down_states() diff --git a/fuel_health/tests/smoke/test_user_create.py b/fuel_health/tests/smoke/test_user_create.py index 9eeb5ac9..5f99967e 100644 --- a/fuel_health/tests/smoke/test_user_create.py +++ b/fuel_health/tests/smoke/test_user_create.py @@ -128,6 +128,6 @@ class TestUserTenantRole(nmanager.SmokeChecksTest): "logs for more details.", failed_step=9) except Exception: - LOG.exception() + LOG.exception("") self.fail("Step 10 failed: Can not authenticate in Horizon. " "Please refer to OpenStack logs for more details.") diff --git a/fuel_health/tests/smoke/test_vcenter.py b/fuel_health/tests/smoke/test_vcenter.py index ab61f254..015f7dec 100644 --- a/fuel_health/tests/smoke/test_vcenter.py +++ b/fuel_health/tests/smoke/test_vcenter.py @@ -227,7 +227,7 @@ class TestVcenter(nmanager.NovaNetworkScenarioTest): if addr.startswith('novanetwork'): instance_ip = server.addresses[addr][0]['addr'] except Exception: - LOG.exception() + LOG.exception("") self.fail("Step 3 failed: cannot get instance details. " "Please refer to OpenStack logs for more details.") @@ -285,7 +285,7 @@ class TestVcenterImageAction(nmanager.SmokeChecksTest): if e.__class__.__name__ == 'NotFound': return True self.error_msg.append(e) - LOG.exception() + LOG.exception("") return False # Block until resource deletion has completed or timed-out