]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: teuthology.init needs credentials to nuke
authorLoic Dachary <ldachary@redhat.com>
Thu, 20 Aug 2015 22:57:56 +0000 (00:57 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 2 Sep 2015 22:02:39 +0000 (00:02 +0200)
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 <loic@dachary.org>
teuthology/openstack/openstack-teuthology.init

index ac0952317c034985962100ba7fa66c3459fcb9e3..f99c4b4d91b874ec39a8f5fe3b101ee79237fe2e 100755 (executable)
@@ -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