Lianping Chen created CLOUDSTACK-2300:
-----------------------------------------

             Summary: Unexpected deletion of Snapshots backups
                 Key: CLOUDSTACK-2300
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2300
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.0.0
         Environment: CloudStack Manager running on CentOS
Secondary Storage Manager running on CentOS
Hosts running on CentOS
KVM

            Reporter: Lianping Chen


We defined a recurring snapshots backup policy to run daily and only keep the 
most recent 2 backups. Unexpected deletion of snapshots backups happened 
randomly/occasionally. The snapshot backup was created and a record for this 
snapshot was created in the snapshots table of the database. The snapshot was 
also listed in the Web UI. However, the snapshot backup file was deleted from 
the file system of secondary storage. 

It seems the following happened that causes the unexpected deletion:

CloudStack Manager sent out the CleanupSnapshotBackupCommand, with 
validBackupUUIDs containing the two snapshots to keep. 

Right after this CleanupSnapshotBackupCommand was sent out; a new snapshot 
backup is created.

Secondary Storage VM Agent received this CleanupSnapshotBackupCommand and 
executed the deletion. Because the newly created snapshot backup was not in the 
validBackupUUIDs, the backup file was deleted.


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