cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharat Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-4068) scaling up user vm and system vm is failing with NPE if current service offering is deleted
Date Fri, 16 Aug 2013 16:22:48 GMT

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

Bharat Kumar resolved CLOUDSTACK-4068.
--------------------------------------

    Resolution: Fixed
    
> scaling up user vm  and system vm is failing  with NPE if current  service offering is
deleted
> ----------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4068
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4068
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.2.0
>         Environment: hypervisor :VMware esxi 5.1
>            Reporter: prashant kumar mishra
>            Assignee: Bharat Kumar
>             Fix For: 4.2.0
>
>         Attachments: Logs_DB.rar
>
>
>     Steps to reproduce
>  ---------------------------- 
> 1-prepare a CS setup with vmware esxi 5.1 
> 2-deploy a vm with SO "small instance" 
> 3-delete service offering "small instance" 
> 4-Try to scaleup vm to medium instance 
> Expected 
> -------------- 
> 1-scaleup should be successful
>  Actual 
> ---------- 
> 1-scaleup is failing with NPE 
> Logs
>  ----------
>  2013-08-05 17:38:21,655 DEBUG [cloud.api.ApiDispatcher] (catalina-exec-20:null) ControlledEntity
name is:com.cloud.vm.VirtualMachine 2013-08-05 17:38:21,662 DEBUG [cloud.api.ApiDispatcher]
(catalina-exec-20:null) ControlledEntity name is:com.cloud.uservm.UserVm 2013-08-05 17:38:21,667
DEBUG [cloud.api.ApiDispatcher] (catalina-exec-20:null) ControlledEntity name is:com.cloud.network.router.VirtualRouter
2013-08-05 17:38:21,671 DEBUG [cloud.api.ApiDispatcher] (catalina-exec-20:null) InfrastructureEntity
name is:com.cloud.offering.ServiceOffering 2013-08-05 17:38:21,890 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-20:null) submit async job-119 = [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90 ], details:
AsyncJobVO {id:119, userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId:
null, cmd: org.apache.cloudstack.api.command.user.vm.ScaleVMCmd, cmdOriginator: null, cmdInfo:
{"response":"json","id":"337cd699-1094-4adc-901e-6be9ea0aac13","sessionkey":"+QsMD1tpUGgXzNryHklO7CxFtrQ\u003d","serviceofferingid":"729a9a9a-d8ec-4873-9844-801acebb8f23","cmdEventType":"VM.UPGRADE","ctxUserId":"2","httpmethod":"GET","_":"1375685021214","ctxAccountId":"2","ctxStartEventId":"411"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 6703101771911, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null} 2013-08-05 17:38:21,894 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null)
===END=== 10.252.192.53 -- GET command=scaleVirtualMachine&id=337cd699-1094-4adc-901e-6be9ea0aac13&serviceofferingid=729a9a9a-d8ec-4873-9844-801acebb8f23&response=json&sessionkey=%2BQsMD1tpUGgXzNryHklO7CxFtrQ%3D&_=1375685021214
2013-08-05 17:38:21,903 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-18:job-119 =
[ 0b1c98b2-51fe-47d1-a68b-e31721c3db90 ]) Executing org.apache.cloudstack.api.command.user.vm.ScaleVMCmd
for job-119 = [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90 ] 2013-08-05 17:38:21,925 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-18:job-119 = [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90 ]) ControlledEntity name
is:com.cloud.vm.VirtualMachine 2013-08-05 17:38:21,935 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-18:job-119
= [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90 ]) ControlledEntity name is:com.cloud.uservm.UserVm
2013-08-05 17:38:21,943 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-18:job-119 = [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90
]) ControlledEntity name is:com.cloud.network.router.VirtualRouter 2013-08-05 17:38:21,954
DEBUG [cloud.api.ApiDispatcher] (Job-Executor-18:job-119 = [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90
]) InfrastructureEntity name is:com.cloud.offering.ServiceOffering 2013-08-05 17:38:22,048
ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-18:job-119 = [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90
]) Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.ScaleVMCmd
java.lang.NullPointerException at com.cloud.vm.UserVmManagerImpl.upgradeRunningVirtualMachine(UserVmManagerImpl.java:1249)
at com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1225) at com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1159)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.vm.ScaleVMCmd.execute(ScaleVMCmd.java:102) 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: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:679) 2013-08-05 17:38:22,056 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-18:job-119 = [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90 ]) Complete async job-119
= [ 0b1c98b2-51fe-47d1-a68b-e31721c3db90 ], jobStatus: 2, resultCode: 530, result: Error Code:
530 Error text: null 

--
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

Mime
View raw message