Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F44810EA2 for ; Tue, 10 Sep 2013 13:25:57 +0000 (UTC) Received: (qmail 87298 invoked by uid 500); 10 Sep 2013 13:25:57 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 86839 invoked by uid 500); 10 Sep 2013 13:25:53 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 86798 invoked by uid 500); 10 Sep 2013 13:25:51 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 86790 invoked by uid 99); 10 Sep 2013 13:25:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Sep 2013 13:25:51 +0000 Date: Tue, 10 Sep 2013 13:25:51 +0000 (UTC) From: "Girish Shilamkar (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-4637) [Automation] test_egress_fw_rules.py fails with Script result is ['send: spawn id exp3 not open' ....'] is not matching with ['100'] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4637?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13763033#comment-13763033 ]=20 Girish Shilamkar commented on CLOUDSTACK-4637: ---------------------------------------------- The test failed as it requires expect installed on hosts. =20 > [Automation] test_egress_fw_rules.py fails with Script result is ['send: = spawn id exp3 not open' ....'] is not matching with ['100'] > -------------------------------------------------------------------------= ----------------------------------------------------------- > > Key: CLOUDSTACK-4637 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-463= 7 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Automation > Reporter: Girish Shilamkar > Assignee: Girish Shilamkar > Priority: Critical > > Still fails > Script result is ['send: spawn id exp3 not open', ' while executing', '"s= end "ssh -o UserKnownHostsFile=3D/dev/null -o StrictHostKeyChecking=3Dno -o= LogLevel=3Dquiet root@10.1.1.183 ping -c 1 www.google.com; exit $?', '""',= ' (file "/tmp/expect_script.exp" line 4)'] is not matching with ['100'] > -------------------- >> begin captured logging << -------------------- > testclient.testcase.TestEgressFWRules: DEBUG: Creating network with netwo= rk offering: 05d985b1-ee1c-4b04-9cee-d6c97e43032d > testclient.testcase.TestEgressFWRules: DEBUG: Created network with ID: 02= 187a7a-9afe-45ff-b9c3-069b00c731fc > testclient.testcase.TestEgressFWRules: DEBUG: Deploying instance in the a= ccount: test-B0F0Z8 > testclient.testcase.TestEgressFWRules: DEBUG: Deployed instance in accoun= t: test-B0F0Z8 > testclient.testcase.TestEgressFWRules: DEBUG: Creating Egress FW rule for= networkid=3D02187a7a-9afe-45ff-b9c3-069b00c731fc networkname=3DTest Networ= k > testclient.testcase.TestEgressFWRules: DEBUG: Created rule=3Dfe84b110-804= 2-47d3-8b72-917607ab8811 > testclient.testcase.TestEgressFWRules: DEBUG: expect_script>> > #!/usr/bin/expect > spawn ssh -o UserKnownHostsFile=3D/dev/null -o StrictHostKeyChecking=3Dno= -o LogLevel=3Dquiet -i /root/.ssh/id_rsa.cloud -p 3922 root@169.254.2.102 > expect "root@r-588-QA:~#" > send "ssh -o UserKnownHostsFile=3D/dev/null -o StrictHostKeyChecking=3Dno= -o LogLevel=3Dquiet root@10.1.1.183 ping -c 1 www.google.com; exit $? > " > expect "root@10.1.1.183's password: " > send "password > " > interact > < paramiko.transport: DEBUG: starting thread (client mode): 0x204143d0L > paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.3) > paramiko.transport: DEBUG: kex algos:['diffie-hellman-group-exchange-sha2= 56', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', '= diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client encry= pt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', '= aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes2= 56-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] server encrypt:['aes128-= ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc',= '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'ar= cfour', 'rijndael-cbc@lysator.liu.se'] client mac:['hmac-md5', 'hmac-sha1',= 'umac-64@openssh.com', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hm= ac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'umac-64@o= penssh.com', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96'= , 'hmac-md5-96'] client compress:['none', 'zlib@openssh.com'] server compre= ss:['none', 'zlib@openssh.com'] client lang:[''] server lang:[''] kex follo= ws?False > paramiko.transport: DEBUG: Ciphers agreed: local=3Daes128-ctr, remote=3Da= es128-ctr > paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server k= ey type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hm= ac-sha1, remote hmac-sha1; compression: local none, remote none > paramiko.transport: DEBUG: Switch to new keys ... > paramiko.transport: DEBUG: Adding ssh-rsa host key for 10.223.50.66: 41ae= f5f507e1ddd99077b11f4bf26553 > paramiko.transport: DEBUG: Trying discovered key 76be480fa6b8ad3b78082d6d= 19e4ee44 in /root/.ssh/id_rsa > paramiko.transport: DEBUG: userauth is OK > paramiko.transport: INFO: Authentication (publickey) failed. > paramiko.transport: DEBUG: userauth is OK > paramiko.transport: INFO: Authentication (password) successful! > sshClient: DEBUG: SSH connect: root@10.223.50.66 with passwd password > testclient.testcase.TestEgressFWRules: DEBUG: SSH client to : 10.223.50.6= 6 obtained > paramiko.transport: DEBUG: starting thread (client mode): 0x204b6b90L > paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.3) > paramiko.transport: DEBUG: kex algos:['diffie-hellman-group-exchange-sha2= 56', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', '= diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client encry= pt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', '= aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes2= 56-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] server encrypt:['aes128-= ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc',= '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'ar= cfour', 'rijndael-cbc@lysator.liu.se'] client mac:['hmac-md5', 'hmac-sha1',= 'umac-64@openssh.com', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hm= ac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'umac-64@o= penssh.com', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96'= , 'hmac-md5-96'] client compress:['none', 'zlib@openssh.com'] server compre= ss:['none', 'zlib@openssh.com'] client lang:[''] server lang:[''] kex follo= ws?False > paramiko.transport: DEBUG: Ciphers agreed: local=3Daes128-ctr, remote=3Da= es128-ctr > paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server k= ey type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hm= ac-sha1, remote hmac-sha1; compression: local none, remote none > paramiko.transport: DEBUG: Switch to new keys ... > paramiko.transport: DEBUG: Attempting password auth... > paramiko.transport: DEBUG: userauth is OK > paramiko.transport: INFO: Authentication (password) successful! > paramiko.transport: DEBUG: [chan 1] Max packet in: 34816 bytes > paramiko.transport: DEBUG: [chan 1] Max packet out: 32768 bytes > paramiko.transport: INFO: Secsh channel 1 opened. > paramiko.transport: DEBUG: [chan 1] Sesch channel 1 request ok > paramiko.transport.sftp: INFO: [chan 1] Opened sftp connection (server ve= rsion 3) > paramiko.transport.sftp: DEBUG: [chan 1] open('/tmp/expect_script.exp', '= wb') > paramiko.transport.sftp: DEBUG: [chan 1] open('/tmp/expect_script.exp', '= wb') -> 00000000 > paramiko.transport.sftp: DEBUG: [chan 1] close(00000000) > paramiko.transport.sftp: DEBUG: [chan 1] stat('/tmp/expect_script.exp') > paramiko.transport: DEBUG: [chan 1] Max packet in: 34816 bytes > paramiko.transport: DEBUG: [chan 1] Max packet out: 32768 bytes > paramiko.transport: INFO: Secsh channel 1 opened. > paramiko.transport: DEBUG: [chan 1] Sesch channel 1 request ok > paramiko.transport: DEBUG: [chan 1] EOF received (1) > paramiko.transport: DEBUG: [chan 1] EOF sent (1) > sshClient: DEBUG: > {Cmd: chmod +x /tmp/expect_script.exp via Host: 10.223.50.66} > {returns: []} > testclient.testcase.TestEgressFWRules: DEBUG: /tmp/expect_script.exp | gr= ep -oP '\d+(?=3D% packet loss)' > testclient.testcase.TestEgressFWRules: DEBUG: sleep 30 seconds for egress= rule to affect on Router. > paramiko.transport: DEBUG: [chan 2] Max packet in: 34816 bytes > paramiko.transport: DEBUG: [chan 2] Max packet out: 32768 bytes > paramiko.transport: INFO: Secsh channel 2 opened. > paramiko.transport: DEBUG: [chan 2] Sesch channel 2 request ok > paramiko.transport: DEBUG: [chan 2] EOF received (2) > paramiko.transport: DEBUG: [chan 2] EOF sent (2) > sshClient: DEBUG: > {Cmd: /tmp/expect_script.exp | grep -oP '\d+(?=3D% packet loss)' via Host= : 10.223.50.66} > {returns: ['send: spawn id exp3 not open', ' while executing', '"send "ss= h -o UserKnownHostsFile=3D/dev/null -o StrictHostKeyChecking=3Dno -o LogLev= el=3Dquiet root@10.1.1.183 ping -c 1 www.google.com; exit $?', '""', ' (fil= e "/tmp/expect_script.exp" line 4)']} > testclient.testcase.TestEgressFWRules: DEBUG: Result is=3D['send: spawn i= d exp3 not open', ' while executing', '"send "ssh -o UserKnownHostsFile=3D/= dev/null -o StrictHostKeyChecking=3Dno -o LogLevel=3Dquiet root@10.1.1.183 = ping -c 1 www.google.com; exit $?', '""', ' (file "/tmp/expect_script.exp" = line 4)'] > paramiko.transport: DEBUG: [chan 3] Max packet in: 34816 bytes > paramiko.transport: DEBUG: [chan 3] Max packet out: 32768 bytes > paramiko.transport: INFO: Secsh channel 3 opened. > paramiko.transport: DEBUG: [chan 3] Sesch channel 3 request ok > paramiko.transport: DEBUG: [chan 3] EOF received (3) > paramiko.transport: DEBUG: [chan 3] EOF sent (3) > sshClient: DEBUG: > {Cmd: rm -rf /tmp/expect_script.exp via Host: 10.223.50.66} > {returns: []} > testclient.testcase.TestEgressFWRules: DEBUG: Error=3DScript result is ['= send: spawn id exp3 not open', ' while executing', '"send "ssh -o UserKnown= HostsFile=3D/dev/null -o StrictHostKeyChecking=3Dno -o LogLevel=3Dquiet roo= t@10.1.1.183 ping -c 1 www.google.com; exit $?', '""', ' (file "/tmp/expect= _script.exp" line 4)'] is not matching with ['100'] > testclient.testcase.TestEgressFWRules: DEBUG: Test Failed due to Exception=3DScript result is ['send: sp= awn id exp3 not open', ' while executing', '"send "ssh -o UserKnownHostsFil= e=3D/dev/null -o StrictHostKeyChecking=3Dno -o LogLevel=3Dquiet root@10.1.1= .183 ping -c 1 www.google.com; exit $?', '""', ' (file "/tmp/expect_script.= exp" line 4)'] is not matching with ['100'] > paramiko.transport: DEBUG: EOF in transport thread > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run > testMethod() > File "/Repo_30X/ipcl/cloudstack/test/integration/component/test_egress_fw= _rules.py", line 51, in test_wrap_exception_log > raise e > Script result is ['send: spawn id exp3 not open', ' while executing', '"s= end "ssh -o UserKnownHostsFile=3D/dev/null -o StrictHostKeyChecking=3Dno -o= LogLevel=3Dquiet root@10.1.1.183 ping -c 1 www.google.com; exit $?', '""',= ' (file "/tmp/expect_script.exp" line 4)'] is not matching with ['100'] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira