[
https://issues.apache.org/jira/browse/CLOUDSTACK-5283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845997#comment-13845997
]
Sangeetha Hariharan commented on CLOUDSTACK-5283:
-------------------------------------------------
Attached logs.
The exact stack trace seen in the logs:
2013-12-11 20:07:59,108 ERROR [c.c.a.ApiServer] (catalina-exec-22:ctx-12a188c6
ctx-661685b3) unhandled exception executing api com
mand: listSnapshots
com.cloud.utils.exception.CloudRuntimeException: Unable to find info for image
store snapshot with uuid 'ec1758d4-9152-4988-a55a-4
f9e2121d430'
at
com.cloud.api.ApiResponseHelper.createSnapshotResponse(ApiResponseHelper.java:465)
at
org.apache.cloudstack.api.command.user.snapshot.ListSnapshotsCmd.execute(ListSnapshotsCmd.java:114)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:530)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:373)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:322)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:52)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:114)
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:111)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:73)
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:722)
> Not able to list snapshots when few snapshots are in "CreatedOnPrimary" state.
> ------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5283
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5283
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.3.0
> Environment: Build frpm 4.3.0
> Reporter: Sangeetha Hariharan
> Assignee: Nitin Mehta
> Priority: Critical
> Fix For: 4.3.0
>
> Attachments: cloud.sql, management-server.log
>
>
> Not able to list snapshots when few snapshots are in "CreatedOnPrimary" state.
> Deploy 10 Vms in each of the hosts , so we start with 20 Vms.
> We will be constantly writing to the ROOT volume ( print timestamp every 1
> minute).
> Start concurrent snapshots for ROOT volumes for all the Vms by creating
> "Hourly" snapshot policy at the same time.
> Some of the snapshot creation fails , leaving behind Vms in
> "CreatedOnPrimary" state.
> When listing snapshot , we see the following error message:
> http://10.223.49.6:8080/client/api?command=listSnapshots&response=json&sessionkey=elVWw%2Bt7r%2BIn8qoB0bx2S5G43gE%3D&listAll=true&page=1&pagesize=20&_=1385520897726
> Response:
> "Unable to find info for image store snapshot with uuid
> '3e1d21b4-35bc-4e8b-91d2-8321b19d7bcf'"
> mysql> select * from snapshots where
> uuid="3e1d21b4-35bc-4e8b-91d2-8321b19d7bcf";
> +----+----------------+------------+-----------+-----------+------------------+------------------+------+-------------------------------------------------+--------------------------------------+---------------+------------------+-------------+---------------------+---------+----------------+----------+------------+--------------+-----------------+---------+-------+
> | id | data_center_id | account_id | domain_id | volume_id | disk_offering_id
> | status | path | name |
> uuid | snapshot_type | type_description |
> size | created | removed | backup_snap_id | swift_id |
> sechost_id | prev_snap_id | hypervisor_type | version | s3_id |
> +----+----------------+------------+-----------+-----------+------------------+------------------+------+-------------------------------------------------+--------------------------------------+---------------+------------------+-------------+---------------------+---------+----------------+----------+------------+--------------+-----------------+---------+-------+
> | 26 | 1 | 3 | 1 | 26 | 14
> | CreatedOnPrimary | NULL | TestVM-tiny-host-1ps-0-5_ROOT-26_20131127004142 |
> 3e1d21b4-35bc-4e8b-91d2-8321b19d7bcf | 3 | HOURLY |
> 21474836480 | 2013-11-27 00:41:42 | NULL | NULL | NULL |
> NULL | NULL | KVM | 2.2 | NULL |
> +----+----------------+------------+-----------+-----------+------------------+------------------+------+-------------------------------------------------+--------------------------------------+---------------+------------------+-------------+---------------------+---------+----------------+----------+------------+--------------+-----------------+---------+-------+
> 1 row in set (0.00 sec)
> mysql> select * from snapshot_store_ref where
> snapshot_id="3e1d21b4-35bc-4e8b-91d2-8321b19d7bcf";
> Empty set, 1 warning (0.00 sec)
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)