Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-8845

list snapshot without id is failing with Unable to determine the storage pool of the snapshot

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.6.0
    • Fix Version/s: None
    • Component/s: API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:

      Description

      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}}] }

        Attachments

        1. cloud.dmp
          1.02 MB
          prashant kumar mishra
        2. management-server.log
          7.39 MB
          prashant kumar mishra

          Activity

            People

            • Assignee:
              anshulg Anshul Gangwar
              Reporter:
              prashantkm prashant kumar mishra
            • Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: