Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 126EE10D49 for ; Tue, 3 Dec 2013 12:18:44 +0000 (UTC) Received: (qmail 15697 invoked by uid 500); 3 Dec 2013 12:18:40 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 15653 invoked by uid 500); 3 Dec 2013 12:18:37 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 15640 invoked by uid 500); 3 Dec 2013 12:18:36 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 15633 invoked by uid 99); 3 Dec 2013 12:18:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 12:18:35 +0000 Date: Tue, 3 Dec 2013 12:18:35 +0000 (UTC) From: "Koushik Das (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-4697) Not able to delete Primary storage when there are no hosts in the cluster. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Koushik Das resolved CLOUDSTACK-4697. ------------------------------------- Resolution: Duplicate CLOUDSTACK-4402 > Not able to delete Primary storage when there are no hosts in the cluster. > -------------------------------------------------------------------------- > > Key: CLOUDSTACK-4697 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4697 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: 4.2.1 > Environment: Build from 4.2-forward > Reporter: Sangeetha Hariharan > Assignee: Koushik Das > Priority: Critical > Fix For: 4.3.0 > > > Not able to delete Primary storage when there are no hosts in the cluster. > Steps to reproduce the problem: > I had 1 cluster with 1 cluster-wide primary storage and 1 host. > Put the host is maintenance mode and deleted the host successfully. > Put the primary storage in maintenance mode. > Try to delete the primary storage. > Primary storage deletion fails with "Failed to delete storage pool on host". > Tried with forced option set to true. Same issue is seen. > Following is the exception seen in management server logs: > http://10.223.240.160:8080/client/api?command=deleteStoragePool&id=6aa75bda-523e-3a70-876a-551889baf1fb&forced=true&response=json&sessionkey=w5yXStAmUJHVfEBV5vAYnmtnKeI%3D&_=1379455061206 > > 2013-09-17 14:47:14,109 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===START=== 10.215.3.9 -- GET command=deleteStoragePool&id=6aa75bda-523e-3a70-8 > 76a-551889baf1fb&forced=true&response=json&sessionkey=w5yXStAmUJHVfEBV5vAYnmtnKeI%3D&_=1379455061206 > 2013-09-17 14:47:14,121 ERROR [cloud.api.ApiServer] (catalina-exec-2:null) unhandled exception executing api command: deleteStoragePool > com.cloud.utils.exception.CloudRuntimeException: Failed to delete storage pool on host > at org.apache.cloudstack.storage.datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl.deleteDataStore(CloudStackPrimaryDataStoreLifeCycleImpl. > java:478) > at com.cloud.storage.StorageManagerImpl.deletePool(StorageManagerImpl.java:937) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at org.apache.cloudstack.api.command.admin.storage.DeletePoolCmd.execute(DeletePoolCmd.java:78) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372) > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305) > 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:2274) > 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-09-17 14:47:14,124 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===END=== 10.215.3.9 -- GET command=deleteStoragePool&id=6aa75bda-523e-3a70-876 > a-551889baf1fb&forced=true&response=json&sessionkey=w5yXStAmUJHVfEBV5vAYnmtnKeI%3D&_=1379455061206 > > -- This message was sent by Atlassian JIRA (v6.1#6144)