From b2d45e5b87632205c848ab50b3629405ed90207a Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Thu, 19 Mar 2020 12:23:41 +0100 Subject: [PATCH] CI: Add instance console log to test-core-openstack.sh Sometimes ping & ssh to the instance are failing - outputting instance console log can help in the case when there are metadata access issues (or other issues). Change-Id: I8437300d621448782e964d877b2614ca606f5849 --- tests/test-core-openstack.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-core-openstack.sh b/tests/test-core-openstack.sh index 7208c4a7ce..01c83aa806 100755 --- a/tests/test-core-openstack.sh +++ b/tests/test-core-openstack.sh @@ -82,6 +82,8 @@ function test_instance_boot { break elif [[ $i -eq ${attempts} ]]; then echo "Failed to access server via SSH after ${attempts} attempts" + echo "Console log:" + openstack console log show kolla_boot_test return 1 else echo "Cannot access server - retrying"