Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE41B11B9C for ; Mon, 13 May 2013 10:29:16 +0000 (UTC) Received: (qmail 2991 invoked by uid 500); 13 May 2013 10:29:16 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 2958 invoked by uid 500); 13 May 2013 10:29:16 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 2822 invoked by uid 500); 13 May 2013 10:29:16 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 2819 invoked by uid 99); 13 May 2013 10:29:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 May 2013 10:29:16 +0000 Date: Mon, 13 May 2013 10:29:16 +0000 (UTC) From: "Lianping Chen (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-2217) Snapshots backups are not deleted according to CleanupSnapshotBackupCommand. Those snapshots backups that should be garbage collected but not get deleted can fill up the secondary storage. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655891#comment-13655891 ] Lianping Chen commented on CLOUDSTACK-2217: ------------------------------------------- I have fixed this issue in our deployment. I shared the fix by sending in a pull request for the code changes I made. https://issues.apache.org/jira/browse/CLOUDSTACK-2217. > Snapshots backups are not deleted according to CleanupSnapshotBackupCommand. Those snapshots backups that should be garbage collected but not get deleted can fill up the secondary storage. > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-2217 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2217 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > 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 > Labels: backup, cleanup, snapshot > > We are running CloudStack version 4.0.0.20121024012150. We defined a recurring snapshots backup policy to run daily and only keep the most recent 2 backups. > However, we found that the snapshots backups were not deleted according to this policy. According to the logs, the CleanupSnapshotBackupCommand has been sent by CloudStack manager and the command is received by Secondary Storage VM Agent. The secondary storage does contain backups that are not included in the validBackupUUIDs of CleanupSnapshotBackupCommand. But these backups that are not in the list of validBackupUUIDs still remain in the file system and get the secondary storage being filled up. -- 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