[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gaurav Aradhye resolved CLOUDSTACK-7352.
----------------------------------------

    Resolution: Fixed

> [Automation] Test case test_01_list_vpncustomergateways_pagination trying to 
> delete vpncustomergateways twice 
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7352
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7352
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          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.TestVpnCustomerGateways.test_01_list_vpncustomergateways_pagination
>  fails with below error 
> {noformat}
> xception: Job failed: {jobprocstatus : 0, created : 
> u'2014-08-14T16:40:08-0700', cmd : 
> u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', 
> 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_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 0x1971b790> Exception: ['Traceback (most recent call last):\n', '  
> File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.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.DeleteVpnCustomerGatewayCmd', 
> 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'}\n"]
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 
> 374, in marvinRequest
>     raise self.__lastError
> Exception: Job failed: {jobprocstatus : 0, created : 
> u'2014-08-14T16:40:08-0700', cmd : 
> u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', 
> 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_escalations_vpncustomergateways.TestVpnCustomerGateways):
>  CRITICAL: EXCEPTION: test_01_list_vpncustomergateways_pagination: 
> ['Traceback (most recent call 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/integration/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 
> cleanup_resources\n    obj.delete(api_client)\n', '  File 
> "/usr/local/lib/python2.7/site-packages/marvin/lib/base.py", line 3418, in 
> delete\n    apiclient.deleteVpnCustomerGateway(cmd)\n', '  File 
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
>  line 2333, in deleteVpnCustomerGateway\n    response = 
> self.connection.marvinRequest(command, response_type=response, 
> method=method)\n', '  File 
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 
> 379, in marvinRequest\n    raise e\n', "Exception: Job failed: {jobprocstatus 
> : 0, created : u'2014-08-14T16:40:08-0700', cmd : 
> u'org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd', 
> 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'}\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_escalations_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/cloudstackAPIClient.py",
>  line 2333, in deleteVpnCustomerGateway
>     response = self.connection.marvinRequest(command, response_type=response, 
> method=method)
>   File 
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 
> 379, in marvinReques
> {noformat}
> This test case deleteting VpnCustomerGateway twice 
> First 
> {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 = VpnCustomerGateway.list(
>  245                                                                  
> self.userapiclient,
>  246                                                                  
> listall=self.services["listall"],
>  247                                                                  page=2,
>  248                                                                  
> pagesize=self.services["pagesize"]
>  249                                                                  )
> {noformat}
> Also trying to delete as part of account clean up 
> 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-8a19-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","ctxAccountId":"2","ctxStartEventId":"2249","apiKey":"uBqUNp_2XuCg6uwv_LMLO
> 2W6drySk_RYAiVlcdSda1yBfLTiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ","signature":"3AkusF0FXV+M2diQQHkz8yEGOSE\u003d"},
>  cmdVersion: 0, status:
>  IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 
> 29066118877352, 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-d13d3f40 ctx-60b6e20b ctx-b343152e) ===END===  
> 10.223.240.194 -- GET
>   
> response=json&apiKey=uBqUNp_2XuCg6uwv_LMLO2W6drySk_RYAiVlcdSda1yBfLTiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ&command=deleteVpnCustomerGate
> way&id=1d8327e4-184d-4206-8a19-0e6f37db9324&signature=3AkusF0FXV%2BM2diQQHkz8yEGOSE%3D
> 2014-08-14 16:40:08,927 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-5:ctx-9f5d871d) ===START===  10.223.240.194 -- GET  
> jobid=cd8c0ebd-499d-404
> f-80a7-ae018e329e86&apiKey=uBqUNp_2XuCg6uwv_LMLO2W6drySk_RYAiVlcdSda1yBfLTiC2SAlFk2LX9HLLpPkAs0zoTzASxzSN0OSUnfoQ&command=queryAsyncJobResu
> lt&response=json&signature=p7o9WdrrztZYAqBhsvNBaB24zms%3D
> 2014-08-14 16:40:08,944 ERROR [c.c.a.ApiAsyncJobDispatcher] 
> (API-Job-Executor-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.deleteCustomerGateway(Site2SiteVpnManagerImpl.java:365)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at 
> org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         at 
> com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to