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 E07E110C0D for ; Wed, 8 Jan 2014 11:25:10 +0000 (UTC) Received: (qmail 46544 invoked by uid 500); 8 Jan 2014 11:24:59 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 46501 invoked by uid 500); 8 Jan 2014 11:24:56 -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 46473 invoked by uid 500); 8 Jan 2014 11:24:52 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 46464 invoked by uid 99); 8 Jan 2014 11:24:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 11:24:51 +0000 Date: Wed, 8 Jan 2014 11:24:51 +0000 (UTC) From: "Jayapal Reddy (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-5728) [Automation] ReplaceNetworkACLListCmd command failing with NPE 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-5728?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13865324#comment-13865324 ]=20 Jayapal Reddy commented on CLOUDSTACK-5728: ------------------------------------------- This issue is not reproduced in kvm. Here are the logs: 014-01-08 12:16:24,393 DEBUG [c.c.a.ApiServlet] (1261850651@qtp-860455612-9= :ctx-5f9558d2 ctx-4c10ab71) =3D=3D=3DEND=3D=3D=3D 0:0:0:0:0:0:0:1 -- GET c= ommand=3DqueryAsyncJobResult&jobId=3D642bf230-a78e-43cf-84f8-9b4892d05645&r= esponse=3Djson&sessionkey=3Dm0f5Grg1WJ6i8fugT10R5Ui3q7A%3D&_=3D138916358431= 4 2014-01-08 12:16:26,118 DEBUG [c.c.a.ApiServlet] (1261850651@qtp-860455612-= 9:ctx-d0aeced7) =3D=3D=3DSTART=3D=3D=3D 0:0:0:0:0:0:0:1 -- GET command=3Dr= eplaceNetworkACLList&gatewayid=3D97ecfb5d-e042-495a-8057-8b853ec7249c&aclid= =3D1ffabcfb-c3ae-4fb0-9b1b-b81fe1c6b511&response=3Djson&sessionkey=3Dm0f5Gr= g1WJ6i8fugT10R5Ui3q7A%3D&_=3D1389163586064 2014-01-08 12:16:26,211 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (1261850651= @qtp-860455612-9:ctx-d0aeced7 ctx-a2dbd08e) submit async job-198, details: = AsyncJobVO {id:198, userId: 2, accountId: 2, instanceType: None, instanceId= : null, cmd: org.apache.cloudstack.api.command.user.network.ReplaceNetworkA= CLListCmd, cmdInfo: {"response":"json","aclid":"1ffabcfb-c3ae-4fb0-9b1b-b81= fe1c6b511","sessionkey":"m0f5Grg1WJ6i8fugT10R5Ui3q7A\u003d","cmdEventType":= "NETWORK.ACL.REPLACE","ctxUserId":"2","gatewayid":"97ecfb5d-e042-495a-8057-= 8b853ec7249c","httpmethod":"GET","_":"1389163586064","ctxAccountId":"2","ct= xStartEventId":"320"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0= , resultCode: 0, result: null, initMsid: 101318455136477, completeMsid: nul= l, lastUpdated: null, lastPolled: null, created: null} 2014-01-08 12:16:26,212 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-9= :ctx-d7e47a7e) Add job-198 into job monitoring 2014-01-08 12:16:26,212 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Execut= or-9:ctx-d7e47a7e) Executing AsyncJobVO {id:198, userId: 2, accountId: 2, i= nstanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command= .user.network.ReplaceNetworkACLListCmd, cmdInfo: {"response":"json","aclid"= :"1ffabcfb-c3ae-4fb0-9b1b-b81fe1c6b511","sessionkey":"m0f5Grg1WJ6i8fugT10R5= Ui3q7A\u003d","cmdEventType":"NETWORK.ACL.REPLACE","ctxUserId":"2","gateway= id":"97ecfb5d-e042-495a-8057-8b853ec7249c","httpmethod":"GET","_":"13891635= 86064","ctxAccountId":"2","ctxStartEventId":"320"}, cmdVersion: 0, status: = IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 10131= 8455136477, completeMsid: null, lastUpdated: null, lastPolled: null, create= d: null} 2014-01-08 12:16:26,212 DEBUG [c.c.a.ApiServlet] (1261850651@qtp-860455612-= 9:ctx-d0aeced7 ctx-a2dbd08e) =3D=3D=3DEND=3D=3D=3D 0:0:0:0:0:0:0:1 -- GET = command=3DreplaceNetworkACLList&gatewayid=3D97ecfb5d-e042-495a-8057-8b853ec= 7249c&aclid=3D1ffabcfb-c3ae-4fb0-9b1b-b81fe1c6b511&response=3Djson&sessionk= ey=3Dm0f5Grg1WJ6i8fugT10R5Ui3q7A%3D&_=3D1389163586064 2014-01-08 12:16:26,273 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] = (Job-Executor-9:ctx-d7e47a7e ctx-a2dbd08e) Applying network acls in network= Ntwk[210|Guest|5] 2014-01-08 12:16:26,281 DEBUG [c.c.n.NetworkModelImpl] (Job-Executor-9:ctx-= d7e47a7e ctx-a2dbd08e) Service SecurityGroup is not supported in the networ= k id=3D210 2014-01-08 12:16:26,286 DEBUG [c.c.a.t.Request] (Job-Executor-9:ctx-d7e47a7= e ctx-a2dbd08e) Seq 2-278396951: Sending { Cmd , MgmtId: 101318455136477, v= ia: 2(idc-kvm11), Ver: v1, Flags: 100001, [{"com.cloud.agent.api.routing.Se= tNetworkACLCommand":{"rules":[{"id":0,"vlanTag":"61","protocol":"tcp","port= Range":[22,22],"revoked":false,"alreadyAdded":true,"cidrList":["10.0.0.0/0"= ],"trafficType":"Ingress","action":"ACCEPT","number":1},{"id":0,"vlanTag":"= 61","protocol":"tcp","portRange":[23,23],"revoked":false,"alreadyAdded":tru= e,"cidrList":["10.0.0.0/0"],"trafficType":"Egress","action":"ACCEPT","numbe= r":2}],"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":= "a9a7053c-46c1-4dc9-b9a5-b54fbe4b4b07","ip":"10.147.61.3","netmask":"255.25= 5.255.0","gateway":"10.147.61.1","mac":"06:69:b0:00:00:17","broadcastType":= "Vlan","type":"Guest","broadcastUri":"vlan://61","isolationUri":"vlan://61"= ,"isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.147= .61.3","guest.vlan.tag":"61","zone.network.type":"Advanced","vpc.gateway.pr= ivate":"Private","router.ip":"169.254.0.41","router.name":"r-10-VM"},"wait"= :0}}] } 2014-01-08 12:16:26,819 DEBUG [c.c.a.t.Request] (AgentManager-Handler-10:nu= ll) Seq 2-278396951: Processing: { Ans: , MgmtId: 101318455136477, via: 2,= Ver: v1, Flags: 0, [{"com.cloud.agent.api.routing.SetNetworkACLAnswer":{"r= esults":[null,null],"result":true,"wait":0}}] } 2014-01-08 12:16:26,820 DEBUG [c.c.a.t.Request] (Job-Executor-9:ctx-d7e47a7= e ctx-a2dbd08e) Seq 2-278396951: Received: { Ans: , MgmtId: 101318455136477= , via: 2, Ver: v1, Flags: 0, { SetNetworkACLAnswer } } 2014-01-08 12:16:26,821 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Execut= or-9:ctx-d7e47a7e ctx-a2dbd08e) Complete async job-198, jobStatus: SUCCEEDE= D, resultCode: 0, result: org.apache.cloudstack.api.response.SuccessRespons= e/null/{"success":true} 2014-01-08 12:16:26,861 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Execut= or-9:ctx-d7e47a7e) Done executing org.apache.cloudstack.api.command.user.ne= twork.ReplaceNetworkACLListCmd for job-198 2014-01-08 12:16:26,902 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Job-Ex > [Automation] ReplaceNetworkACLListCmd command failing with NPE > -------------------------------------------------------------- > > Key: CLOUDSTACK-5728 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-572= 8 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Network Controller > Affects Versions: 4.3.0 > Environment: KVM and vmware > branch 4.3 > Reporter: Rayees Namathponnan > Assignee: Jayapal Reddy > Priority: Blocker > Fix For: 4.3.0 > > Attachments: management-server.rar > > > BVT test case test_privategw_acl.TestPrivateGwACL.test_privategw_acl fail= ing with NPE, this failure observed from Dec 27th on words=20 > Test case performing below steps=20 > # 1) Create VPC > # 2) Create ACl > # 3) Create ACl Item > # 4) Create network with ACL > # 6) update acl id > Observed below error=20 > 7577-47b5-bb33-db9f8c542de0","httpmethod":"GET","ctxAccountId":"2","ctxSt= artEventId":"1063","apiKey":"EHF5nlA7E3UW18UHPpnUOrB1KScPXUdMPFtCl8t7tNc2k_= 1n0ZkD0Tv-X8Lp9OXMy4uPGReYq3R9q2ddkIb-2g","signature":"vIdDK7TNp5mRqcgsEs+m= 3lGSdjc\u > 003d"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode:= 0, result: null, initMsid: 29066118877352, completeMsid: null, lastUpdated= : null, lastPolled: null, created: null} > 2014-01-02 14:14:51,316 DEBUG [c.c.a.ApiServlet] (catalina-exec-18:ctx-60= 7621af ctx-a91ea8f3 ctx-6baa9395) =3D=3D=3DEND=3D=3D=3D 10.223.240.194 -- = GET apiKey=3DEHF5nlA7E3UW18UHPpnUOrB1KScPXUdMPFtCl8t7tNc2k_1n0ZkD0Tv-X8Lp9= OXMy4uPGReYq3R9q2ddkIb- > 2g&aclid=3D5db946bd-d5a2-47bd-8dda-1653c21b2af5&command=3DreplaceNetworkA= CLList&signature=3DvIdDK7TNp5mRqcgsEs%2Bm3lGSdjc%3D&gatewayid=3Da51a8831-75= 77-47b5-bb33-db9f8c542de0&response=3Djson > 2014-01-02 14:14:51,320 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-a8= 650844) =3D=3D=3DSTART=3D=3D=3D 10.223.240.194 -- GET signature=3DIm99pBF= JIOBuch6mHvf4WilMbwU%3D&apiKey=3DEHF5nlA7E3UW18UHPpnUOrB1KScPXUdMPFtCl8t7tN= c2k_1n0ZkD0Tv-X8Lp9OXMy4u > PGReYq3R9q2ddkIb-2g&command=3DqueryAsyncJobResult&response=3Djson&jobid= =3De9391f75-b3ee-4255-8bc7-5439dd7ba68f > 2014-01-02 14:14:51,341 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl= ] (Job-Executor-1:ctx-f84f626a ctx-6baa9395) Applying network acls in netwo= rk Ntwk[239|Guest|5] > 2014-01-02 14:14:51,346 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-a8= 650844 ctx-36cff002 ctx-0b21bcc7) =3D=3D=3DEND=3D=3D=3D 10.223.240.194 -- = GET signature=3DIm99pBFJIOBuch6mHvf4WilMbwU%3D&apiKey=3DEHF5nlA7E3UW18UHPp= nUOrB1KScPXUdMPFtCl8t7tNc > 2k_1n0ZkD0Tv-X8Lp9OXMy4uPGReYq3R9q2ddkIb-2g&command=3DqueryAsyncJobResult= &response=3Djson&jobid=3De9391f75-b3ee-4255-8bc7-5439dd7ba68f > 2014-01-02 14:14:51,364 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor= -1:ctx-f84f626a) Unexpected exception while executing org.apache.cloudstack= .api.command.user.network.ReplaceNetworkACLListCmd > java.lang.NullPointerException > at com.cloud.hypervisor.HypervisorGuruBase.toNicTO(HypervisorGuru= Base.java:60) > at com.cloud.vm.VirtualMachineManagerImpl.toNicTO(VirtualMachineM= anagerImpl.java:3212) > at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl= .getNicTO(VpcVirtualNetworkApplianceManagerImpl.java:489) > at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl= .createNetworkACLsCommands(VpcVirtualNetworkApplianceManagerImpl.java:699) > at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl= .sendNetworkACLs(VpcVirtualNetworkApplianceManagerImpl.java:673) > at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl= $2.execute(VpcVirtualNetworkApplianceManagerImpl.java:665) > at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.ap= plyRules(VirtualNetworkApplianceManagerImpl.java:3738) > at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl= .applyNetworkACLs(VpcVirtualNetworkApplianceManagerImpl.java:662) > 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:616) > 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.springframework.aop.interceptor.ExposeInvocationIntercepto= r.invoke(ExposeInvocationInterceptor.java:91) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:172) > at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(Jd= kDynamicAopProxy.java:204) > at $Proxy240.applyNetworkACLs(Unknown Source) > at com.cloud.network.element.VpcVirtualRouterElement.applyACLItem= sToPrivateGw(VpcVirtualRouterElement.java:473) > at com.cloud.network.vpc.NetworkACLManagerImpl.applyACLToPrivateG= w(NetworkACLManagerImpl.java:385) > at com.cloud.network.vpc.NetworkACLManagerImpl.applyACLToPrivateG= w(NetworkACLManagerImpl.java:372) > at com.cloud.network.vpc.NetworkACLManagerImpl.replaceNetworkACLF= orPrivateGw(NetworkACLManagerImpl.java:175) > 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:616) > 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.springframework.aop.interceptor.ExposeInvocationIntercepto= r.invoke(ExposeInvocationInterceptor.java:91) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:172) > at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(Jd= kDynamicAopProxy.java:204) > at $Proxy224.replaceNetworkACLForPrivateGw(Unknown Source) > at com.cloud.network.vpc.NetworkACLServiceImpl.replaceNetworkACLo= nPrivateGw(NetworkACLServiceImpl.java:257) > at org.apache.cloudstack.api.command.user.network.ReplaceNetworkA= CLListCmd.execute(ReplaceNetworkACLListCmd.java:109) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) > at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJo= bDispatcher.java:109) > at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatche= r.java:66) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt$1.call(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.callWithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.runWithContext(DefaultManagedContext.java:53) > at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatch= er.java:63) > at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$= 5.runInContext(AsyncJobManagerImpl.java:522) > at org.apache.cloudstack.managed.context.ManagedContextRunnable$1= .run(ManagedContextRunnable.java:49) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt$1.call(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.callWithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.runWithContext(DefaultManagedContext.java:53) > at org.apache.cloudstack.managed.context.ManagedContextRunnable.r= un(ManagedContextRunnable.java:46) > : -- This message was sent by Atlassian JIRA (v6.1.5#6160)