cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Aradhye <gaurav.arad...@clogeny.com>
Subject Force delete domain through test case
Date Fri, 02 Aug 2013 14:57:15 GMT
Hi all,

While forcefully deleting a domain through test case, it fails. The
resources in the domain and the domain itself gets cleaned up, but the code
fails with following error.
After cleaning up the resources, it says can't find the specific domain.

Has anybody seen this issue before?

Log:

2013-08-03 00:51:50,657 DEBUG [cloud.user.DomainManagerImpl]
(Job-Executor-3:job-34 = [ a1e2cf53-6768-4571-9e4b-5749b4667bb0 ]) Deleting
networks for domain id=
2
2013-08-03 00:51:50,669 ERROR [domain.dao.DomainDaoImpl]
(Job-Executor-3:job-34 = [ a1e2cf53-6768-4571-9e4b-5749b4667bb0 ]) Unable
to remove domain as domain 2
no longer exists
2013-08-03 00:51:50,685 ERROR [cloud.user.DomainManagerImpl]
(Job-Executor-3:job-34 = [ a1e2cf53-6768-4571-9e4b-5749b4667bb0 ])
Exception deleting domain with i
d 2
com.cloud.utils.exception.CloudRuntimeException: Failed to clean up domain
resources and sub domains, delete failed on domain Domain-JVH211 (id: 2).
        at
com.cloud.user.DomainManagerImpl.deleteDomain(DomainManagerImpl.java:243)
        at
com.cloud.user.DomainManagerImpl.deleteDomain(DomainManagerImpl.java:226)
        at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at
org.apache.cloudstack.region.RegionManagerImpl.deleteDomain(RegionManagerImpl.java:231)
        at
org.apache.cloudstack.region.RegionServiceImpl.deleteDomain(RegionServiceImpl.java:166)
2013-08-03 00:51:50,685 ERROR [cloud.user.DomainManagerImpl]
(Job-Executor-3:job-34 = [ a1e2cf53-6768-4571-9e4b-5749b4667bb0 ])
Exception deleting domain with i
d 2
com.cloud.utils.exception.CloudRuntimeException: Failed to clean up domain
resources and sub domains, delete failed on domain Domain-JVH211 (id: 2).
        at
com.cloud.user.DomainManagerImpl.deleteDomain(DomainManagerImpl.java:243)
        at
com.cloud.user.DomainManagerImpl.deleteDomain(DomainManagerImpl.java:226)
        at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at
org.apache.cloudstack.region.RegionManagerImpl.deleteDomain(RegionManagerImpl.java:231)
        at
org.apache.cloudstack.region.RegionServiceImpl.deleteDomain(RegionServiceImpl.java:166)
        at
org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd.execute(DeleteDomainCmd.java:99)
        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:1146)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
2013-08-03 00:51:50,690 DEBUG [cloud.user.DomainManagerImpl]
(Job-Executor-3:job-34 = [ a1e2cf53-6768-4571-9e4b-5749b4667bb0 ]) Changing
domain id=2 state back
to Active because it can't be removed due to resources referencing to it
2013-08-03 00:51:50,731 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-3:job-34 = [ a1e2cf53-6768-4571-9e4b-5749b4667bb0 ])
Unexpected exception while ex
ecuting org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to clean up domain
resources and sub domains, delete failed on domain Domain-JVH211 (id: 2).
        at
com.cloud.user.DomainManagerImpl.deleteDomain(DomainManagerImpl.java:243)
        at
com.cloud.user.DomainManagerImpl.deleteDomain(DomainManagerImpl.java:226)
        at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at
org.apache.cloudstack.region.RegionManagerImpl.deleteDomain(RegionManagerImpl.java:231)
        at
org.apache.cloudstack.region.RegionServiceImpl.deleteDomain(RegionServiceImpl.java:166)
        at
org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd.execute(DeleteDomainCmd.java:99)
        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:1146)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
2013-08-03 00:51:50,741 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-3:job-34 = [ a1e2cf53-6768-4571-9e4b-5749b4667bb0 ]) Complete
async job-34 = [ a1e
2cf53-6768-4571-9e4b-5749b4667bb0 ], jobStatus: 2, resultCode: 530, result:
Error Code: 530 Error text: Failed to clean up domain resources and sub
domains, del
ete failed on domain Domain-JVH211 (id: 2).

Regards,
Gaurav

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message