[ https://issues.apache.org/jira/browse/CLOUDSTACK-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sailaja Mada updated CLOUDSTACK-1602: ------------------------------------- Fix Version/s: 4.2.0 > NPE while recalculating the storage capacity > -------------------------------------------- > > Key: CLOUDSTACK-1602 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1602 > 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: edison su > Fix For: 4.2.0 > > > Setup : Advanced Networking Zone with KVM 6.3 host > Steps: > 1. Tried to add second primary storage with wrong folder name. It failed > with NPE . It is tracked as a separate issue. > 2. While capacity checker to calculate the storage capacity- It failed with > NPE > 2013-03-08 17:01:12,908 DEBUG > [network.router.VirtualNetworkApplianceManagerImpl] > (RouterStatusMonitor-1:null) Found 0 networks to update RvR status. > 2013-03-08 17:01:13,133 DEBUG [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) Running Capacity Checker ... > 2013-03-08 17:01:13,133 DEBUG [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) recalculating system capacity > 2013-03-08 17:01:13,133 DEBUG [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) Executing cpu/ram capacity update > 2013-03-08 17:01:13,141 DEBUG [cloud.capacity.CapacityManagerImpl] > (CapacityChecker:null) Found 4 VMs on host 1 > 2013-03-08 17:01:13,142 DEBUG [cloud.capacity.CapacityManagerImpl] > (CapacityChecker:null) Found 0 VM, not running on host 1 > 2013-03-08 17:01:13,145 DEBUG [cloud.capacity.CapacityManagerImpl] > (CapacityChecker:null) No need to calibrate cpu capacity, host:1 usedCpu: > 2000 reservedCpu: 0 > 2013-03-08 17:01:13,145 DEBUG [cloud.capacity.CapacityManagerImpl] > (CapacityChecker:null) No need to calibrate memory capacity, host:1 usedMem: > 2013265920 reservedMem: 0 > 2013-03-08 17:01:13,145 DEBUG [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) Done executing cpu/ram capacity update > 2013-03-08 17:01:13,145 DEBUG [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) Executing storage capacity update > 2013-03-08 17:01:13,162 DEBUG [cloud.storage.StorageManagerImpl] > (CapacityChecker:null) Successfully set Capacity - 1759218630656 for capacity > type - 3 , DataCenterId - 1, HostOrPoolId - 200, PodId 1 > 2013-03-08 17:01:13,167 ERROR [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) Caught exception in recalculating capacity > java.lang.NullPointerException > at > com.cloud.storage.StorageManagerImpl.createCapacityEntry(StorageManagerImpl.java:989) > at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source) > 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 $Proxy116.createCapacityEntry(Unknown Source) > at > com.cloud.alert.AlertManagerImpl.recalculateCapacity(AlertManagerImpl.java:356) > at > com.cloud.alert.AlertManagerImpl.checkForAlerts(AlertManagerImpl.java:502) > at > com.cloud.alert.AlertManagerImpl$CapacityChecker.run(AlertManagerImpl.java:491) > at java.util.TimerThread.mainLoop(Timer.java:534) > at java.util.TimerThread.run(Timer.java:484) > 2013-03-08 17:01:13,184 DEBUG [cloud.alert.AlertManagerImpl] > (CapacityChecker:null) Done running Capacity Checker ... -- 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