From: Loic Dachary Date: Thu, 20 Aug 2015 22:57:56 +0000 (+0200) Subject: openstack: teuthology.init needs credentials to nuke X-Git-Tag: 1.1.0~833^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2c3427e569cabd5578ab2a687a045d5f309fa012;p=teuthology.git 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 --- 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