From 2c3427e569cabd5578ab2a687a045d5f309fa012 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 ac0952317..f99c4b4d9 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.47.3