You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sailaja Mada (JIRA)" <ji...@apache.org> on 2013/07/30 08:15:50 UTC

[jira] [Closed] (CLOUDSTACK-3875) Snapshots which are created from volume are not deleted from secondary storage when Volume is deleted

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sailaja Mada closed CLOUDSTACK-3875.
------------------------------------


Agree with previous comment. Issue was created with wrong assumption.  Hence closing the bug. 
                
> Snapshots which are created from volume are not deleted from secondary storage when Volume is deleted
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3875
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3875
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.0
>            Reporter: Sailaja Mada
>            Assignee: Devdeep Singh
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: apilog.log, management-server.log
>
>
> Setup:  Upgraded from 2.2.15 to 4.2 , Xenserver
> Steps:
> 1. Create User account under domain cdc
> 2. Create instance using this account 
> 3. Create DATA volume and add to this instance
> 4. Create Snapshot for this instance
> 5. Delete the snapshot .  It got deleted 
> 6. Create one more snapshot of this volume 
> 7. Detach the volume 
> 8. Delete the volume
> Volume got deleted. But Snapshot is not got removed and it still remains in DB and in secondary storage. 
> mysql> select * from volumes where id=17\G;
> *************************** 1. row ***************************
>                         id: 17
>                 account_id: 4
>                  domain_id: 2
>                    pool_id: 200
>                instance_id: NULL
>                  device_id: NULL
>                       name: volum1
>                       size: 5368709120
>                     folder: NULL
>                       path: ebb8ca31-1157-4808-ab9d-54bd803cc212
>                     pod_id: NULL
>             data_center_id: 1
>                 iscsi_name: NULL
>                    host_ip: NULL
>                volume_type: DATADISK
>                  pool_type: NULL
>           disk_offering_id: 3
>                template_id: NULL
>                     iso_id: NULL
> first_snapshot_backup_uuid: NULL
>                recreatable: 0
>                    created: 2013-07-27 07:24:31
>                   attached: NULL
>                    updated: 2013-07-27 07:29:15
>                    removed: 2013-07-27 07:29:15
>                      state: Expunged
>                 chain_info: NULL
>                       uuid: 432317d3-930b-45fa-a43e-334e01ec592e
>               last_pool_id: NULL
>               update_count: 10
>                  disk_type: NULL
>             display_volume: 1
>                     format: VHD
>                   min_iops: NULL
>                   max_iops: NULL
> 1 row in set (0.00 sec)
> mysql> select * from snapshots where volume_id=17\G;
> *************************** 1. row ***************************
>               id: 5
>   data_center_id: 1
>       account_id: 4
>        domain_id: 2
>        volume_id: 17
> disk_offering_id: 3
>           status: Destroyed
>             path: NULL
>             name: instance1_volum1_20130727072455
>    snapshot_type: 0
> type_description: MANUAL
>             size: 5368709120
>          created: 2013-07-27 07:24:55
>          removed: NULL
>   backup_snap_id: NULL
>         swift_id: NULL
>       sechost_id: NULL
>     prev_snap_id: NULL
>  hypervisor_type: XenServer
>          version: 2.2
>             uuid: 6cd474d3-beb8-4987-b1a2-3d162b51bd14
>            s3_id: NULL
> *************************** 2. row ***************************
>               id: 6
>   data_center_id: 1
>       account_id: 4
>        domain_id: 2
>        volume_id: 17
> disk_offering_id: 3
>           status: BackedUp
>             path: NULL
>             name: instance1_volum1_20130727072817
>    snapshot_type: 0
> type_description: MANUAL
>             size: 5368709120
>          created: 2013-07-27 07:28:17
>          removed: NULL
>   backup_snap_id: NULL
>         swift_id: NULL
>       sechost_id: NULL
>     prev_snap_id: NULL
>  hypervisor_type: XenServer
>          version: 2.2
>             uuid: 6af8686c-bd99-4321-94fa-3a5aa2ae0859
>            s3_id: NULL
> 2 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