You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Oleg Suharev (JIRA)" <ji...@apache.org> on 2014/01/10 13:17:51 UTC

[jira] [Updated] (LIBCLOUD-491) ParamikoSSHClient don't show stdout/stderr when run fast commands

     [ https://issues.apache.org/jira/browse/LIBCLOUD-491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Suharev updated LIBCLOUD-491:
----------------------------------

    Description: 
Hello

Commit a053cde create a big trouble in ParamikoSSHClien.run method. When I run 'fast' commands (for example uname -a) this method doesn't return stdout/stderr, because code
{code}
while not chan.exit_status_ready():
            if chan.recv_ready():
{code}
doesn't run since chan.exit_status_ready() already return True (in first call)
[~kami] please fix this trouble.

{code}
In [1]: from libcloud.compute.ssh import SSHClient

In [2]: client = SSHClient('54.204.157.243', key='/Users/user/mykey.pem')

In [3]: client.connect()
Out[3]: True

In [4]: client.run('uname -a')
Out[4]: ['', '', 0]

{code}

  was:
Hello

Commit a053cde create a big trouble in ParamikoSSHClien.run method. When I run 'fast' commands (for example uname -a) this method doesn't return stdout/stderr, because code
{code}
while not chan.exit_status_ready():
            if chan.recv_ready():
{code}
doesn't run since chan.exit_status_ready() already return True (in first call)
[~kami] please fix this trouble.

{code}
In [1]: from libcloud.compute.ssh import SSHClient

In [2]: client = SSHClient('54.204.157.243', key='/Users/gigimon/.revizor/keys/farm-7644_us-east-1-ec2.pem')

In [3]: client.connect()
Out[3]: True

In [4]: client.run('uname -a')
Out[4]: ['', '', 0]

{code}


> ParamikoSSHClient don't show stdout/stderr when run fast commands
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-491
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-491
>             Project: Libcloud
>          Issue Type: Bug
>            Reporter: Oleg Suharev
>            Priority: Critical
>
> Hello
> Commit a053cde create a big trouble in ParamikoSSHClien.run method. When I run 'fast' commands (for example uname -a) this method doesn't return stdout/stderr, because code
> {code}
> while not chan.exit_status_ready():
>             if chan.recv_ready():
> {code}
> doesn't run since chan.exit_status_ready() already return True (in first call)
> [~kami] please fix this trouble.
> {code}
> In [1]: from libcloud.compute.ssh import SSHClient
> In [2]: client = SSHClient('54.204.157.243', key='/Users/user/mykey.pem')
> In [3]: client.connect()
> Out[3]: True
> In [4]: client.run('uname -a')
> Out[4]: ['', '', 0]
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)