[
https://issues.apache.org/jira/browse/CLOUDSTACK-4303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rayees Namathponnan reopened CLOUDSTACK-4303:
---------------------------------------------
Test case still failed, even after installing except
Script result is ['0'] is not matching with ['100']
-------------------- >> begin captured logging << --------------------
testclient.testcase.TestEgressFWRules: DEBUG: Creating network with network
offering: 5bb9367a-3dc0-4819-bb10-2585e95bd81a
testclient.testcase.TestEgressFWRules: DEBUG: Created network with ID:
ee831649-e32d-4d90-bc9a-86ed98f14298
testclient.testcase.TestEgressFWRules: DEBUG: Deploying instance in the
account: test-5T931N
testclient.testcase.TestEgressFWRules: DEBUG: Deployed instance in account:
test-5T931N
testclient.testcase.TestEgressFWRules: DEBUG: expect_script>>
#!/usr/bin/expect
spawn ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o
LogLevel=quiet -i /root/.ssh/id_rsa.cloud -p 3922 [email protected]
expect "root@r-367-QA:~#"
send "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o
LogLevel=quiet [email protected] ping -c 1 www.google.com; exit $?
"
expect "[email protected]'s password: "
send "password
"
interact
<<expect_script
paramiko.transport: DEBUG: starting thread (client mode): 0xd198c10L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.3)
paramiko.transport: DEBUG: kex algos:['diffie-hellman-group-exchange-sha256',
'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1',
'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client
encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128',
'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc',
'aes256-cbc', 'arcfour', '[email protected]'] server
encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128',
'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc',
'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5',
'hmac-sha1', '[email protected]', 'hmac-ripemd160',
'[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server
mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-ripemd160',
'[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client
compress:['none', '[email protected]'] server compress:['none',
'[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key
type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local
hmac-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:
9a5eb2d3ec3ca8ce592ce77cdd685bbf
paramiko.transport: DEBUG: Trying discovered key
76be480fa6b8ad3b78082d6d19e4ee44 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: [email protected] with passwd password
testclient.testcase.TestEgressFWRules: DEBUG: SSH client to : 10.223.50.66
obtained
paramiko.transport: DEBUG: starting thread (client mode): 0xd1a0050L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.3)
paramiko.transport: DEBUG: kex algos:['diffie-hellman-group-exchange-sha256',
'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1',
'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client
encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128',
'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc',
'aes256-cbc', 'arcfour', '[email protected]'] server
encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128',
'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc',
'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5',
'hmac-sha1', '[email protected]', 'hmac-ripemd160',
'[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server
mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-ripemd160',
'[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client
compress:['none', '[email protected]'] server compress:['none',
'[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key
type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local
hmac-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 version
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 | grep -oP
'\d+(?=% 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+(?=% packet
loss)' via Host: 10.223.50.66} {returns: ['0']}
testclient.testcase.TestEgressFWRules: DEBUG: Result is=['0']
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=Script result is ['0'] is
not matching with ['100']
testclient.testcase.TestEgressFWRules: DEBUG: Test <function
test_01_1_egress_fr1 at 0xd183848> Failed due to Exception=Script result is
['0'] 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 ['0'] is not matching with ['100']
> [Automation] test_egress_fw_rules test cases failed to except script and
> tests failed
> --------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-4303
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4303
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Infra
> Reporter: Rayees Namathponnan
> Assignee: Prasanna Santhanam
>
> Test cases from integration.component.test_egress_fw_rules.TestEgressFWRules
> fails
> test cases expecting script @ /tmp/expect_scrip, this should be handled in
> test case,
> 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 ['bash: /tmp/expect_script.exp: /usr/bin/expect: bad
> interpreter: No such file or directory'] is not matching with ['100']
> -------------------- >> begin captured logging << --------------------
> testclient.testcase.TestEgressFWRules: DEBUG: Creating network with network
> offering: 0bd6212f-b34c-4f7a-a84f-0c172bee6ac8
> testclient.testcase.TestEgressFWRules: DEBUG: Created network with ID:
> ef2626c2-6849-43e7-8418-0c89ed528d62
> testclient.testcase.TestEgressFWRules: DEBUG: Deploying instance in the
> account: test-SSFX20
> testclient.testcase.TestEgressFWRules: DEBUG: Deployed instance in account:
> test-SSFX20
> testclient.testcase.TestEgressFWRules: DEBUG: expect_script>>
> #!/usr/bin/expect
> spawn ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o
> LogLevel=quiet -i /root/.ssh/id_rsa.cloud -p 3922 [email protected]
> expect "root@r-342-QA:~#"
> send "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o
> LogLevel=quiet [email protected] ping -c 1 www.google.com; exit $?
> "
> expect "[email protected]'s password: "
> send "password
> "
> interact
> <<expect_script
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira