On 12/13/2013 04:27 AM, Mathias Bogaert wrote:
Hi,

For some reason my Hadoop Ansible Playbook fails when using accelerated mode on Travis CI:

https://travis-ci.org/analytically/hadoop-ansible

fatal: [hmaster01] => Traceback (most recent call last):
File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/ansible/runner/__init__.py", line 394, in _executor
    exec_rc = self._executor_internal(host, new_stdin)
File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/ansible/runner/__init__.py", line 485, in _executor_internal return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/ansible/runner/__init__.py", line 663, in _executor_internal_inner conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file) File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/ansible/runner/connection.py", line 36, in connect conn = utils.plugins.connection_loader.get(transport, self.runner, host, port, user=user, password=password, private_key_file=private_key_file) File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/ansible/utils/plugins.py", line 177, in get return getattr(self._module_cache[path], self.class_name)(*args, **kwargs) File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/ansible/runner/connection_plugins/accelerate.py", line 48, in __init__
    self.key = utils.key_for_hostname(host)
File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/ansible/utils/__init__.py", line 92, in key_for_hostname
    os.makedirs(key_path)
File "/home/travis/virtualenv/python2.6/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/home/travis/.fireball.keys'

I've explicity deleted this file before Ansible runs:
ansible-playbook -i hosts --extra-vars "authorized_rsa_key='$(cat travis.ssh.pub)'" -u root bootstrap/bootstrap.yml

Any idea anyone?

Cheers,

Mathias

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


This is the codeblock where the directory is created ...

    key_path = os.path.expanduser("~/.fireball.keys")
    if not os.path.exists(key_path):
        os.makedirs(key_path)

Once the traceback occurs, does the directory actually exist?

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to