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

Min Chen commented on CLOUDSTACK-2635:
--------------------------------------

In our new code refactor, we are using Status column to indicate whether we 
should show the item to UI or not instead of previous removed column. Due to 
snapshot chain issue, even though user issued deleteSnapshot command, we may 
not delete it from secondary storage due to its dependency. In that case, we 
will only mark Status as Destroyed, but removed column is still null. Only when 
the snapshot is removed from secondary storage when there are no dependency on 
it, we will mark removed column. So I fix this bug to make sure that snapshots 
with Status = Destroyed will not show up in UI.
                
> Object_Store_Refactor - Snapshots - When snapshots get deleted , they are not 
> marked as "Removed" in snapshots table.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2635
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2635
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: Build from object_store
>            Reporter: Sangeetha Hariharan
>             Fix For: 4.2.0
>
>
> Object_Store_Refactor - Snapshots - When snapshots get deleted , they are not 
> marked as "Removed" in snapshots table
> 1.Deploy a VM using the Default CentOS Template.
> 2.Create a Volume.
> 3.Attach the Volume to the VM deployed in Step 1.
> 4.Log into the VM and create a ext3 file system on the Data Disk.
> 5.Mount the Data Disk.
> 6.Create a File with content on the Data Disk
> 7.Create a Snapshot of the Data disk.
> 8.Delete the Snapshot.
> After successful deletion of snapshots , the "removed" column in snapshot is 
> not updated.
> So we still see the snapshots being listed in "Destroyed" state when listing 
> snapshots.
>  
> mysql>  select removed,id,status  from snapshots ;
> +---------+----+------------------+
> | removed | id | status           |
> +---------+----+------------------+
> | NULL    |  1 | CreatedOnPrimary |
> | NULL    |  2 | CreatedOnPrimary |
> | NULL    |  3 | BackedUp         |
> | NULL    |  4 | Destroyed        |
> | NULL    |  5 | BackedUp         |
> | NULL    |  6 | BackedUp         |
> | NULL    |  7 | Destroyed        |
> | NULL    |  8 | BackedUp         |
> | NULL    |  9 | Destroyed        |
> +---------+----+------------------+
> 9 rows in set (0.00 sec)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to