Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.8.0
-
None
-
Security Level: Public (Anyone can view this level - this is the default.)
-
None
-
Centos 7.2, KVM
Description
When attempting to delete a domain, an NPE is thrown trying to cleanup associated accounts.
2016-07-21 08:48:58,119 INFO [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Found 5 removed accounts to cleanup
2016-07-21 08:48:58,119 DEBUG [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Cleaning up 12
2016-07-21 08:48:58,125 DEBUG [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Successfully deleted snapshots directories for all volumes under account 12 across all zones
2016-07-21 08:48:58,129 DEBUG [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Expunging # of vms (accountId=12): 0
2016-07-21 08:48:58,134 INFO [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) deleteAccount: Deleted 0 network groups for account 12
2016-07-21 08:48:58,135 INFO [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) deleteAccount: Deleted 0 affinity groups for account 12
2016-07-21 08:48:58,135 DEBUG [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Deleting networks for account 12
2016-07-21 08:48:58,138 DEBUG [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Deleting vpcs for account 12
2016-07-21 08:48:58,140 DEBUG [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Deleting site-to-site VPN customer gateways for account 12
2016-07-21 08:48:58,148 DEBUG [c.c.u.d.T.Transaction] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Rolling back the transaction: Time = 2 Name = AccountChecker-1; called by -TransactionLegacy.rollback:879-TransactionLegacy.removeUpTo:822-TransactionLegacy.close:646-Transaction.execute:43-Transaction.execute:47-ConfigurationManagerImpl.releaseAccountSpecificVirtualRanges:4941-GeneratedMethodAccessor764.invoke:-1-DelegatingMethodAccessorImpl.invoke:43-Method.invoke:606-AopUtils.invokeJoinpointUsingReflection:317-ReflectiveMethodInvocation.invokeJoinpoint:183-ReflectiveMethodInvocation.proceed:150
2016-07-21 08:48:58,150 WARN [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-d349b03d) (logid:61884c2d) Failed to cleanup account Acct[9f367fca-d4c6-4603-b487-afd4e3d46dfc-admin-2177] due to
java.lang.NullPointerException
at com.cloud.configuration.ConfigurationManagerImpl.releasePublicIpRange(ConfigurationManagerImpl.java:3473)
at com.cloud.configuration.ConfigurationManagerImpl$12.doInTransactionWithoutResult(ConfigurationManagerImpl.java:4945)
at com.cloud.utils.db.TransactionCallbackNoReturn.doInTransaction(TransactionCallbackNoReturn.java:25)
at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:50)
at com.cloud.utils.db.Transaction.execute(Transaction.java:40)
at com.cloud.utils.db.Transaction.execute(Transaction.java:47)
at com.cloud.configuration.ConfigurationManagerImpl.releaseAccountSpecificVirtualRanges(ConfigurationManagerImpl.java:4941)
at sun.reflect.GeneratedMethodAccessor764.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.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 com.sun.proxy.$Proxy117.releaseAccountSpecificVirtualRanges(Unknown Source)
at com.cloud.user.AccountManagerImpl.cleanupAccount(AccountManagerImpl.java:869)
at com.cloud.user.AccountManagerImpl$AccountCleanupTask.runInContext(AccountManagerImpl.java:1722)
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 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)