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 2CB1010241 for ; Fri, 4 Dec 2015 06:42:12 +0000 (UTC) Received: (qmail 6158 invoked by uid 500); 4 Dec 2015 06:42:11 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 6071 invoked by uid 500); 4 Dec 2015 06:42:11 -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 5907 invoked by uid 500); 4 Dec 2015 06:42:11 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 5767 invoked by uid 99); 4 Dec 2015 06:42:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2015 06:42:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 565432C14F0 for ; Fri, 4 Dec 2015 06:42:11 +0000 (UTC) Date: Fri, 4 Dec 2015 06:42:11 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8845) list snapshot without id is failing with Unable to determine the storage pool of the snapshot 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-8845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15040814#comment-15040814 ] ASF GitHub Bot commented on CLOUDSTACK-8845: -------------------------------------------- Github user anshul1886 commented on the pull request: https://github.com/apache/cloudstack/pull/1164#issuecomment-161891307 Created PR https://github.com/apache/cloudstack/pull/1166 for 4.6. > list snapshot without id is failing with Unable to determine the storage pool of the snapshot > --------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-8845 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8845 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.6.0 > Reporter: prashant kumar mishra > Assignee: Anshul Gangwar > Labels: snapshot > Attachments: cloud.dmp, management-server.log > > > steps > -------- > Try to list snapshot using api/UI without passing id > http://10.*.*.*:8080/client/api?command=listSnapshots&response=json&_=1442227513154 > {"listsnapshotsresponse":{"uuidList":[],"errorcode":530,"cserrorcode":4250,"errortext":"Unable to determine the storage pool of the snapshot"}} > logs > ----- > 2015-09-14 10:23:10,579 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-600cffa2) ===START=== 10.252.193.23 -- GET command=listSnapshots&response=json&_=1442227513154 > 2015-09-14 10:23:10,635 ERROR [c.c.a.ApiServer] (catalina-exec-4:ctx-600cffa2 ctx-92e1cd5e) unhandled exception executing api command: [Ljava.lang.String;@10e4744f > com.cloud.utils.exception.CloudRuntimeException: Unable to determine the storage pool of the snapshot > at org.apache.cloudstack.storage.snapshot.StorageSystemSnapshotStrategy.canHandle(StorageSystemSnapshotStrategy.java:455) > at org.apache.cloudstack.storage.helper.StorageStrategyFactoryImpl$3.canHandle(StorageStrategyFactoryImpl.java:72) > at org.apache.cloudstack.storage.helper.StorageStrategyFactoryImpl$3.canHandle(StorageStrategyFactoryImpl.java:69) > at org.apache.cloudstack.storage.helper.StorageStrategyFactoryImpl.bestMatch(StorageStrategyFactoryImpl.java:95) > at org.apache.cloudstack.storage.helper.StorageStrategyFactoryImpl.getSnapshotStrategy(StorageStrategyFactoryImpl.java:69) > at org.apache.cloudstack.storage.snapshot.SnapshotObject.isRevertable(SnapshotObject.java:133) > at com.cloud.api.ApiResponseHelper.createSnapshotResponse(ApiResponseHelper.java:499) > at org.apache.cloudstack.api.command.user.snapshot.ListSnapshotsCmd.execute(ListSnapshotsCmd.java:114) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:704) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:529) > at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:296) > at com.cloud.api.ApiServlet$1.run(ApiServlet.java:127) > 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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:124) > at com.cloud.api.ApiServlet.doGet(ApiServlet.java:86) > 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:722) > 2015-09-14 10:23:10,638 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-600cffa2 ctx-92e1cd5e) ===END=== 10.252.193.23 -- GET command=listSnapshots&response=json&_=1442227513154 > 2015-09-14 10:23:18,098 INFO [o.a.c.f.j.i.AsyncJobManagerImpl] (AsyncJobMgr-Heartbeat-1:ctx-b7a4637f) Begin cleanup expired async-jobs > 2015-09-14 10:23:18,104 INFO [o.a.c.f.j.i.AsyncJobManagerImpl] (AsyncJobMgr-Heartbeat-1:ctx-b7a4637f) End cleanup expired async-jobs > 2015-09-14 10:23:18,472 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-1:null) SeqA 2-1758: Processing Seq 2-1758: { Cmd , MgmtId: -1, via: 2, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n \"connections\": []\n}","wait":0}}] } -- This message was sent by Atlassian JIRA (v6.3.4#6332)