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 F153E110EB for ; Mon, 18 Aug 2014 15:03:21 +0000 (UTC) Received: (qmail 55570 invoked by uid 500); 18 Aug 2014 15:03:19 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 55481 invoked by uid 500); 18 Aug 2014 15:03:19 -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 55354 invoked by uid 500); 18 Aug 2014 15:03:19 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 55328 invoked by uid 99); 18 Aug 2014 15:03:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 15:03:19 +0000 Date: Mon, 18 Aug 2014 15:03:19 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-7352) [Automation] Test case test_01_list_vpncustomergateways_pagination trying to delete vpncustomergateways twice 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-7352?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D14100715#comment-14100715 ]=20 ASF subversion and git services commented on CLOUDSTACK-7352: ------------------------------------------------------------- Commit 762f831c28c1c26c3d1ba4f314daa0ba280c9a6d in cloudstack's branch refs= /heads/master from [~gauravaradhye] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3D762f831 ] CLOUDSTACK-7352: Fixed issue in test_escalations_vpncustomergateways.py > [Automation] Test case test_01_list_vpncustomergateways_pagination trying= to delete vpncustomergateways twice=20 > -------------------------------------------------------------------------= ------------------------------------- > > Key: CLOUDSTACK-7352 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-735= 2 > Project: CloudStack > Issue Type: Test > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Automation > Affects Versions: 4.5.0 > Reporter: Rayees Namathponnan > Assignee: Gaurav Aradhye > Fix For: 4.5.0 > > > Test case integration.component.test_escalations_vpncustomergateways.Test= VpnCustomerGateways.test_01_list_vpncustomergateways_pagination fails with = below error=20 > {noformat} > xception: Job failed: {jobprocstatus : 0, created : u'2014-08-14T16:40:08= -0700', cmd : u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustome= rGatewayCmd', userid : u'db822ed4-23f9-11e4-9ac6-1a6f7bb0d0a8', jobstatus := 2, jobid : u'cd8c0ebd-499d-404f-80a7-ae018e329e86', jobresultcode : 530, j= obresulttype : u'object', jobresult : {errorcode : 530, errortext : u'Fail = to find customer gateway with 3 !'}, accountid : u'db8223a8-23f9-11e4-9ac6-= 1a6f7bb0d0a8'} > test_01_list_vpncustomergateways_pagination (integration.component.test_e= scalations_vpncustomergateways.TestVpnCustomerGateways): DEBUG: Response : = FAILED > test_01_list_vpncustomergateways_pagination (integration.component.test_e= scalations_vpncustomergateways.TestVpnCustomerGateways): ERROR: marvinReque= st : CmdName: Exception: ['Traceback (most recent cal= l last):\n', ' File "/usr/local/lib/python2.7/site-packages/marvin/cloudst= ackConnection.py", line 374, in marvinRequest\n raise self.__lastError\n= ', "Exception: Job failed: {jobprocstatus : 0, created : u'2014-08-14T16:40= :08-0700', cmd : u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCust= omerGatewayCmd', userid : u'db822ed4-23f9-11e4-9ac6-1a6f7bb0d0a8', jobstatu= s : 2, jobid : u'cd8c0ebd-499d-404f-80a7-ae018e329e86', jobresultcode : 530= , jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u'Fa= il to find customer gateway with 3 !'}, accountid : u'db8223a8-23f9-11e4-9a= c6-1a6f7bb0d0a8'}\n"] > Traceback (most recent call last): > File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnectio= n.py", line 374, in marvinRequest > raise self.__lastError > Exception: Job failed: {jobprocstatus : 0, created : u'2014-08-14T16:40:0= 8-0700', cmd : u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustom= erGatewayCmd', userid : u'db822ed4-23f9-11e4-9ac6-1a6f7bb0d0a8', jobstatus = : 2, jobid : u'cd8c0ebd-499d-404f-80a7-ae018e329e86', jobresultcode : 530, = jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u'Fail= to find customer gateway with 3 !'}, accountid : u'db8223a8-23f9-11e4-9ac6= -1a6f7bb0d0a8'} > test_01_list_vpncustomergateways_pagination (integration.component.test_e= scalations_vpncustomergateways.TestVpnCustomerGateways): CRITICAL: EXCEPTIO= N: test_01_list_vpncustomergateways_pagination: ['Traceback (most recent ca= ll last):\n', ' File "/usr/local/lib/python2.7/unittest/case.py", line 345= , in run\n self.tearDown()\n', ' File "/Repo_30X/ipcl/cloudstack/test/i= ntegration/component/test_escalations_vpncustomergateways.py", line 94, in = tearDown\n cleanup_resources(self.apiClient, self.cleanup)\n', ' File "= /usr/local/lib/python2.7/site-packages/marvin/lib/utils.py", line 121, in c= leanup_resources\n obj.delete(api_client)\n', ' File "/usr/local/lib/py= thon2.7/site-packages/marvin/lib/base.py", line 3418, in delete\n apicli= ent.deleteVpnCustomerGateway(cmd)\n', ' File "/usr/local/lib/python2.7/sit= e-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2333, in dele= teVpnCustomerGateway\n response =3D self.connection.marvinRequest(comman= d, response_type=3Dresponse, method=3Dmethod)\n', ' File "/usr/local/lib/p= ython2.7/site-packages/marvin/cloudstackConnection.py", line 379, in marvin= Request\n raise e\n', "Exception: Job failed: {jobprocstatus : 0, create= d : u'2014-08-14T16:40:08-0700', cmd : u'org.apache.cloudstack.api.command.= user.vpn.DeleteVpnCustomerGatewayCmd', userid : u'db822ed4-23f9-11e4-9ac6-1= a6f7bb0d0a8', jobstatus : 2, jobid : u'cd8c0ebd-499d-404f-80a7-ae018e329e86= ', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode := 530, errortext : u'Fail to find customer gateway with 3 !'}, accountid : u= 'db8223a8-23f9-11e4-9ac6-1a6f7bb0d0a8'}\n"] > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 345, in run > self.tearDown() > File "/Repo_30X/ipcl/cloudstack/test/integration/component/test_escalat= ions_vpncustomergateways.py", line 94, in tearDown > cleanup_resources(self.apiClient, self.cleanup) > File "/usr/local/lib/python2.7/site-packages/marvin/lib/utils.py", line= 121, in cleanup_resources > obj.delete(api_client) > File "/usr/local/lib/python2.7/site-packages/marvin/lib/base.py", line = 3418, in delete > apiclient.deleteVpnCustomerGateway(cmd) > File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloud= stackAPIClient.py", line 2333, in deleteVpnCustomerGateway > response =3D self.connection.marvinRequest(command, response_type=3Dr= esponse, method=3Dmethod) > File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnectio= n.py", line 379, in marvinReques > {noformat} > This test case deleteting VpnCustomerGateway twice=20 > First=20 > {noformat} > 238 # Deleting the VPM Customer Gateway present in page 2 > 239 VpnCustomerGateway.delete( > 240 vpncustomergateway_created, > 241 self.userapiclient > 242 ) > 243 # Listing all the VPN Customer Gateways in page 2 again > 244 list_vpncustomergateways_page2 =3D VpnCustomerGateway.list( > 245 sel= f.userapiclient, > 246 lis= tall=3Dself.services["listall"], > 247 pag= e=3D2, > 248 pag= esize=3Dself.services["pagesize"] > 249 ) > {noformat} > Also trying to delete as part of account clean up=20 > MS LOG > {noformat} > 2014-08-14 16:40:08,922 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina= -exec-19:ctx-d13d3f40 ctx-60b6e20b ctx-b343152e) submit async job- > 784, details: AsyncJobVO {id:784, userId: 2, accountId: 2, instanceType: = None, instanceId: null, cmd: org.apache.cloudstack.api.command.use > r.vpn.DeleteVpnCustomerGatewayCmd, cmdInfo: {"id":"1d8327e4-184d-4206-8a1= 9-0e6f37db9324","response":"json","ctxDetails":"{\"com.cloud.netwo > rk.Site2SiteCustomerGateway\":\"1d8327e4-184d-4206-8a19-0e6f37db9324\"}",= "cmdEventType":"VPN.S2S.CUSTOMER.GATEWAY.DELETE","ctxUserId":"2"," > httpmethod":"GET","uuid":"1d8327e4-184d-4206-8a19-0e6f37db9324","ctxAccou= ntId":"2","ctxStartEventId":"2249","apiKey":"uBqUNp_2XuCg6uwv_LMLO > 2W6drySk_RYAiVlcdSda1yBfLTiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ","signa= ture":"3AkusF0FXV+M2diQQHkz8yEGOSE\u003d"}, cmdVersion: 0, status: > IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 29= 066118877352, completeMsid: null, lastUpdated: null, lastPolled: n > ull, created: null} > 2014-08-14 16:40:08,923 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-d1= 3d3f40 ctx-60b6e20b ctx-b343152e) =3D=3D=3DEND=3D=3D=3D 10.223.240.194 -- = GET > response=3Djson&apiKey=3DuBqUNp_2XuCg6uwv_LMLO2W6drySk_RYAiVlcdSda1yBfL= TiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ&command=3DdeleteVpnCustomerGate > way&id=3D1d8327e4-184d-4206-8a19-0e6f37db9324&signature=3D3AkusF0FXV%2BM2= diQQHkz8yEGOSE%3D > 2014-08-14 16:40:08,927 DEBUG [c.c.a.ApiServlet] (catalina-exec-5:ctx-9f5= d871d) =3D=3D=3DSTART=3D=3D=3D 10.223.240.194 -- GET jobid=3Dcd8c0ebd-499= d-404 > f-80a7-ae018e329e86&apiKey=3DuBqUNp_2XuCg6uwv_LMLO2W6drySk_RYAiVlcdSda1yB= fLTiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ&command=3DqueryAsyncJobResu > lt&response=3Djson&signature=3Dp7o9WdrrztZYAqBhsvNBaB24zms%3D > 2014-08-14 16:40:08,944 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Exec= utor-115:ctx-7991e2f7 job-784) Unexpected exception while executin > g org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd > com.cloud.exception.InvalidParameterValueException: Fail to find customer= gateway with 3 ! > at com.cloud.network.vpn.Site2SiteVpnManagerImpl.deleteCustomerGa= teway(Site2SiteVpnManagerImpl.java:365) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.springframework.aop.support.AopUtils.invokeJoinpointUsingR= eflection(AopUtils.java:317) > at org.springframework.aop.framework.ReflectiveMethodInvocation.i= nvokeJoinpoint(ReflectiveMethodInvocation.java:183) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:150) > at org.apache.cloudstack.network.contrail.management.EventUtils$E= ventInterceptor.invoke(EventUtils.java:106) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:161) > at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInter= ceptor.java:51) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:161) > at org.springframework.aop.interceptor.ExposeInvocationIntercepto= r.invoke(ExposeInvocationInterceptor.java:91) > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)