cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7408) [Automation] Fix Marvin - Entire "test_reset_ssh_keypair" test suite is failing - parmiko is ignoring the privatekey file and reading from "knownhosts" file
Date Thu, 30 Oct 2014 09:23:33 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189840#comment-14189840
] 

ASF subversion and git services commented on CLOUDSTACK-7408:
-------------------------------------------------------------

Commit e87da186f3b094e76a174713d6933f83d1c00854 in cloudstack's branch refs/heads/4.5 from
[~gauravaradhye]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=e87da18 ]

Revert "CLOUDSTACK-7408: Fixed - Private key of the ssh keypair was getting corrupted"

This reverts commit e921ec6ec79c50096d58264d60c15091969ff888.

CLOUDSTACK-7408: sshClient.py - removing function load_host_keys(). This function is used
to load host keys from local host keys file and to save back the host key. It is not needed
while running test cases because we are connecting to unknown host anyway and don't want to
use any local host key file. We have the AutoAddPolicy for missing host key file, hence whenever
ssh connects to a new host, it will save the host key in memory temporarily.

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>


> [Automation] Fix Marvin - Entire "test_reset_ssh_keypair" test suite is failing - parmiko
is ignoring the privatekey file and reading from "knownhosts" file
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7408
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7408
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation, Test
>    Affects Versions: 4.5.0
>            Reporter: Chandan Purushothama
>            Assignee: Gaurav Aradhye
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> All test cases in the test suite are failing with the following error message:
> *Error Message*
> {code}
> ========Sending GET Cmd : createSSHKeyPair=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?account=test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM&domainid=9d7d4d5c-281e-11e4-b06a-d2bc9de3652e&name=1NSMY1.pem&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=createSSHKeyPair&signature=I6nJU9f%2BAyiG36on1n8mPdYIV%2B4%3D&response=json
HTTP/1.1" 200 1054
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {privatekey : u'-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQCqsJslMVUU/cvvkEav+V3SX8HOr/lJ9U9DXznij5twiiR3SUa8\n+EsGd7MoEA6CVYSmlOPOcntZl2H7jqW9kYuUqJ9hOuZKU5NrlMqSUGLL9dRUDc/t\nBqLjvKrlqjrkesqRmJ/mt0dMUJ7UChoNi7mFBuE4g8+jPps39kOlfU8dDQIDAQAB\nAoGAeDW2neP3Yrg3BvmZ/tblL4LG0FR4gZClCPKoppmyw/hWJDhT/EP1OpHUd9OP\nFFU7/cGACmXv3zHRDMPyj+ZP4PR0L4VefYA79AoenmNTunL8hC5xqHibSkHbfzFr\nq38Fdu94IPb9VIRpvUJlktGgtvBSmJ5UaGXDohczg8CDHSECQQDbaNX5tRrFBS5v\n8xZw0b3EyKaxTOJOM/yzVsFi5RbiETqPrsm9xycqKU8NXy/iQLMSku2D4qaClnV3\nG0YDf3O5AkEAxyfNKqD4oZEMpnR0Dv0hentZnVRaB13/VyuGMpBuLQK4hWT9JHZb\ntRHpRIfabsw+CKRZAU6B//rjQs7hRojF9QJBANKZ7FmFZq6abJp0YKPmDxsl5irl\nO4wJBpQ1v+ZnMvHHy8hC485PrN4hTInvRg0MQVagxW8ETQOn3BR5j1ioK7ECQACB\n6nTsWhXXT8fwzgbnwDkWrWDIQT55j9gCBWKFmbJFqoC0hCyenJc2h3ikO/tCS/or\nqQpmz8/+LKwT6OEMIi0CQQDD0raTQ3Fi72cgRukctDl2O8edMuYkrDkUc412WRZQ\nZC3JxGFW9bqM+AYyZfNVQeXcDvprs2fRyg7hcjXZbwie\n-----END
RSA PRIVATE KEY-----\n', name : u'1NSMY1.pem', fingerprint : u'71:62:6f:f0:01:ce:65:20:10:aa:7e:a4:ba:fd:37:40'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Created a new keypair with name: 1NSMY1.pem
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Writing the private key to local file
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: File path: /tmp/1NSMY1.pem
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Resetting the SSH key pair for instance: VM-0521491b-d984-41a7-b391-6acf76de605a
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'account': u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM',
'domainid': u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e', 'name': u'1NSMY1.pem', 'response': 'json',
'keypair': u'1NSMY1.pem', 'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'command': 'resetSSHKeyForVirtualMachine', 'signature': 'mkJDUtDYBfmeBnDMJPuo9NVVIoA=', 'id':
u'0521491b-d984-41a7-b391-6acf76de605a'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : resetSSHKeyForVirtualMachine=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?account=test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM&domainid=9d7d4d5c-281e-11e4-b06a-d2bc9de3652e&name=1NSMY1.pem&id=0521491b-d984-41a7-b391-6acf76de605a&keypair=1NSMY1.pem&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=resetSSHKeyForVirtualMachine&signature=mkJDUtDYBfmeBnDMJPuo9NVVIoA%3D&response=json
HTTP/1.1" 200 93
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: === Jobid: 6001a338-2760-49b0-9ff3-20fc19f0847d Started ===
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'signature': 'z2VoMkU2Le+wt2bJGaEUUgg19w4=', 'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'6001a338-2760-49b0-9ff3-20fc19f0847d'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?jobid=6001a338-2760-49b0-9ff3-20fc19f0847d&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=queryAsyncJobResult&response=json&signature=z2VoMkU2Le%2Bwt2bJGaEUUgg19w4%3D
HTTP/1.1" 200 435
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-20T09:01:57+0000', cmd : u'org.apache.cloudstack.api.command.admin.vm.ResetVMSSHKeyCmdByAdmin',
userid : u'c026722a-281e-11e4-b06a-d2bc9de3652e', jobstatus : 0, jobid : u'6001a338-2760-49b0-9ff3-20fc19f0847d',
jobresultcode : 0, jobinstanceid : u'0521491b-d984-41a7-b391-6acf76de605a', jobinstancetype
: u'VirtualMachine', accountid : u'c02662da-281e-11e4-b06a-d2bc9de3652e'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: === JobId:6001a338-2760-49b0-9ff3-20fc19f0847d is Still Processing, Will TimeOut in:3595
====
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'signature': 'z2VoMkU2Le+wt2bJGaEUUgg19w4=', 'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'6001a338-2760-49b0-9ff3-20fc19f0847d'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?jobid=6001a338-2760-49b0-9ff3-20fc19f0847d&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=queryAsyncJobResult&response=json&signature=z2VoMkU2Le%2Bwt2bJGaEUUgg19w4%3D
HTTP/1.1" 200 2038
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-20T09:01:57+0000', jobresult : {domain
: u'ROOT', domainid : u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e', haenable : False, templatename
: u'Cent OS Template-7YU6QB', diskioread : 0, diskiowrite : 0, securitygroup : [], zoneid
: u'f2acfe0c-c8c8-4353-8f97-a3e0f14d6357', keypair : u'1NSMY1.pem', cpunumber : 1, ostypeid
: 12, passwordenabled : True, instancename : u'i-433-672-VM', id : u'0521491b-d984-41a7-b391-6acf76de605a',
networkkbswrite : 0, displayvm : True, state : u'Stopped', guestosid : u'9d879ab4-281e-11e4-b06a-d2bc9de3652e',
cpuused : u'0%', memory : 128, serviceofferingid : u'584edbf3-3615-497a-a00e-f8901476b832',
zonename : u'XenRT-Zone-0', isdynamicallyscalable : False, displayname : u'VM', tags : [],
diskkbsread : 0, nic : [{networkid : u'58a349a8-cc9a-4df8-b633-382c74911a64', macaddress :
u'02:00:3e:3e:00:01', type : u'Isolated', id : u'088b01c2-136f-4d3d-9db6-5b62ff8900a7', traffictype
: u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.76', networkname : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM-network',
gateway : u'192.168.200.1', isdefault : True}], cpuspeed : 100, diskkbswrite : 0, jobstatus
: 0, templateid : u'625f748c-f26a-43bc-8e59-ab514733dec7', password : u'hP5icnvic', affinitygroup
: [], account : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM', name
: u'VM-0521491b-d984-41a7-b391-6acf76de605a', networkkbsread : 0, created : u'2014-08-20T08:58:59+0000',
hypervisor : u'XenServer', jobid : u'6001a338-2760-49b0-9ff3-20fc19f0847d', rootdevicetype
: u'ROOT', rootdeviceid : 0, serviceofferingname : u'Tiny Instance', templatedisplaytext :
u'Cent OS Template'}, cmd : u'org.apache.cloudstack.api.command.admin.vm.ResetVMSSHKeyCmdByAdmin',
userid : u'c026722a-281e-11e4-b06a-d2bc9de3652e', jobstatus : 1, jobid : u'6001a338-2760-49b0-9ff3-20fc19f0847d',
jobresultcode : 0, jobinstanceid : u'0521491b-d984-41a7-b391-6acf76de605a', jobresulttype
: u'object', jobinstancetype : u'VirtualMachine', accountid : u'c02662da-281e-11e4-b06a-d2bc9de3652e'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ===Jobid:6001a338-2760-49b0-9ff3-20fc19f0847d ; StartTime:Wed Aug 20 09:01:58 2014
; EndTime:Wed Aug 20 09:02:03 2014 ; TotalTime:-5===
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-20T09:01:57+0000', jobresult : {domain
: u'ROOT', domainid : u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e', haenable : False, templatename
: u'Cent OS Template-7YU6QB', diskioread : 0, diskiowrite : 0, securitygroup : [], zoneid
: u'f2acfe0c-c8c8-4353-8f97-a3e0f14d6357', keypair : u'1NSMY1.pem', cpunumber : 1, ostypeid
: 12, passwordenabled : True, instancename : u'i-433-672-VM', id : u'0521491b-d984-41a7-b391-6acf76de605a',
networkkbswrite : 0, displayvm : True, state : u'Stopped', guestosid : u'9d879ab4-281e-11e4-b06a-d2bc9de3652e',
cpuused : u'0%', memory : 128, serviceofferingid : u'584edbf3-3615-497a-a00e-f8901476b832',
zonename : u'XenRT-Zone-0', isdynamicallyscalable : False, displayname : u'VM', tags : [],
diskkbsread : 0, nic : [{networkid : u'58a349a8-cc9a-4df8-b633-382c74911a64', macaddress :
u'02:00:3e:3e:00:01', type : u'Isolated', id : u'088b01c2-136f-4d3d-9db6-5b62ff8900a7', traffictype
: u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.76', networkname : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM-network',
gateway : u'192.168.200.1', isdefault : True}], cpuspeed : 100, diskkbswrite : 0, jobstatus
: 0, templateid : u'625f748c-f26a-43bc-8e59-ab514733dec7', password : u'hP5icnvic', affinitygroup
: [], account : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM', name
: u'VM-0521491b-d984-41a7-b391-6acf76de605a', networkkbsread : 0, created : u'2014-08-20T08:58:59+0000',
hypervisor : u'XenServer', jobid : u'6001a338-2760-49b0-9ff3-20fc19f0847d', rootdevicetype
: u'ROOT', rootdeviceid : 0, serviceofferingname : u'Tiny Instance', templatedisplaytext :
u'Cent OS Template'}, cmd : u'org.apache.cloudstack.api.command.admin.vm.ResetVMSSHKeyCmdByAdmin',
userid : u'c026722a-281e-11e4-b06a-d2bc9de3652e', jobstatus : 1, jobid : u'6001a338-2760-49b0-9ff3-20fc19f0847d',
jobresultcode : 0, jobinstanceid : u'0521491b-d984-41a7-b391-6acf76de605a', jobresulttype
: u'object', jobinstancetype : u'VirtualMachine', accountid : u'c02662da-281e-11e4-b06a-d2bc9de3652e'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Starting the virtual machine after resetting the keypair
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'response': 'json', 'command': 'startVirtualMachine', 'signature': 'RI0qHH2rmbvI3g/Z/MCorQrTSgc=',
'id': u'0521491b-d984-41a7-b391-6acf76de605a'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : startVirtualMachine=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?id=0521491b-d984-41a7-b391-6acf76de605a&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=startVirtualMachine&response=json&signature=RI0qHH2rmbvI3g%2FZ%2FMCorQrTSgc%3D
HTTP/1.1" 200 84
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: === Jobid: 202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6 Started ===
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'signature': '84VbG8Hx8TCj3KGY60BPqpQCtgg=', 'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?jobid=202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=queryAsyncJobResult&response=json&signature=84VbG8Hx8TCj3KGY60BPqpQCtgg%3D
HTTP/1.1" 200 429
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-20T09:02:03+0000', cmd : u'org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin',
userid : u'c026722a-281e-11e4-b06a-d2bc9de3652e', jobstatus : 0, jobid : u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6',
jobresultcode : 0, jobinstanceid : u'0521491b-d984-41a7-b391-6acf76de605a', jobinstancetype
: u'VirtualMachine', accountid : u'c02662da-281e-11e4-b06a-d2bc9de3652e'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: === JobId:202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6 is Still Processing, Will TimeOut in:3595
====
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'signature': '84VbG8Hx8TCj3KGY60BPqpQCtgg=', 'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?jobid=202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=queryAsyncJobResult&response=json&signature=84VbG8Hx8TCj3KGY60BPqpQCtgg%3D
HTTP/1.1" 200 429
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-20T09:02:03+0000', cmd : u'org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin',
userid : u'c026722a-281e-11e4-b06a-d2bc9de3652e', jobstatus : 0, jobid : u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6',
jobresultcode : 0, jobinstanceid : u'0521491b-d984-41a7-b391-6acf76de605a', jobinstancetype
: u'VirtualMachine', accountid : u'c02662da-281e-11e4-b06a-d2bc9de3652e'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: === JobId:202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6 is Still Processing, Will TimeOut in:3590
====
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'signature': '84VbG8Hx8TCj3KGY60BPqpQCtgg=', 'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?jobid=202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=queryAsyncJobResult&response=json&signature=84VbG8Hx8TCj3KGY60BPqpQCtgg%3D
HTTP/1.1" 200 2136
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-20T09:02:03+0000', jobresult : {domain
: u'ROOT', domainid : u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e', haenable : False, templatename
: u'Cent OS Template-7YU6QB', diskioread : 0, diskiowrite : 0, securitygroup : [], zoneid
: u'f2acfe0c-c8c8-4353-8f97-a3e0f14d6357', keypair : u'1NSMY1.pem', cpunumber : 1, ostypeid
: 12, passwordenabled : True, instancename : u'i-433-672-VM', id : u'0521491b-d984-41a7-b391-6acf76de605a',
networkkbswrite : 0, hostname : u'cl08-15', displayvm : True, state : u'Running', guestosid
: u'9d879ab4-281e-11e4-b06a-d2bc9de3652e', cpuused : u'0%', memory : 128, serviceofferingid
: u'584edbf3-3615-497a-a00e-f8901476b832', zonename : u'XenRT-Zone-0', isdynamicallyscalable
: False, displayname : u'VM', tags : [], diskkbsread : 0, nic : [{networkid : u'58a349a8-cc9a-4df8-b633-382c74911a64',
macaddress : u'02:00:3e:3e:00:01', isolationuri : u'vlan://3053', type : u'Isolated', broadcasturi
: u'vlan://3053', traffictype : u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.76',
id : u'088b01c2-136f-4d3d-9db6-5b62ff8900a7', networkname : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM-network',
gateway : u'192.168.200.1', isdefault : True}], cpuspeed : 100, diskkbswrite : 0, jobstatus
: 0, templateid : u'625f748c-f26a-43bc-8e59-ab514733dec7', affinitygroup : [], account : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM',
hostid : u'1f5f180e-3eb1-4a6a-92f8-8df71df57962', name : u'VM-0521491b-d984-41a7-b391-6acf76de605a',
networkkbsread : 0, created : u'2014-08-20T08:58:59+0000', hypervisor : u'XenServer', jobid
: u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6', rootdevicetype : u'ROOT', rootdeviceid : 0, serviceofferingname
: u'Tiny Instance', templatedisplaytext : u'Cent OS Template'}, cmd : u'org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin',
userid : u'c026722a-281e-11e4-b06a-d2bc9de3652e', jobstatus : 1, jobid : u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6',
jobresultcode : 0, jobinstanceid : u'0521491b-d984-41a7-b391-6acf76de605a', jobresulttype
: u'object', jobinstancetype : u'VirtualMachine', accountid : u'c02662da-281e-11e4-b06a-d2bc9de3652e'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ===Jobid:202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6 ; StartTime:Wed Aug 20 09:02:03 2014
; EndTime:Wed Aug 20 09:02:13 2014 ; TotalTime:-10===
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-20T09:02:03+0000', jobresult : {domain
: u'ROOT', domainid : u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e', haenable : False, templatename
: u'Cent OS Template-7YU6QB', diskioread : 0, diskiowrite : 0, securitygroup : [], zoneid
: u'f2acfe0c-c8c8-4353-8f97-a3e0f14d6357', keypair : u'1NSMY1.pem', cpunumber : 1, ostypeid
: 12, passwordenabled : True, instancename : u'i-433-672-VM', id : u'0521491b-d984-41a7-b391-6acf76de605a',
networkkbswrite : 0, hostname : u'cl08-15', displayvm : True, state : u'Running', guestosid
: u'9d879ab4-281e-11e4-b06a-d2bc9de3652e', cpuused : u'0%', memory : 128, serviceofferingid
: u'584edbf3-3615-497a-a00e-f8901476b832', zonename : u'XenRT-Zone-0', isdynamicallyscalable
: False, displayname : u'VM', tags : [], diskkbsread : 0, nic : [{networkid : u'58a349a8-cc9a-4df8-b633-382c74911a64',
macaddress : u'02:00:3e:3e:00:01', isolationuri : u'vlan://3053', type : u'Isolated', broadcasturi
: u'vlan://3053', traffictype : u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.76',
id : u'088b01c2-136f-4d3d-9db6-5b62ff8900a7', networkname : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM-network',
gateway : u'192.168.200.1', isdefault : True}], cpuspeed : 100, diskkbswrite : 0, jobstatus
: 0, templateid : u'625f748c-f26a-43bc-8e59-ab514733dec7', affinitygroup : [], account : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM',
hostid : u'1f5f180e-3eb1-4a6a-92f8-8df71df57962', name : u'VM-0521491b-d984-41a7-b391-6acf76de605a',
networkkbsread : 0, created : u'2014-08-20T08:58:59+0000', hypervisor : u'XenServer', jobid
: u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6', rootdevicetype : u'ROOT', rootdeviceid : 0, serviceofferingname
: u'Tiny Instance', templatedisplaytext : u'Cent OS Template'}, cmd : u'org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin',
userid : u'c026722a-281e-11e4-b06a-d2bc9de3652e', jobstatus : 1, jobid : u'202ee3ee-c11a-4ec6-969b-6fcc6f61c1e6',
jobresultcode : 0, jobinstanceid : u'0521491b-d984-41a7-b391-6acf76de605a', jobresulttype
: u'object', jobinstancetype : u'VirtualMachine', accountid : u'c02662da-281e-11e4-b06a-d2bc9de3652e'}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'id': u'0521491b-d984-41a7-b391-6acf76de605a', 'response': 'json', 'command': 'listVirtualMachines',
'signature': '5/RYtr6ucrRMszaVR+e3sMG/wNs=', 'listAll': True}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : listVirtualMachines=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&response=json&command=listVirtualMachines&signature=5%2FRYtr6ucrRMszaVR%2Be3sMG%2FwNs%3D&id=0521491b-d984-41a7-b391-6acf76de605a&listAll=True
HTTP/1.1" 200 1664
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : [{domain : u'ROOT', domainid : u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e',
haenable : False, templatename : u'Cent OS Template-7YU6QB', diskioread : 0, diskiowrite :
0, securitygroup : [], zoneid : u'f2acfe0c-c8c8-4353-8f97-a3e0f14d6357', keypair : u'1NSMY1.pem',
cpunumber : 1, ostypeid : 12, passwordenabled : True, instancename : u'i-433-672-VM', id :
u'0521491b-d984-41a7-b391-6acf76de605a', networkkbswrite : 0, hostname : u'cl08-15', displayvm
: True, state : u'Running', guestosid : u'9d879ab4-281e-11e4-b06a-d2bc9de3652e', cpuused :
u'0%', memory : 128, serviceofferingid : u'584edbf3-3615-497a-a00e-f8901476b832', zonename
: u'XenRT-Zone-0', isdynamicallyscalable : False, displayname : u'VM', tags : [], diskkbsread
: 0, nic : [{networkid : u'58a349a8-cc9a-4df8-b633-382c74911a64', macaddress : u'02:00:3e:3e:00:01',
isolationuri : u'vlan://3053', type : u'Isolated', broadcasturi : u'vlan://3053', traffictype
: u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.76', id : u'088b01c2-136f-4d3d-9db6-5b62ff8900a7',
networkname : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM-network',
gateway : u'192.168.200.1', isdefault : True}], cpuspeed : 100, diskkbswrite : 0, templateid
: u'625f748c-f26a-43bc-8e59-ab514733dec7', affinitygroup : [], account : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM',
hostid : u'1f5f180e-3eb1-4a6a-92f8-8df71df57962', name : u'VM-0521491b-d984-41a7-b391-6acf76de605a',
networkkbsread : 0, created : u'2014-08-20T08:58:59+0000', hypervisor : u'XenServer', rootdevicetype
: u'ROOT', rootdeviceid : 0, serviceofferingname : u'Tiny Instance', templatedisplaytext :
u'Cent OS Template'}]
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Payload: {'apiKey': u'NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw',
'id': u'0521491b-d984-41a7-b391-6acf76de605a', 'response': 'json', 'command': 'listVirtualMachines',
'signature': '/62P8uZpcCrT0I9tclTIIprQNd0='}
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: ========Sending GET Cmd : listVirtualMachines=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.39
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=%2F62P8uZpcCrT0I9tclTIIprQNd0%3D&apiKey=NpffyWZkfwK7gPcNpx28Ohv6K56ftl57A409SyokqHjJ2ZNe3AvvF3F0teTETeIIqrtlcWpQOooM3cQyPveGXw&command=listVirtualMachines&id=0521491b-d984-41a7-b391-6acf76de605a&response=json
HTTP/1.1" 200 1664
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: Response : [{domain : u'ROOT', domainid : u'9d7d4d5c-281e-11e4-b06a-d2bc9de3652e',
haenable : False, templatename : u'Cent OS Template-7YU6QB', diskioread : 0, diskiowrite :
0, securitygroup : [], zoneid : u'f2acfe0c-c8c8-4353-8f97-a3e0f14d6357', keypair : u'1NSMY1.pem',
cpunumber : 1, ostypeid : 12, passwordenabled : True, instancename : u'i-433-672-VM', id :
u'0521491b-d984-41a7-b391-6acf76de605a', networkkbswrite : 0, hostname : u'cl08-15', displayvm
: True, state : u'Running', guestosid : u'9d879ab4-281e-11e4-b06a-d2bc9de3652e', cpuused :
u'0%', memory : 128, serviceofferingid : u'584edbf3-3615-497a-a00e-f8901476b832', zonename
: u'XenRT-Zone-0', isdynamicallyscalable : False, displayname : u'VM', tags : [], diskkbsread
: 0, nic : [{networkid : u'58a349a8-cc9a-4df8-b633-382c74911a64', macaddress : u'02:00:3e:3e:00:01',
isolationuri : u'vlan://3053', type : u'Isolated', broadcasturi : u'vlan://3053', traffictype
: u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.76', id : u'088b01c2-136f-4d3d-9db6-5b62ff8900a7',
networkname : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM-network',
gateway : u'192.168.200.1', isdefault : True}], cpuspeed : 100, diskkbswrite : 0, templateid
: u'625f748c-f26a-43bc-8e59-ab514733dec7', affinitygroup : [], account : u'test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-X23IPM',
hostid : u'1f5f180e-3eb1-4a6a-92f8-8df71df57962', name : u'VM-0521491b-d984-41a7-b391-6acf76de605a',
networkkbsread : 0, created : u'2014-08-20T08:58:59+0000', hypervisor : u'XenServer', rootdevicetype
: u'ROOT', rootdeviceid : 0, serviceofferingname : u'Tiny Instance', templatedisplaytext :
u'Cent OS Template'}]
> test_01_reset_keypair_normal_user (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights):
DEBUG: SSHing with new keypair
> sshClient: DEBUG: ====Trying SSH Connection: Host:10.220.136.55 User:root           
                       Port:22 RetryCnt:20===
> paramiko.hostkeys: INFO: Unable to handle key of type RSA
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 1 ('MIICXQIBAAKBgQCqsJslMVUU/cvvkEav+V3SX8HOr/lJ9U9DXznij5twiiR3SUa8')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 2 ('+EsGd7MoEA6CVYSmlOPOcntZl2H7jqW9kYuUqJ9hOuZKU5NrlMqSUGLL9dRUDc/t')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 3 ('BqLjvKrlqjrkesqRmJ/mt0dMUJ7UChoNi7mFBuE4g8+jPps39kOlfU8dDQIDAQAB')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 4 ('AoGAeDW2neP3Yrg3BvmZ/tblL4LG0FR4gZClCPKoppmyw/hWJDhT/EP1OpHUd9OP')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 5 ('FFU7/cGACmXv3zHRDMPyj+ZP4PR0L4VefYA79AoenmNTunL8hC5xqHibSkHbfzFr')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 6 ('q38Fdu94IPb9VIRpvUJlktGgtvBSmJ5UaGXDohczg8CDHSECQQDbaNX5tRrFBS5v')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 7 ('8xZw0b3EyKaxTOJOM/yzVsFi5RbiETqPrsm9xycqKU8NXy/iQLMSku2D4qaClnV3')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 8 ('G0YDf3O5AkEAxyfNKqD4oZEMpnR0Dv0hentZnVRaB13/VyuGMpBuLQK4hWT9JHZb')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 9 ('tRHpRIfabsw+CKRZAU6B//rjQs7hRojF9QJBANKZ7FmFZq6abJp0YKPmDxsl5irl')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 10 ('O4wJBpQ1v+ZnMvHHy8hC485PrN4hTInvRg0MQVagxW8ETQOn3BR5j1ioK7ECQACB')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 11 ('6nTsWhXXT8fwzgbnwDkWrWDIQT55j9gCBWKFmbJFqoC0hCyenJc2h3ikO/tCS/or')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 12 ('qQpmz8/+LKwT6OEMIi0CQQDD0raTQ3Fi72cgRukctDl2O8edMuYkrDkUc412WRZQ')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 13 ('ZC3JxGFW9bqM+AYyZfNVQeXcDvprs2fRyg7hcjXZbwie')
> paramiko.hostkeys: INFO: Unable to handle key of type RSA
> sshClient: ERROR: SshClient: Exception under createConnection: ['Traceback (most recent
call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/marvin/sshClient.py", line
130, in createConnection\n    look_for_keys=True\n', '  File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py",
line 236, in connect\n    retry_on_signal(lambda: sock.connect(addr))\n', '  File "/usr/local/lib/python2.7/dist-packages/paramiko/util.py",
line 278, in retry_on_signal\n    return function()\n', '  File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py",
line 236, in <lambda>\n    retry_on_signal(lambda: sock.connect(addr))\n', '  File "/usr/lib/python2.7/socket.py",
line 224, in meth\n    return getattr(self._sock,name)(*args)\n', 'error: [Errno 113] No route
to host\n']
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/marvin/sshClient.py", line 130, in createConnection
>     look_for_keys=True
>   File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 236, in connect
>     retry_on_signal(lambda: sock.connect(addr))
>   File "/usr/local/lib/python2.7/dist-packages/paramiko/util.py", line 278, in retry_on_signal
>     return function()
>   File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 236, in <lambda>
>     retry_on_signal(lambda: sock.connect(addr))
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 113] No route to host
> sshClient: DEBUG: ====Trying SSH Connection: Host:10.220.136.55 User:root           
                       Port:22 RetryCnt:19===
> paramiko.hostkeys: INFO: Unable to handle key of type RSA
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 1 ('MIICXQIBAAKBgQCqsJslMVUU/cvvkEav+V3SX8HOr/lJ9U9DXznij5twiiR3SUa8')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 2 ('+EsGd7MoEA6CVYSmlOPOcntZl2H7jqW9kYuUqJ9hOuZKU5NrlMqSUGLL9dRUDc/t')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 3 ('BqLjvKrlqjrkesqRmJ/mt0dMUJ7UChoNi7mFBuE4g8+jPps39kOlfU8dDQIDAQAB')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 4 ('AoGAeDW2neP3Yrg3BvmZ/tblL4LG0FR4gZClCPKoppmyw/hWJDhT/EP1OpHUd9OP')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 5 ('FFU7/cGACmXv3zHRDMPyj+ZP4PR0L4VefYA79AoenmNTunL8hC5xqHibSkHbfzFr')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 6 ('q38Fdu94IPb9VIRpvUJlktGgtvBSmJ5UaGXDohczg8CDHSECQQDbaNX5tRrFBS5v')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 7 ('8xZw0b3EyKaxTOJOM/yzVsFi5RbiETqPrsm9xycqKU8NXy/iQLMSku2D4qaClnV3')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 8 ('G0YDf3O5AkEAxyfNKqD4oZEMpnR0Dv0hentZnVRaB13/VyuGMpBuLQK4hWT9JHZb')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 9 ('tRHpRIfabsw+CKRZAU6B//rjQs7hRojF9QJBANKZ7FmFZq6abJp0YKPmDxsl5irl')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 10 ('O4wJBpQ1v+ZnMvHHy8hC485PrN4hTInvRg0MQVagxW8ETQOn3BR5j1ioK7ECQACB')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 11 ('6nTsWhXXT8fwzgbnwDkWrWDIQT55j9gCBWKFmbJFqoC0hCyenJc2h3ikO/tCS/or')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 12 ('qQpmz8/+LKwT6OEMIi0CQQDD0raTQ3Fi72cgRukctDl2O8edMuYkrDkUc412WRZQ')
> paramiko.hostkeys: INFO: Not enough fields found in known_hosts in line 13 ('ZC3JxGFW9bqM+AYyZfNVQeXcDvprs2fRyg7hcjXZbwie')
> paramiko.hostkeys: INFO: Unable to handle key of type RSA
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message