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

Storage cleanup thread does not delete the entries from snapshot_store_ref with store role Primary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.5.0
    • None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      Storage cleanup thread does not delete the entries from snapshot_store_ref with store role Primary even after deleting the snapshots
      Steps to reproduce:
      ================
      1.Bring up CS in advanced zone with xen/vmware cluster
      2.Deploy few guest vms using default cent os template
      3.Create snapshots on all the root volumes of the vms created above
      4.Verify snapshot_store_ref table entries. For each snapshot there would be two entries one with store role Primary and another one with Secondary
      5.Delete all the snapshots and wait for the storage cleanup thread to run
      Expected Behavior:
      ================
      When we destroy snapshots all the snapshot entries should be removed from snapshot_store_ref table.
      Actual Behavior:
      =============
      After deleting snapshots all the snapshot states are marked as Destroyed in both snapshot_store_ref and snapshots (status field) table. This is expected. However when the storage cleanup thread runs it is not deleting the entries from snapshot_store_ref table with store_role primary. It is only marking removed column in snapshots table and deleting entries from snapshot_store_ref table with store_role Image.

      Attachments

        Activity

          People

            edison Disheng Su
            edison Disheng Su
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: