Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 10818200C56 for ; Fri, 14 Apr 2017 11:53:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0F14A160B8C; Fri, 14 Apr 2017 09:53:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 545BF160B80 for ; Fri, 14 Apr 2017 11:53:45 +0200 (CEST) Received: (qmail 83875 invoked by uid 500); 14 Apr 2017 09:53:44 -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 83866 invoked by uid 500); 14 Apr 2017 09:53:44 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 83863 invoked by uid 99); 14 Apr 2017 09:53:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Apr 2017 09:53:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id ED7A0C142D for ; Fri, 14 Apr 2017 09:53:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iNVPKJmDoFuw for ; Fri, 14 Apr 2017 09:53:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 772F05F5A2 for ; Fri, 14 Apr 2017 09:53:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C8784E09D6 for ; Fri, 14 Apr 2017 09:53:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8522921B45 for ; Fri, 14 Apr 2017 09:53:41 +0000 (UTC) Date: Fri, 14 Apr 2017 09:53:41 +0000 (UTC) From: "Daan Hoogland (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CLOUDSTACK-9877) remove fully cloned deleted templates from primary storage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Apr 2017 09:53:46 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daan Hoogland reassigned CLOUDSTACK-9877: ----------------------------------------- Assignee: Daan Hoogland > remove fully cloned deleted templates from primary storage > ---------------------------------------------------------- > > Key: CLOUDSTACK-9877 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9877 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the default.) > Components: VMware > Environment: cloudstack with vcentre and the use of "full clones" > Reporter: Daan Hoogland > Assignee: Daan Hoogland > > After a template has been deleted from cloudstack and it has only been used with the 'vmware.create.full.clone' setting, it can be cleared from primary storage. > test notes: > related settings: > vmware.full.clone.template.cleanup.period = '1' (minutes, '86400') > vmware.create.full.clone = 'true' (boolean, 'false') > storage.template.cleanup.enabled = 'true' (boolean, 'false') > storage.cleanup.interval = '150' (seconds, default) > storage.cleanup.enabled = 'true' (boolean, default) > to test: > a vm can be created using the default template or any template installed for this purpose. > I'll call it the install-template > The vm should be created with a full clone of the template. > This can be checked in the table cloud.user_vm_clone_setting > The install-template should be copied to the primary store of the host it is on > This can be checked in the table cloud.template_spool_ref > delete the install-template from the system > after at most a minute the entries in cloud.template_spool_ref for the install-template should have the field marked_for_gc set to '1' > At most a minute and a half after that the field state in the same record should be set to 'Destroyed' > to double check one might go to the mount for this primary storage and seek the installpath to make sure the disk space is actually freed. -- This message was sent by Atlassian JIRA (v6.3.15#6346)