roastercode / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 1 forks source link

pssh 2.1 broken #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. pssh -h hosts.txt -l root -i uptime

What is the expected output?

[darose@daroselin ~]$ pssh -h
code/admin/nagios/config/primary/demdex/demdex-hosts.txt -l root -i uptime
[1] 11:33:27 [SUCCESS] <server 1>
 16:32:49 up 90 days, 18:04,  0 users,  load average: 0.00, 0.00, 0.00
[2] 11:33:27 [SUCCESS] <server 2>
 ...

What do you see instead?

[1] 11:33:27 [SUCCESS] <server 1>
 16:32:49 up 90 days, 18:04,  0 users,  load average: 0.00, 0.00, 0.00
Traceback (most recent call last):
  File "/usr/bin/pssh", line 119, in <module>
    do_pssh(hosts, cmdline, opts)
  File "/usr/bin/pssh", line 110, in do_pssh
    manager.run()
  File "/usr/lib/python2.6/site-packages/psshlib/manager.py", line 69, in run
    self.start_tasks(writer)
  File "/usr/lib/python2.6/site-packages/psshlib/manager.py", line 113, in
start_tasks
    task.start(self.taskcount, self.iomap, writer, self.askpass_socket)
  File "/usr/lib/python2.6/site-packages/psshlib/task.py", line 84, in start
    close_fds=True, preexec_fn=os.setsid, env=environ)
  File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1115, in _execute_child
    data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB
OSError: [Errno 4] Interrupted system call

What version of the product are you using? On what operating system?

OS:  Arch Linux
system arch:  x86_64
kernel:  2.6.32.9
pssh version:  2.1
python version:  2.6.4

Please provide any additional information below.

Original issue reported on code.google.com by daro...@gmail.com on 2 Mar 2010 at 4:44

GoogleCodeExporter commented 8 years ago
Thanks for reporting this.  It looks like this is the same as issue #15.  Would 
you 
please test out the fix that is referred to there.  I would love to make sure 
it's 
tested so that I can release a fixed 2.1.1.  Thank you for your help.

Original comment by amcna...@gmail.com on 2 Mar 2010 at 6:13

GoogleCodeExporter commented 8 years ago
I'd be happy to ... but I wasn't clear from the comment trail there exactly 
what the
fix was.  Can you please point me to the patch I should apply or version of 
code I
should pull?

Original comment by daro...@gmail.com on 2 Mar 2010 at 7:09

GoogleCodeExporter commented 8 years ago
It turns out that in the last few minutes I've been able to reproduce the hang 
the 
pemerson referred to.  I'll try to get a fix shortly, and then you'll be able 
to do a 
git pull and get a working version.  In the meantime, make sure to have issue 
#15 
starred so that you get alerted when I post an update.  Thanks.

Original comment by amcna...@gmail.com on 2 Mar 2010 at 7:47

GoogleCodeExporter commented 8 years ago
Yep, I got added to issue #15 when you merged the 2 bugs.  I'll look for your 
next
post there.  Thanks!

Original comment by daro...@gmail.com on 2 Mar 2010 at 7:50