cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-5283) Not able to list snapshots when few snapshots are in "CreatedOnPrimary" state.
Date Thu, 12 Dec 2013 21:19:07 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-5283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13846749#comment-13846749
] 

ASF subversion and git services commented on CLOUDSTACK-5283:
-------------------------------------------------------------

Commit b084cc469a0b394178c33a8b1621a97879cc9f53 in branch refs/heads/master from [~nitinme]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=b084cc4 ]

CLOUDSTACK-5283:
Not able to list snapshots when few snapshots are in "CreatedOnPrimary" state. Dont throw
an exception when snapshot doesnt have an entry in the snapshot store ref for the snapshot
in Image store because that fails to list all snapshots and also it can a perfect use case
when the backup flag is not turned on.


> 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)

Mime
View raw message