From d2fa3a6354f278061c22b49b080954bfc0d6dd52 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 6 Nov 2018 11:51:08 -0800 Subject: [PATCH] Sudo is needed to copy logs We're not capturing the logs as we likely can't copy the contents of the folder. So lets use sudo to exec the cp command, and for good measure we'll pull a list in case there just is nothing present to be uploaded for logs Change-Id: I73ad58037518e6d334efe0bad99458a2fabfc047 --- scripts/collect-test-info.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/collect-test-info.sh b/scripts/collect-test-info.sh index b522c7272..c0bf4579a 100755 --- a/scripts/collect-test-info.sh +++ b/scripts/collect-test-info.sh @@ -57,7 +57,8 @@ for vm in $(openstack baremetal node list -c Name -f value); do done if [ -d "/var/log/ironic" ]; then - cp -a "/var/log/ironic" ${LOG_LOCATION}/ipa-logs + sudo cp -a "/var/log/ironic" ${LOG_LOCATION}/ipa-logs + ls -la ${LOG_LOCATION}/ipa-logs fi sudo vbmc list &> ${LOG_LOCATION}/vbmc.txt