You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sateesh Chodapuneedi (JIRA)" <ji...@apache.org> on 2013/12/28 10:10:50 UTC

[jira] [Commented] (CLOUDSTACK-5666) Cant remove a nic when a vm is in the Stopped state

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857988#comment-13857988 ] 

Sateesh Chodapuneedi commented on CLOUDSTACK-5666:
--------------------------------------------------

Able to reproduce this issue.
 Root cause is that while removing a NIC from VM, the code is trying to fetch cluster associated with this VM.
 But as the its in stopped state, hostId remains to be NULL. Hence NullPointerException.
 Fix is to try to fetch cluster using last host's Id.

> Cant remove a nic when a vm is in the Stopped state 
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-5666
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5666
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: VMware
>    Affects Versions: 4.2.0
>         Environment: Exception seen when executing remove nic, when a vm is stopped.
>  2013-11-04 15:49:04,508 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-258803 = [ 63d4cd4b-bda7-498d-a8e6-a747b47043ed ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.RemoveNicFromVMCmd
>  java.lang.NullPointerException
>  at com.cloud.hypervisor.guru.VMwareGuru.implement(VMwareGuru.java:191)
>  at com.cloud.vm.VirtualMachineManagerImpl.removeNicFromVm(VirtualMachineManagerImpl.java:2998)
>  at com.cloud.vm.UserVmManagerImpl.removeNicFromVirtualMachine(UserVmManagerImpl.java:1018)
>  at org.apache.cloudstack.api.command.user.vm.RemoveNicFromVMCmd.execute(RemoveNicFromVMCmd.java:103)
>  at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>  at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>  at java.lang.Thread.run(Thread.java:680)
>            Reporter: Sateesh Chodapuneedi
>            Assignee: Sateesh Chodapuneedi
>            Priority: Critical
>             Fix For: 4.3.0
>
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)