[Buildbot] #3132: ansible-pull STILL doesn't run from cron
Buildbot trac
trac at buildbot.net
Thu Jan 1 00:34:12 UTC 2015
#3132: ansible-pull STILL doesn't run from cron
----------------------------+-------------------------
Reporter: dustin | Owner:
Type: support-request | Status: new
Priority: blocker | Milestone: sys - other
Version: | Keywords:
----------------------------+-------------------------
bleargh:
---
$ env -i sh -c
'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/bbinfra/bin
ansible-pull -C master -d /home/bbinfra/repo/ -m git -U
git://github.com/buildbot/buildbot-infra -o -i localhost --vault-
password-file=/home/bbinfra/.vault-password local.yml'
Starting ansible-pull at 2015-01-01 00:17:07
localhost | FAILED => Authentication or permission failure. In some
cases, you may have been able to authenticate and did not have permissions
on the remote directory. Consider changing the remote temp path in
ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1420071428.02-32417186433216 && chmod a+rx
$HOME/.ansible/tmp/ansible-tmp-1420071428.02-32417186433216 && echo
$HOME/.ansible/tmp/ansible-tmp-1420071428.02-32417186433216, exited with
result 1
---
(reproduced with 'env' since cronspam doesn't go anywhere - #3131)
Adding HOME=..:
{{{
$ env -i sh -c 'HOME=/home/bbinfra
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/bbinfra/bin
ansible-pull -C master -d /home/bbinfra/repo/ -m git -U
git://github.com/buildbot/buildbot-infra -o -i localhost --vault-
password-file=/home/bbinfra/.vault-password local.yml'
Starting ansible-pull at 2015-01-01 00:23:14
localhost | FAILED >> {
"failed": true,
"msg": "/usr/local/bin/python: not found\n",
"parsed": false
}
}}}
I really thought we had the second part licked :(
It turns out, too, that `-i` uses a file if it finds a file by that name,
and otherwise just treats its input as a hostname. So we should 'cd' to
the repo directory before running ansible-pull.
--
Ticket URL: <http://trac.buildbot.net/ticket/3132>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list