You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Jayapal Reddy (JIRA)" <ji...@apache.org> on 2014/09/09 11:06:28 UTC
[jira] [Commented] (CLOUDSTACK-7421) [Automation] Exceptions in
orchestrate* methods from virtualMachineManagerImpl are shown in log
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126779#comment-14126779 ]
Jayapal Reddy commented on CLOUDSTACK-7421:
-------------------------------------------
I tried to fix the issue mentioned in the description (remove nic from vm), observed that there are other method which are start with orchestrate* are throwing exceptions which are not catched. These exceptions are showed in the logs.
In virtualMachineMangerImpl.java method orchestrate* (orchestrateRemoveNicFromVm, orchestrateAddVmToNetwork, orchestrateRemoveVmFromNetwork etc) thrown exceptions are not catcher by the async job implementation.
The fix needs to be done generically in vmwork async job implementaiton.
> [Automation] Exceptions in orchestrate* methods from virtualMachineManagerImpl are shown in log
> -----------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7421
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7421
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Management Server
> Affects Versions: 4.5.0
> Reporter: Rayees Namathponnan
> Assignee: Jayapal Reddy
> Fix For: 4.5.0
>
>
> Steps to reproduce
> 1 ) Deploy VM
> 2) Add one more nic
> 3) remove default nic the VM
> Result
> Below exception thrown in log, it should be handled with proper messgae
> cloud.vm.VmWorkRemoveNicFromVm for VM 30, job origin: 248
> 2014-08-23 09:50:33,665 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-61:ctx-5c747fe0 job-248/job-249) Unable to complete AsyncJobVO {id:249, userId: 2, accountId: 2, instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkRemoveNicFromVm, cmdInfo: rO0ABXNyACJjb20uY2xvdWQudm0uVm1Xb3JrUmVtb3ZlTmljRnJvbVZtxM1Xh9nBu10CAAFMAAVuaWNJZHQAEExqYXZhL2xhbmcvTG9uZzt4cgATY29tLmNsb3VkLnZtLlZtV29ya5-ZtlbwJWdrAgAESgAJYWNjb3VudElkSgAGdXNlcklkSgAEdm1JZEwAC2hhbmRsZXJOYW1ldAASTGphdmEvbGFuZy9TdHJpbmc7eHAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAB50ABlWaXJ0dWFsTWFjaGluZU1hbmFnZXJJbXBsc3IADmphdmEubGFuZy5Mb25nO4vkkMyPI98CAAFKAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cAAAAAAAAABI, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 90928106758026, completeMsid: null, lastUpdated: null, lastPolled: null, created: Sat Aug 23 09:50:32 PDT 2014}, job origin:248
> com.cloud.utils.exception.CloudRuntimeException: Failed to remove nic from VM[User|i-18-30-TestVM] in Ntwk[222|Guest|17], nic is default.
> at com.cloud.vm.VirtualMachineManagerImpl.orchestrateRemoveNicFromVm(VirtualMachineManagerImpl.java:2963)
> at com.cloud.vm.VirtualMachineManagerImpl.orchestrateRemoveNicFromVm(VirtualMachineManagerImpl.java:4690)
> 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:606)
> at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
> at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:4738)
> at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
> at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
> at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)