Accelerate mode syntax error on CentOS 5

I’m trying to switch to accelerate mode and I’m having trouble with my CentOS 5 clients (5.9 to be exact). I’m using the Ansible 1.3 release.

It works ok for CentOS 6 clients, but for CentOS 5 I get the following:

GATHERING FACTS ***************************************************************

Could not connect via the accelerated connection, exceeded # of tries

Falling back to ssh to startup accelerated mode

<sc-scm-ansible-stage-p4-master-01.nvidia.com> ESTABLISH CONNECTION FOR USER: root

<sc-scm-ansible-stage-p4-master-01.nvidia.com> EXEC [‘ssh’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘ConnectTimeout=10’, ‘sc-scm-ansible-stage-p4-master-01.nvidia.com’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-1383195186.22-26936431543476 && echo $HOME/.ansible/tmp/ansible-1383195186.22-26936431543476’”]

<sc-scm-ansible-stage-p4-master-01.nvidia.com> PUT /tmp/tmpHCXGuy TO /root/.ansible/tmp/ansible-1383195186.22-26936431543476/accelerate

<sc-scm-ansible-stage-p4-master-01.nvidia.com> EXEC [‘ssh’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘ConnectTimeout=10’, ‘sc-scm-ansible-stage-p4-master-01.nvidia.com’, “/bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-1383195186.22-26936431543476/accelerate; rm -rf /root/.ansible/tmp/ansible-1383195186.22-26936431543476/ >/dev/null 2>&1’”]

fatal: [sc-scm-ansible-stage-p4-master-01.nvidia.com] => failed to parse: File “/root/.ansible/tmp/ansible-1383195186.22-26936431543476/accelerate”, line 164

data = b""

^

SyntaxError: invalid syntax

This of course does not happen if I turn accelerate mode off. What am I missing?

Thanks!
Kevin

Could you please open an issue for this on github? That is syntax specific to python 2.6, which I will remove (it’s not really doing much of anything right now).

Thanks!

Thanks James, I’ve opened issue #4739.

Thanks!