From be17146943bc8af588dce095a62505cfe4d8614d Mon Sep 17 00:00:00 2001 From: Marcin Piwowarczyk Date: Fri, 26 Oct 2018 20:21:19 +0200 Subject: [PATCH] Fix home direcroty path in trovestack script This simple fix solves "no such file or directory" error when user home directory is not prefixed by /home. This is the case, for example in devstack, where stack user home is set to /opt/stack/. Lets use $HOME variable to determine user home location. Change-Id: I07432d27e1a2035296bc62793fecbe13d0265e7b Signed-off-by: Marcin Piwowarczyk --- integration/scripts/trovestack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/scripts/trovestack b/integration/scripts/trovestack index 7495b2099a..a060e99788 100755 --- a/integration/scripts/trovestack +++ b/integration/scripts/trovestack @@ -1341,7 +1341,7 @@ function cmd_gate_tests() { TROVESTACK_DUMP_ENV=true # Devstack vm-gate runs as a non-ubuntu user, but needs to connect to the guest image as ubuntu - echo "User=ubuntu" >> /home/$USER/.ssh/config + echo "User=ubuntu" >> $HOME/.ssh/config # Fix iptables rules that prevent amqp connections from the devstack box to the guests sudo iptables -D openstack-INPUT -j REJECT --reject-with icmp-host-prohibited || true