Trying to switch to Accelerate and hitting two issues

Hi,

I’m trying to switch from fireball to accelerate and getting a few issues.

The first issue I’m getting is that it doesn’t appear to support the formatting of my hosts file that i’ve been using for months:

[api]

live-api2.xx ansible_ssh_host=11.22.33.44 private_ip=22.33.44.55 private_hostname=live-api2.internal.xx cron_state=absent

This generates the following error: fatal: [live-api2.xx] => host not found: 11.22.33.44

I’m able to work around the issue by replacing the line with:

live-api2.xx private_ip=22.33.44.55 private_hostname=live-api2.internal.xx cron_state=absent

and ensuring the first part fully resolves (Before this was not an issue)

The second problem is that the playbook then fails on: live-api2.xx (reason: keyczar is not installed). This leads me to believe that the variable: ansible_python_interpreter: /root/.virtualenvs/ansible/bin/python defined in the vars: section of the playbook is not working as I expect. I can work around the issue probably by just installing python-keyczar in the base python rather than a virtualenv

Cheers,

Tom

Could you open up a github issue for the first problem? That one is especially odd, since the python documentation clearly states that when an IP address is used it should not result in a DNS lookup.

For the second, you should be able to verify the daemon’s interpreter by looking at the output of “ps aux | grep python”, as the daemon should be started with the same interpreter.

Benno (@bennojoy) tracked down the first issue and I just merged in his fix for this, if you’d like to give it a try.

Hi Tom,

Can you confirm whether you fixed that by installing keyczar there on the local or remote end?

I’d expect exactly that for the local end.

Thanks!

Hello,

I’ve problems with accelerate mode too. I’m unable to use in any of my servers. I have installed kyczar in both (local and remote) and always ansible returns the same error:

PLAY [ansibletest] ************************************************************

GATHERING FACTS ***************************************************************
fatal: [ansibletest] => python-keyczar must be installed to use fireball/accelerated mode

Regards!

Are you also installing in a virtualenv?

No, the python-* packages are installed globally in the system via apt-get. Ansible uses openssh to connect to servers.

“Ansible uses openssh to connect to servers.”

And also accelerate mode, in your case above.

Please make sure it’s available on your local host too.

You might be using ansible_python_interpreter and it’s not available in that Python. Perhaps not.

In either case, maybe hop on IRC and we can help figure it out.