You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sailaja Mada (JIRA)" <ji...@apache.org> on 2013/04/04 06:13:16 UTC
[jira] [Reopened] (CLOUDSTACK-1602) NPE while recalculating the
storage capacity
[ https://issues.apache.org/jira/browse/CLOUDSTACK-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sailaja Mada reopened CLOUDSTACK-1602:
--------------------------------------
CLOUDSTACK-1602 is filed much before than CLOUDSTACK-1878.
So CLOUDSTACK-1878 has to be closed as duplicate of my defect and not CLOUDSTACK-1602.
Hence reopening the defect.
> 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
> Priority: Critical
> Fix For: 4.2.0
>
> Attachments: management-server.log
>
>
> Setup : Advanced Networking Zone with KVM 6.3 host
> Steps:
> 1. Add second primary storage.
> 2. Tried to migrate volumes from Primary storage1 to Primary Storage 2 . Observed NPE while capacity checker trying to recalcule capacity
> 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