From e6085f7e6231db3ab523ff1aa1366aebd61eb2e0 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Fri, 21 Aug 2015 00:57:56 +0200 Subject: [PATCH] openstack: teuthology.init needs credentials to nuke And it cannot assume it is running from the home directory of the user although it's the case most of the time. Signed-off-by: Loic Dachary --- teuthology/openstack/openstack-teuthology.init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/openstack/openstack-teuthology.init b/teuthology/openstack/openstack-teuthology.init index ac0952317c..f99c4b4d91 100755 --- a/teuthology/openstack/openstack-teuthology.init +++ b/teuthology/openstack/openstack-teuthology.init @@ -44,6 +44,8 @@ case $1 in su - -c "cd /home/$user/pulpito ; virtualenv/bin/python run.py" $user > /var/log/pulpito.log 2>&1 & sleep 3 ( + cd /home/$user + source openrc.sh cd teuthology . virtualenv/bin/activate teuthology-lock --list-targets --owner scheduled_$user@teuthology > /tmp/t -- 2.39.5