From 5703f5f0d22fbd0b1cae73936b28d1a8e69ff2e7 Mon Sep 17 00:00:00 2001 From: Yasemin Demiral Date: Thu, 13 Jul 2017 10:56:12 +0300 Subject: [PATCH] Use 'sudo' to access /etc/sysconfig/heat-params The patch https://review.openstack.org/#/c/437048/ changed the permission of /etc/sysconfig/heat-params to 600, so non-file owners would require use of 'sudo' in order to access the file. This patch fixes it Closes-Bug: #1704076 Change-Id: I8bb4a12deb92fa5035bbbb8fc6ce4736ed99ea78 --- magnum/tests/contrib/copy_instance_logs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magnum/tests/contrib/copy_instance_logs.sh b/magnum/tests/contrib/copy_instance_logs.sh index bec1b59..0f953fd 100755 --- a/magnum/tests/contrib/copy_instance_logs.sh +++ b/magnum/tests/contrib/copy_instance_logs.sh @@ -75,7 +75,7 @@ if [[ "$COE" == "kubernetes" ]]; then remote_exec $SSH_USER "sudo netstat -an" netstat.log remote_exec $SSH_USER "sudo df -h" dfh.log remote_exec $SSH_USER "sudo journalctl -u wc-notify --no-pager" wc-notify.log - remote_exec $SSH_USER "cat /etc/sysconfig/heat-params" heat-params + remote_exec $SSH_USER "sudo cat /etc/sysconfig/heat-params" heat-params elif [[ "$COE" == "swarm" ]]; then SSH_USER=fedora remote_exec $SSH_USER "sudo systemctl --full list-units --no-pager" systemctl_list_units.log @@ -106,7 +106,7 @@ elif [[ "$COE" == "swarm" ]]; then remote_exec $SSH_USER "sudo ip a" ipa.log remote_exec $SSH_USER "sudo netstat -an" netstat.log remote_exec $SSH_USER "sudo df -h" dfh.log - remote_exec $SSH_USER "cat /etc/sysconfig/heat-params" heat-params + remote_exec $SSH_USER "sudo cat /etc/sysconfig/heat-params" heat-params else echo "ERROR: Unknown COE '${COE}'" EXIT_CODE=1