[ https://issues.apache.org/jira/browse/CLOUDSTACK-5752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Likitha Shetty reassigned CLOUDSTACK-5752: ------------------------------------------ Assignee: Kelven Yang (was: Likitha Shetty) As part of Persistent network creation, while the Router VM is being started during the network implementation, an NPE is thrown. NPE is thrown at VirtualMachineManagerImpl->advanceStart() line 743 because the current AsyncJobExecutionContext is null. When i disabled vmsync the issue was not observed and persistent network creation was successful. Kelven, could you please take a look at this bug? > Persistent network fails to implement > -------------------------------------- > > Key: CLOUDSTACK-5752 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5752 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Network Controller > Affects Versions: 4.3.0 > Environment: Advanced zone, any hypervisor > Reporter: Sowmya Krishnan > Assignee: Kelven Yang > Priority: Blocker > Fix For: 4.3.0 > > Attachments: ms.log > > > Latest build fails to implement a persistent network. > Steps: > Create isolated network offering with persistent = true > Launch a network with this offering. > Logs simply say that it fails to implement the network and router fails to > launch and throws an NPE: > 2014-01-03 14:02:36,344 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Starting router > VM[DomainRouter|r-34-VM] > 2014-01-03 14:02:36,344 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Cleaning up because we're unable > to implement the network Ntwk[219|Guest|22] > 2014-01-03 14:02:36,349 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Lock is acquired for network > Ntwk[219|Guest|22] as a part of network shutdown > 2014-01-03 14:02:36,355 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Releasing 0 port forwarding rules > for network id=219 as a part of shutdownNetworkRu > les > 2014-01-03 14:02:36,355 DEBUG [c.c.n.f.FirewallManagerImpl] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) There are no rules to forward to > the network elements > 2014-01-03 14:02:36,356 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Releasing 0 static nat rules for > network id=219 as a part of shutdownNetworkRules > 2014-01-03 14:02:36,356 DEBUG [c.c.n.f.FirewallManagerImpl] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) There are no rules to forward to > the network elements > 2014-01-03 14:02:36,357 DEBUG [c.c.n.l.LoadBalancingRulesManagerImpl] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Revoking 0 Public load balancing > rules for network id=219 > ... > ... > 2014-01-03 14:02:36,383 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Sending network shutdown to > VirtualRouter > 2014-01-03 14:02:36,384 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Stopping router > VM[DomainRouter|r-34-VM] > 2014-01-03 14:02:36,384 WARN [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-9:ctx-e1417c9c ctx-499be25e) Unable to complete shutdown of > the network elements due to element: VirtualRouter > java.lang.NullPointerException > at > com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1268) > at > com.cloud.network.router.VirtualNetworkApplianceManagerImpl.stop(VirtualNetworkApplianceManagerImpl.java:2702) > at > com.cloud.network.router.VirtualNetworkApplianceManagerImpl.stop(VirtualNetworkApplianceManagerImpl.java:139) > 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:616) > 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.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) > at $Proxy240.stop(Unknown Source) > at > com.cloud.network.element.VirtualRouterElement.shutdown(VirtualRouterElement.java:665) > at > org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.shutdownNetworkElementsAndResources(NetworkOrchestrator.java:2052) > at > org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.shutdownNetwork(NetworkOrchestrator.java:1965) > at > org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.implementNetwork(NetworkOrchestrator.java:989) > at > com.cloud.network.NetworkServiceImpl.createGuestNetwork(NetworkServiceImpl.java:1272) > 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:616) > 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 > com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) > at $Proxy199.createGuestNetwork(Unknown Source) > at > org.apache.cloudstack.api.command.user.network.CreateNetworkCmd.execute(CreateNetworkCmd.java:294) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) -- This message was sent by Atlassian JIRA (v6.1.5#6160)