From 7adb69563b8f4a850686feed704f565bcf58a588 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 16 Jun 2014 10:05:57 -0400 Subject: [PATCH] Make test_snapshot_pattern ssh error path work When validation was added to all ssh connections this means that the exception handling code around ssh connections was actually run, a bug was fixed in the exception logging for test_snapshot_pattern. It also reraises the error so we know that the failure was caused by the ssh connection Change-Id: Iadccef5046e8884fce54ba2cea591a6e86a8b318 --- tempest/scenario/test_snapshot_pattern.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tempest/scenario/test_snapshot_pattern.py b/tempest/scenario/test_snapshot_pattern.py index ab335e23c0..d41490a36e 100644 --- a/tempest/scenario/test_snapshot_pattern.py +++ b/tempest/scenario/test_snapshot_pattern.py @@ -49,8 +49,9 @@ class TestSnapshotPattern(manager.OfficialClientTest): try: return self.get_remote_client(server_or_ip) except Exception: - LOG.exception() + LOG.exception('Initializing SSH connection failed') self._log_console_output() + raise def _write_timestamp(self, server_or_ip): ssh_client = self._ssh_to_server(server_or_ip)