cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishan Kavala (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-7317) wrong message when trying to upgrade a running VM
Date Thu, 23 Oct 2014 15:09:35 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kishan Kavala resolved CLOUDSTACK-7317.
---------------------------------------
    Resolution: Not a Problem

> wrong message when trying to upgrade a running VM
> -------------------------------------------------
>
>                 Key: CLOUDSTACK-7317
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7317
>             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: shweta agarwal
>            Assignee: Kishan Kavala
>             Fix For: 4.5.0
>
>
> Repro steps:
> 1. Create a VM with small service offerings ( i did it on LXC hypervisor)
> 2. While VM is running change service offering 
> Bug:
> We get message This operation not permitted for this hypervisor of the vm
> Expected Result :
> Message should be related to VM  should be stopped while changing service offerings
> MS log shows :
> 2014-08-12 05:26:21,708 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-36:ctx-b9835d0e
job-439) Executing AsyncJobVO {id:439, userId: 2, accountId: 2, instanceType: None, instanceId:
null, cmd: org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin, cmdInfo: {"id":"033042b7-0973-4e00-b4b8-d9f3af49c3ac","response":"json","sessionkey":"HEgqZRWcriIz5k+MxuauDaQK6Wc\u003d","serviceofferingid":"b2a6ba7f-2f05-4a9b-ac2f-8e2f1c7dee1c","ctxDetails":"{\"com.cloud.vm.VirtualMachine\":\"033042b7-0973-4e00-b4b8-d9f3af49c3ac\",\"com.cloud.offering.ServiceOffering\":\"b2a6ba7f-2f05-4a9b-ac2f-8e2f1c7dee1c\"}","cmdEventType":"VM.UPGRADE","ctxUserId":"2","httpmethod":"GET","_":"1407835578042","uuid":"033042b7-0973-4e00-b4b8-d9f3af49c3ac","ctxAccountId":"2","ctxStartEventId":"278"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
233845177509765, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2014-08-12 05:26:21,709 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-ee357ccc ctx-490ac18f)
===END===  10.146.0.131 -- GET  command=scaleVirtualMachine&response=json&sessionkey=HEgqZRWcriIz5k%2BMxuauDaQK6Wc%3D&id=033042b7-0973-4e00-b4b8-d9f3af49c3ac&serviceofferingid=b2a6ba7f-2f05-4a9b-ac2f-8e2f1c7dee1c&_=1407835578042
> 2014-08-12 05:26:21,880 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-36:ctx-b9835d0e
job-439) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin
> com.cloud.exception.InvalidParameterValueException: This operation not permitted for
this hypervisor of the vm
>         at com.cloud.vm.UserVmManagerImpl.upgradeRunningVirtualMachine(UserVmManagerImpl.java:1339)
>         at com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1328)
>         at com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1264)
>         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:601)
>         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.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
>         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 $Proxy211.upgradeVirtualMachine(Unknown Source)
>         at org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin.execute(ScaleVMCmdByAdmin.java:46)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>         at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
>         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$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         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)
> 2014-08-12 05:26:21,881 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-36:ctx-b9835d0e
job-439) Complete async job-439, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"This
operation not permitted for this hypervisor of the vm"}
> 2014-08-12 05:26:21,954 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-36:ctx-b9835d0e
job-439) Done executing org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin for job-439
> 2014-08-12 05:26:21,987 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-36:ctx-b9835d0e
job-439) Remove job-439 from job monitoring
> 2014-08-12 05:26:22,724 INFO  [c.c.h.HighAvailabilityManagerImpl] (HA-3:ctx-8d7a8b62)
checking health of usage server
> 2014-08-12 05:26:22,725 DEBUG [c.c.h.HighAvailabilityManagerImpl] (HA-3:ctx-8d7a8b62)
usage server running? false, heartbeat: null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message