[
https://issues.apache.org/jira/browse/CLOUDSTACK-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668986#comment-13668986
]
Sheng Yang commented on CLOUDSTACK-2632:
----------------------------------------
Strange, line 2603 of 7ee71dfd87e0405bf41adb18c20c5825dffc8f71 is:
2603 @Override
2604 public void finalizeStop(VirtualMachineProfile<DomainRouterVO>
profile, StopAnswer answer) {
2605 if (answer != null) {
2606 VMInstanceVO vm = profile.getVirtualMachine();
2607 DomainRouterVO domR = _routerDao.findById(vm.getId());
2608 processStopOrRebootAnswer(domR, answer);
2609 List<? extends Nic> routerNics =
_nicDao.listByVmId(profile.getId());
2610 for (Nic nic : routerNics) {
2611 Network network =
_networkModel.getNetwork(nic.getNetworkId());
2612 if (network.getTrafficType() == TrafficType.Guest &&
nic.getBroadcastUri() != null &&
nic.getBroadcastUri().getScheme().equals("pvlan")) {
2613 NicProfile nicProfile = new NicProfile(nic,
network, nic.getBroadcastUri(), nic.getIsolationUri(), 0, false, "pvlan-nic");
2614 setupDhcpForPvlan(false, domR, domR.getHostId(),
nicProfile);
2615 }
2616 }
2617
2618 }
2619 }
I would check what's wrong.
> [Automation] Failed to stop VR with null pointer exception
> -----------------------------------------------------------
>
> Key: CLOUDSTACK-2632
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2632
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Network Controller
> Affects Versions: 4.2.0
> Environment: VMware
> Master branch build (4.2.0)
> Reporter: Rayees Namathponnan
> Assignee: Sheng Yang
> Priority: Blocker
> Fix For: 4.2.0
>
>
> This issue is observed in automation VMare environment
> Steps to reproduce
> Step 1 : Create an account
> Step 2 : login to account and create a VM
> Step 3 : Delete the account
> VR always shows in stoping state, and null pointer error exception
> pAnswer } }
> 2013-05-22 15:50:15,283 DEBUG [agent.manager.AgentAttache]
> (DirectAgent-236:null) Seq 4-826868349: No more commands found
> 2013-05-22 15:50:15,283 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl] (AccountChecker-1:null)
> Successfully updated user statistics as a part of domR
> VM[DomainRouter|r-127-QA] reboot/stop
> 2013-05-22 15:50:15,288 WARN [cloud.network.NetworkManagerImpl]
> (AccountChecker-1:null) Unable to complete shutdown of the network elements
> due to element: VirtualRouter
> java.lang.NullPointerException
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.finalizeStop(VirtualNetworkApplianceManagerImpl.java:2612)
> at
> com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.finalizeStop(VpcVirtualNetworkApplianceManagerImpl.java:1396)
> at
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1179)
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.stop(VirtualNetworkApplianceManagerImpl.java:2741)
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.stop(VirtualNetworkApplianceManagerImpl.java:258)
> at
> com.cloud.network.element.VirtualRouterElement.shutdown(VirtualRouterElement.java:657)
> at
> com.cloud.network.NetworkManagerImpl.shutdownNetworkElementsAndResources(NetworkManagerImpl.java:2625)
> at
> com.cloud.network.NetworkManagerImpl.shutdownNetwork(NetworkManagerImpl.java:2555)
> at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
> com.cloud.network.NetworkManagerImpl.destroyNetwork(NetworkManagerImpl.java:2684)
> at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
> com.cloud.user.AccountManagerImpl.cleanupAccount(AccountManagerImpl.java:655)
> at
> com.cloud.user.AccountManagerImpl$AccountCleanupTask.run(AccountManagerImpl.java:1460)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
> 2013-05-22 15:50:15,294 DEBUG [cloud.network.NetworkManagerImpl]
> (AccountChecker-1:null) Network is not not in the correct state to be
> destroyed: Implemented
> 2013-05-22 15:50:15,294 WARN [cloud.user.AccountManagerImpl]
> (AccountChecker-1:null) Unable to destroy network Ntwk[278|Guest|8] as a part
> of account id=115 cleanup.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira