From 3b7905fb1bba8b641bb3028154dc3d90e7b0d12d Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 26 Jul 2020 18:18:35 +0200 Subject: Print data to debug ServerActionsTestJSON.test_reboot_server_hard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib3142be2d6f04315c51831d06e35cc086223603e Signed-off-by: Cédric Ollivier --- docker/core/Create-new-server-test_reboot_server_hard.patch | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker/core/Create-new-server-test_reboot_server_hard.patch b/docker/core/Create-new-server-test_reboot_server_hard.patch index f7bebf6e4..f0b1d0f6a 100644 --- a/docker/core/Create-new-server-test_reboot_server_hard.patch +++ b/docker/core/Create-new-server-test_reboot_server_hard.patch @@ -1,4 +1,4 @@ -From ae89f3507b1c84d3915e4e1d9d5854f11e5bab85 Mon Sep 17 00:00:00 2001 +From ef7c7d80cb8f28743dbb4c10fbb4b0679f84426a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Ollivier?= Date: Tue, 21 Jul 2020 13:28:50 +0200 Subject: [PATCH] Create new server test_reboot_server_hard @@ -15,11 +15,11 @@ between all tempest tests. Change-Id: I203562f686b004094e5e18858004b7a2d26567a6 Signed-off-by: Cédric Ollivier --- - tempest/api/compute/servers/test_server_actions.py | 11 ++++++++++- - 1 file changed, 10 insertions(+), 1 deletion(-) + tempest/api/compute/servers/test_server_actions.py | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tempest/api/compute/servers/test_server_actions.py b/tempest/api/compute/servers/test_server_actions.py -index d477be0eb..2e453b620 100644 +index d477be0eb..c80c0ab05 100644 --- a/tempest/api/compute/servers/test_server_actions.py +++ b/tempest/api/compute/servers/test_server_actions.py @@ -46,6 +46,7 @@ class ServerActionsTestJSON(base.BaseV2ComputeTest): @@ -47,13 +47,15 @@ index d477be0eb..2e453b620 100644 linux_client = remote_client.RemoteClient( self.get_server_ip(server, validation_resources), self.ssh_user, -@@ -122,7 +126,12 @@ class ServerActionsTestJSON(base.BaseV2ComputeTest): +@@ -122,7 +126,14 @@ class ServerActionsTestJSON(base.BaseV2ComputeTest): validation_resources['keypair']['private_key'], server=server, servers_client=self.client) - boot_time = linux_client.get_boot_time() + try: + boot_time = linux_client.get_boot_time() ++ LOG.info("OPNFV %s", self.client.get_console_output( ++ self.server_id)['output']) + except Exception as e: + LOG.info("OPNFV %s", self.client.get_console_output( + self.server_id)['output']) -- cgit 1.2.3-korg