[ https://issues.apache.org/jira/browse/CLOUDSTACK-7138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gaurav Aradhye reassigned CLOUDSTACK-7138: ------------------------------------------ Assignee: Gaurav Aradhye (was: Ashutosk Kelkar) > [Automation] Fix the script "test_escalations_vpncustomergateways.py" - Fail > to find customer gateway > ----------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-7138 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7138 > 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 > > > ============= > Error Message: > ============= > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > DEBUG: ========Sending GET Cmd : deleteVpnCustomerGateway======= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.220.135.73 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=C%2FYs0Z0CIZwnMXhXLn3c5hUxC44%3D&apiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMA&command=deleteVpnCustomerGateway&id=fd1ce29a-eba1-4933-8048-f6750144507f&response=json > HTTP/1.1" 200 89 > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > DEBUG: === Jobid: 65e64b4c-e08a-43f1-9c9b-6f090495d4fb Started === > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > DEBUG: Payload: {'signature': 'movzhb8jh4K2t40vRU8Qfi3oR1w=', 'apiKey': > u'Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMA', > 'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': > u'65e64b4c-e08a-43f1-9c9b-6f090495d4fb'} > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > DEBUG: ========Sending GET Cmd : queryAsyncJobResult======= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.220.135.73 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=movzhb8jh4K2t40vRU8Qfi3oR1w%3D&apiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMA&command=queryAsyncJobResult&response=json&jobid=65e64b4c-e08a-43f1-9c9b-6f090495d4fb > HTTP/1.1" 200 459 > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > DEBUG: Response : {jobprocstatus : 0, created : u'2014-07-11T16:07:31+0000', > cmd : > u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', > userid : u'9f654606-08ed-11e4-887d-928d578f5db8', jobstatus : 2, jobid : > u'65e64b4c-e08a-43f1-9c9b-6f090495d4fb', jobresultcode : 530, jobresulttype : > u'object', jobresult : {errorcode : 530, errortext : u'Fail to find customer > gateway with 3 !'}, accountid : u'9f6536a2-08ed-11e4-887d-928d578f5db8'} > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > ERROR: ==== __poll: Exception Occurred :Job failed: {jobprocstatus : 0, > created : u'2014-07-11T16:07:31+0000', cmd : > u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', > userid : u'9f654606-08ed-11e4-887d-928d578f5db8', jobstatus : 2, jobid : > u'65e64b4c-e08a-43f1-9c9b-6f090495d4fb', jobresultcode : 530, jobresulttype : > u'object', jobresult : {errorcode : 530, errortext : u'Fail to find customer > gateway with 3 !'}, accountid : u'9f6536a2-08ed-11e4-887d-928d578f5db8'} ==== > Traceback (most recent call last): > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", > line 105, in __poll > % async_response) > Exception: Job failed: {jobprocstatus : 0, created : > u'2014-07-11T16:07:31+0000', cmd : > u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', > userid : u'9f654606-08ed-11e4-887d-928d578f5db8', jobstatus : 2, jobid : > u'65e64b4c-e08a-43f1-9c9b-6f090495d4fb', jobresultcode : 530, jobresulttype : > u'object', jobresult : {errorcode : 530, errortext : u'Fail to find customer > gateway with 3 !'}, accountid : u'9f6536a2-08ed-11e4-887d-928d578f5db8'} > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > DEBUG: Response : FAILED > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > ERROR: marvinRequest : CmdName: > <marvin.cloudstackAPI.deleteVpnCustomerGateway.deleteVpnCustomerGatewayCmd > object at 0x39d5850> Exception: ['Traceback (most recent call last):\n', ' > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", > line 375, in marvinRequest\n raise self.__lastError\n', "Exception: Job > failed: {jobprocstatus : 0, created : u'2014-07-11T16:07:31+0000', cmd : > u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', > userid : u'9f654606-08ed-11e4-887d-928d578f5db8', jobstatus : 2, jobid : > u'65e64b4c-e08a-43f1-9c9b-6f090495d4fb', jobresultcode : 530, jobresulttype : > u'object', jobresult : {errorcode : 530, errortext : u'Fail to find customer > gateway with 3 !'}, accountid : u'9f6536a2-08ed-11e4-887d-928d578f5db8'}\n"] > Traceback (most recent call last): > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", > line 375, in marvinRequest > raise self.__lastError > Exception: Job failed: {jobprocstatus : 0, created : > u'2014-07-11T16:07:31+0000', cmd : > u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', > userid : u'9f654606-08ed-11e4-887d-928d578f5db8', jobstatus : 2, jobid : > u'65e64b4c-e08a-43f1-9c9b-6f090495d4fb', jobresultcode : 530, jobresulttype : > u'object', jobresult : {errorcode : 530, errortext : u'Fail to find customer > gateway with 3 !'}, accountid : u'9f6536a2-08ed-11e4-887d-928d578f5db8'} > test_01_list_vpncustomergateways_pagination > (integration.component.test_escalations_vpncustomergateways.TestVpnCustomerGateways): > CRITICAL: EXCEPTION: test_01_list_vpncustomergateways_pagination: > ['Traceback (most recent call last):\n', ' File > "/usr/lib/python2.7/unittest/case.py", line 361, in run\n > self.tearDown()\n', ' File > "/home/jenkins/workspace/xenrt-reg-basic-xs/cloudstack.git/test/integration/component/test_escalations_vpncustomergateways.py", > line 94, in tearDown\n cleanup_resources(self.apiClient, > self.cleanup)\n', ' File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/lib/utils.py", > line 121, in cleanup_resources\n obj.delete(api_client)\n', ' File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/lib/base.py", > line 3407, in delete\n apiclient.deleteVpnCustomerGateway(cmd)\n', ' > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", > line 2309, in deleteVpnCustomerGateway\n response = > self.connection.marvinRequest(command, response_type=response, > method=method)\n', ' File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", > line 380, in marvinRequest\n raise e\n', "Exception: Job failed: > {jobprocstatus : 0, created : u'2014-07-11T16:07:31+0000', cmd : > u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', > userid : u'9f654606-08ed-11e4-887d-928d578f5db8', jobstatus : 2, jobid : > u'65e64b4c-e08a-43f1-9c9b-6f090495d4fb', jobresultcode : 530, jobresulttype : > u'object', jobresult : {errorcode : 530, errortext : u'Fail to find customer > gateway with 3 !'}, accountid : u'9f6536a2-08ed-11e4-887d-928d578f5db8'}\n"] > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/lib/python2.7/unittest/case.py", line 361, in run > self.tearDown() > File > "/home/jenkins/workspace/xenrt-reg-basic-xs/cloudstack.git/test/integration/component/test_escalations_vpncustomergateways.py", > line 94, in tearDown > cleanup_resources(self.apiClient, self.cleanup) > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/lib/utils.py", > line 121, in cleanup_resources > obj.delete(api_client) > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/lib/base.py", > line 3407, in delete > apiclient.deleteVpnCustomerGateway(cmd) > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", > line 2309, in deleteVpnCustomerGateway > response = self.connection.marvinRequest(command, response_type=response, > method=method) > File > "/local/jenkins/workspace/xenrt-reg-basic-xs/work.64/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", > line 380, in marvinRequest > raise e > 'Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:07:31+0000\', cmd > : > u\'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd\', > userid : u\'9f654606-08ed-11e4-887d-928d578f5db8\', jobstatus : 2, jobid : > u\'65e64b4c-e08a-43f1-9c9b-6f090495d4fb\', jobresultcode : 530, jobresulttype > : u\'object\', jobresult : {errorcode : 530, errortext : u\'Fail to find > customer gateway with 3 !\'}, accountid : > u\'9f6536a2-08ed-11e4-887d-928d578f5db8\'}\n-------------------- >> begin > captured stdout << ---------------------\n=== TestName: > test_01_list_vpncustomergateways_pagination | Status : EXCEPTION > ===\n\n\n--------------------- >> end captured stdout << > ----------------------\n-------------------- >> begin captured logging << > --------------------\nCSLog: DEBUG: Payload: {\'apiKey\': -- This message was sent by Atlassian JIRA (v6.2#6252)