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 11DF617658 for ; Wed, 26 Aug 2015 08:35:46 +0000 (UTC) Received: (qmail 4631 invoked by uid 500); 26 Aug 2015 08:35:45 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 4585 invoked by uid 500); 26 Aug 2015 08:35:45 -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 4575 invoked by uid 500); 26 Aug 2015 08:35:45 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 4572 invoked by uid 99); 26 Aug 2015 08:35:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 08:35:45 +0000 Date: Wed, 26 Aug 2015 08:35:45 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8773) NPE in CheckRouterTask, when a DomainRouter happens to be expunged at the same time 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-8773?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D14712701#comment-14712701 ]=20 ASF GitHub Bot commented on CLOUDSTACK-8773: -------------------------------------------- GitHub user nlivens opened a pull request: https://github.com/apache/cloudstack/pull/745 CLOUDSTACK-8773 : NPE in CheckRouterTask, when a DomainRouter happens= =E2=80=A6 =E2=80=A6 to be expunged at the same time You can merge this pull request into a Git repository by running: $ git pull https://github.com/nlivens/cloudstack CLOUDSTACK-8773 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/745.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #745 =20 ---- commit f91955d9a914179e9fb35e0994ef2b1afc6a2a28 Author: Nick Livens Date: 2015-08-26T07:36:00Z CLOUDSTACK-8773 : NPE in CheckRouterTask, when a DomainRouter happens t= o be expunged at the same time ---- > NPE in CheckRouterTask, when a DomainRouter happens to be expunged at the= same time > -------------------------------------------------------------------------= ---------- > > Key: CLOUDSTACK-8773 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-877= 3 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Management Server > Affects Versions: 4.6.0 > Reporter: Nick Livens > Priority: Minor > > During restart network of a tier with public LB, following exception occu= rred: > {noformat:title=3Dexception in management-server.log} > 2015-07-24 02:09:06,086 DEBUG [c.c.a.t.Request] (Job-Executor-44:ctx-7e4a= 9dc8 ctx-f882738e) Seq 1-59048436: Received: { Ans: , MgmtId: 275619427002= 880, via: 1, Ver: v1, Flags: 10, { Answer } } > 2015-07-24 02:09:06,166 INFO [o.a.c.s.v.VolumeServiceImpl] (Job-Executor= -44:ctx-7e4a9dc8 ctx-f882738e) Volume 11 is not referred anywhere, remove i= t from volumes table > 2015-07-24 02:09:06,263 DEBUG [c.c.v.VirtualMachineManagerImpl] (Job-Exec= utor-44:ctx-7e4a9dc8 ctx-f882738e) Expunged VM[VpcInlineLoadBalancerVm|b-8-= VM] > 2015-07-24 02:09:06,391 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl= ] (RouterStatusMonitor-1:ctx-f911e31d) Found 2 routers to update status. > 2015-07-24 02:09:06,393 ERROR [c.c.n.r.VirtualNetworkApplianceManagerImpl= ] (RouterStatusMonitor-1:ctx-f911e31d) Fail to complete the CheckRouterTask= ! > java.lang.NullPointerException > at com.cloud.network.vpn.Site2SiteVpnManagerImpl.getConne= ctionsForRouter(Site2SiteVpnManagerImpl.java:732) > at sun.reflect.GeneratedMethodAccessor268.invoke(Unknown = Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega= tingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.springframework.aop.support.AopUtils.invokeJoinpoi= ntUsingReflection(AopUtils.java:317) > at org.springframework.aop.framework.ReflectiveMethodInvo= cation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) > at org.springframework.aop.framework.ReflectiveMethodInvo= cation.proceed(ReflectiveMethodInvocation.java:150) > at org.springframework.aop.interceptor.ExposeInvocationIn= terceptor.invoke(ExposeInvocationInterceptor.java:91) > at org.springframework.aop.framework.ReflectiveMethodInvo= cation.proceed(ReflectiveMethodInvocation.java:172) > at org.springframework.aop.framework.JdkDynamicAopProxy.i= nvoke(JdkDynamicAopProxy.java:204) > at com.sun.proxy.$Proxy206.getConnectionsForRouter(Unknow= n Source) > at com.cloud.network.router.VirtualNetworkApplianceManage= rImpl.updateSite2SiteVpnConnectionState(VirtualNetworkApplianceManagerImpl.= java:1044) > at com.cloud.network.router.VirtualNetworkApplianceManage= rImpl$CheckRouterTask.runInContext(VirtualNetworkApplianceManagerImpl.java:= 1348) > at org.apache.cloudstack.managed.context.ManagedContextRu= nnable$1.run(ManagedContextRunnable.java:49) > at org.apache.cloudstack.managed.context.impl.DefaultMana= gedContext$1.call(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultMana= gedContext.callWithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultMana= gedContext.runWithContext(DefaultManagedContext.java:53) > at org.apache.cloudstack.managed.context.ManagedContextRu= nnable.run(ManagedContextRunnable.java:46) > at java.util.concurrent.Executors$RunnableAdapter.call(Ex= ecutors.java:471) > at java.util.concurrent.FutureTask.runAndReset(FutureTask= .java:304) > at java.util.concurrent.ScheduledThreadPoolExecutor$Sched= uledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) > at java.util.concurrent.ScheduledThreadPoolExecutor$Sched= uledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Thre= adPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Thr= eadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > 2015-07-24 02:09:06,580 DEBUG [c.c.n.l.VpcInlineLoadBalancerVMMan= agerImpl] (Job-Executor-44:ctx-7e4a9dc8 ctx-f882738e) Attempting to destroy= VpcInline LB vm 8 > 2015-07-24 02:09:06,586 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Jo= b-Executor-44:ctx-7e4a9dc8 ctx-f882738e) Sending network shutdown to NuageV= spVpc > 2015-07-24 02:09:06,605 DEBUG [c.c.n.NetworkModelImpl] (Job-Execu= tor-44:ctx-7e4a9dc8 ctx-f882738e) Service SecurityGroup is not supported in= the network id=3D205 > 2015-07-24 02:09:06,616 DEBUG [c.c.n.NetworkModelImpl] (Job-Execu= tor-44:ctx-7e4a9dc8 ctx-f882738e) Service SecurityGroup is not supported in= the network id=3D205 > 2015-07-24 02:09:06,638 DEBUG [c.c.a.t.Request] (Job-Executor-44:= ctx-7e4a9dc8 ctx-f882738e) Seq 2-1517683227: Sending { Cmd , MgmtId: 27561= 9427002880, via: 2(ovs-5.mvdcdev40.us.alcatel-lucent.com), Ver: v1, Flags: = 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.2= .0.1","networkDomain":"cs2cloud.internal","isRedundant":false,"add":false,"= nic":{"deviceId":3,"networkRateMbps":200,"defaultNic":false,"uuid":"23f1bfb= 6-c108-450e-9e64-07bd7bb925de","ip":"10.2.0.2","netmask":"255.255.255.0","g= ateway":"10.2.0.1","mac":"02:00:4d:62:00:06","broadcastType":"Vsp","type":"= Guest","broadcastUri":"vsp://eda2664c-510a-413d-865d-cae1e81e2492/10.2.0.2"= ,"isolationUri":"vsp://eda2664c-510a-413d-865d-cae1e81e2492/10.2.0.2","isSe= curityGroupEnabled":false,"name":"alubr0"},"accessDetails":{"router.guest.i= p":"10.2.0.2","guest.network.gateway":"10.2.0.1","guest.bridge":"10.2.0.255= ","router.name":"r-3-VM","router.ip":"169.254.1.218"},"wait":0}}] } > 2015-07-24 02:09:06,972 DEBUG [c.c.a.m.AgentManagerImpl] (AgentMa= nager-Handler-10:null) SeqA 4-2186: Processing Seq 4-2186: { Cmd , MgmtId:= -1, via: 4, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadRep= ortCommand":{"_proxyVmId":1,"_loadInfo":"{\n \"connections\": []\n}","wait= ":0}}] } > 2015-07-24 02:09:07,122 DEBUG [c.c.a.m.AgentManagerImpl] (AgentMa= nager-Handler-10:null) SeqA 4-2186: Sending Seq 4-2186: { Ans: , MgmtId: 2= 75619427002880, via: 4, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.Agen= tControlAnswer":{"result":true,"wait":0}}] } > 2015-07-24 02:09:08,241 DEBUG [c.c.a.ApiServlet] (catalina-exec-1= 3:ctx-5fb5fd39) =3D=3D=3DSTART=3D=3D=3D 135.227.144.153 -- GET command=3D= queryAsyncJobResult&jobId=3D923f4918-7b64-49d5-ad77-c57d876ef485&response= =3Djson&sessionkey=3D5QOFysAGycdMBRGtgQ7uSCOYwLE%3D&_=3D1437703748233 > {noformat} > DomainRouterDao.listIsolatedByHostId() will return a null element in the = result list, when a Domain Router is being expunged. -- This message was sent by Atlassian JIRA (v6.3.4#6332)