Github user serg38 commented on the issue:

    https://github.com/apache/cloudstack/pull/1660
  
    Also we wrote a tester for SshHelper.sshExecute method. It was returning 
output of SSHexecute command as it gets received by sshExecute. Here they are 
100 sequential runs (success if result is 100) :
    Before the fix:
    
    [root@ussarlabcsmgt41 t_vazqnadmin]# for i in `seq 1 100`;do curl 
"http://10.144.31.41:8096/client/api?command=testNicoSSHCommand&hostip=10.140.32.220&sshcommand=echo%20success";
 2>/dev/null|head -1|grep success;done|wc -l
    ## **58**
    
    [root@ussarlabcsmgt41 t_vazqnadmin]# for i in `seq 1 100`;do curl 
"http://10.144.31.41:8096/client/api?command=testNicoSSHCommand&hostip=10.140.32.220&sshcommand=pwd";
 2>/dev/null|head -1|grep '/root';done|wc -l
    ## **49**
    
    [root@ussarlabcsmgt41 t_vazqnadmin]# for i in `seq 1 100`;do curl 
"http://10.144.31.41:8096/client/api?command=testNicoSSHCommand&hostip=10.140.32.220&sshcommand=ls%20/proc/sys/net/ipv4/conf";
 2>/dev/null|grep eth;done|wc -l
    ## **0**
    
    
    After the fix:
    [root@ussarlabcsmgt41 t_vazqnadmin]# for i in `seq 1 100`;do curl 
"http://10.144.31.41:8096/client/api?command=testNicoSSHCommand&hostip=10.140.32.220&sshcommand=echo%20success";
 2>/dev/null|head -1|grep success;done|wc -l
    ## **100**
     
     
    [levitssadmin@ussclpdadubh001 ~]$ for i in `seq 1 100`;do curl 
"http://10.144.31.41:8096/client/api?command=testNicoSSHCommand&hostip=10.140.32.220&sshcommand=pwd";
 2>/dev/null|head -1|grep '/root';done|wc -l
    ## **100**
     
    [root@ussarlabcsmgt41 t_vazqnadmin]# for i in `seq 1 100`;do curl 
"http://10.144.31.41:8096/client/api?command=testNicoSSHCommand&hostip=10.140.32.220&sshcommand=ls%20/proc/sys/net/ipv4/conf";
 2>/dev/null|grep eth0;done|wc -l
    ## **100**


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to