cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Battala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-1635) NPE while trying to set primary storage into maintanance mode [ Primary storage which is added with scope as zone level]
Date Wed, 10 Jul 2013 05:49:48 GMT

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

Rajesh Battala commented on CLOUDSTACK-1635:
--------------------------------------------

Issues related to ZWPS (put/cancel maintenance, delete) all the cases are handled in the below
commits pushed to stable master and other branches.

https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=a54d2347fe8c798f4e3f658f683c548583d44485
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=7054db44700ba813d513bf8e16b0266d308a8dc6

these are happening server code, I had fixed and tested using KVM. 

this is the similar bug reported.

https://issues.apache.org/jira/browse/CLOUDSTACK-2073 
https://issues.apache.org/jira/browse/CLOUDSTACK-3089
                
> NPE while trying to set primary storage into  maintanance mode [ Primary storage which
is added with scope as zone level]
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1635
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1635
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.0
>            Reporter: Sailaja Mada
>            Assignee: Rajesh Battala
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: apilog.log, management-server.log
>
>
> Setup: Advanced Networking zone with xen  6.1 host 
> Steps:
> 1. Add primary storage with zone wide scope.
> 2. Tried to set primary storage into  maintanance mode [ Primary storage which is added
with scope as zone level]
> Observation : It failed with NPE
> Details :
> 2013-03-12 09:54:59,808 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===
 10.144.7.13 -- GET  command=enableStorageMaintenance&id=14cde048-318f-3033-84e9-f9f3e28e30c4&response=json&sessionkey=%2Fuam0d1OUFMISqQNmk4WqBWFnb8%3D&_=1363062380347
> 2013-03-12 09:54:59,811 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-16:job-42)
Executing org.apache.cloudstack.api.command.admin.storage.PreparePrimaryStorageForMaintenanceCmd
for job-42
> 2013-03-12 09:54:59,819 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-16:job-42)
Unexpected exception while executing org.apache.cloudstack.api.command.admin.storage.PreparePrimaryStorageForMaintenanceCmd
> java.lang.NullPointerException
>         at com.cloud.storage.StorageManagerImpl.preparePrimaryStorageForMaintenance(StorageManagerImpl.java:1396)
>         at com.cloud.storage.StorageManagerImpl.preparePrimaryStorageForMaintenance(StorageManagerImpl.java:190)
>         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:616)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
>         at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:40)
>         at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
>         at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
>         at $Proxy115.preparePrimaryStorageForMaintenance(Unknown Source)
>         at org.apache.cloudstack.api.command.admin.storage.PreparePrimaryStorageForMaintenanceCmd.execute(PreparePrimaryStorageForMaintenanceCmd.java:102)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:165)
>         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>         at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
>         at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:46)
>         at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
>         at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
>         at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         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-03-12 09:54:59,821 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-16:job-42)
Complete async job-42, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
null
> 2013-03-12 09:55:02,819 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START===
 10.144.7.13 -- GET  command=queryAsyncJobResult&jobId=366d840c-1586-43a1-8952-809bed7ea102&response=json&sessionkey=%2Fuam0d1OUFMISqQNmk4WqBWFnb8%3D&_=1363062383421
> 2013-03-12 09:55:02,831 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-22:null)
Async job-42 completed
> 2013-03-12 09:55:02,836 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===
 10.144.7.13 -- GET  command=queryAsyncJobResult&jobId=366d840c-1586-43a1-8952-809bed7ea102&response=json&sessionkey=%2Fuam0d1OUFMISqQNmk4WqBWFnb8%3D&_=1363062383421

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