I don’t know if this is a paramiko problem, or our connection implementation for it, but the SSH connection seems to handle this okay.
From running a ‘command: yum update -y’ for CentOS 5 machines on the recent upgrade, paramiko would sometimes hang indefinitely.
Checking running processes and logs on the remote host would show that the yum update completed successfully.
I believe the problem is having a large stdout returned.
(I tested on localhost dumping big randomly generated string into a file and just catting from a playbook.)
SSH spits out a buffered amount at a time, while paramiko just hangs.
(no load on either local or remote host, no disk io happening, the process is just sitting around)
Another case that may be related is an EC2 playbook for setting up cloud9.
I believe the error started showing up after I switched back to paramiko from Fireball.
The first sourcemint install (which dumps a whole lot to stdout) tends to fail.
The error message claims mismatching quotes, but the install was successful.
I thought I should bring this up in case anyone runs into similar behaviour.
I remember something similar before in the mailing list, but I couldn’t find it.
I think it was related to filesizes and paramiko??
I don't know if this is a paramiko problem, or our connection
implementation for it, but the SSH connection seems to handle this okay.
From running a 'command: yum update -y' for CentOS 5 machines on the
recent upgrade, paramiko would sometimes hang indefinitely.
Checking running processes and logs on the remote host would show that the
yum update completed successfully.
I believe the problem is having a large stdout returned.
(I tested on localhost dumping big randomly generated string into a file
and just catting from a playbook.)
SSH spits out a buffered amount at a time, while paramiko just hangs.
(no load on either local or remote host, no disk io happening, the process
is just sitting around)
Another case that may be related is an EC2 playbook for setting up cloud9.
I believe the error started showing up after I switched back to paramiko
from Fireball.
The first sourcemint install (which dumps a whole lot to stdout) tends to
fail.
The error message claims mismatching quotes, but the install was
successful.
I thought I should bring this up in case anyone runs into similar
behaviour.
I remember something similar before in the mailing list, but I couldn't
find it.
I think it was related to filesizes and paramiko??
This should be fixed on devel. Please test it again and see if it's still
an issue.
My test file for the cat playbook was 100k.
I estimated yum’s output to be about that order of magnitude, but didn’t get any real metrics on that.
(stdout size: 80 char lines * 400 pkgs * 4 iterations (install, download, verify, cleanup on each package) ~= 128k)
This is great to hear. In retrospect, this probably explains hangs we have seen from time to time, but given the fact there was no output we did not relate this to the amount of output.