[
https://issues.apache.org/jira/browse/CLOUDSTACK-2590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Min Chen resolved CLOUDSTACK-2590.
----------------------------------
Resolution: Fixed
> Object_Store_Refactor - Not able to delete object_store when there are no
> templates/snapshots/volumes residing in it.
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-2590
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2590
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.2.0
> Environment: build from object_store
> Reporter: Sangeetha Hariharan
> Assignee: Min Chen
> Fix For: 4.2.0
>
>
> Object_Store_Refactor - Not able to delete object_store whene there are no
> templates/snapshots/volumes residing in it.
> Steps to reproduce the problem:
> Deploy an advanced zone with 1 NFS secondary storage.
> Add another NFS secondary storage.
> Make sure that there are no templates/snapshots/volumes residing in it.
> Delete this NS secondary storage
> We get the following error message
> "Cannot delete image store with active templates backup!"
> 2013-05-20 14:48:19,844 DEBUG [cloud.api.ApiServlet] (catalina-exec-5:null)
> ===START=== 10.217.252.128 -- GET
> command=deleteImageStore&id=4a2f25c9-3ae0-4b8c-9e13-4a821d262df8&response=json&sessionkey=Obc59D67KcZYrCEk35NLgMNbhoI%3D&_=1369089926137
> 2013-05-20 14:48:19,863 ERROR [cloud.api.ApiServer] (catalina-exec-5:null)
> unhandled exception executing api command: deleteImageStore
> com.cloud.utils.exception.CloudRuntimeException: Cannot delete image store
> with active templates backup!
> at
> com.cloud.storage.StorageManagerImpl.deleteImageStore(StorageManagerImpl.java:1975)
> at
> org.apache.cloudstack.api.command.admin.storage.DeleteImageStoreCmd.execute(DeleteImageStoreCmd.java:72)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:519)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:369)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
> 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-05-20 14:48:19,864 DEBUG [cloud.api.ApiServlet] (catalina-exec-5:null)
> ===END=== 10.217.252.128 -- GET
> command=deleteImageStore&id=4a2f25c9-3ae0-4b8c-9e13-4a821d262df8&response=json&sessionkey=Obc59D67KcZYrCEk35NLgMNbhoI%3D&_=1369089926137
--
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