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 EB02B200BCF for ; Sun, 20 Nov 2016 20:19:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E9BA2160AFE; Sun, 20 Nov 2016 19:19:00 +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 40B68160B07 for ; Sun, 20 Nov 2016 20:19:00 +0100 (CET) Received: (qmail 52697 invoked by uid 500); 20 Nov 2016 19:18:59 -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 52619 invoked by uid 500); 20 Nov 2016 19:18:59 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 52614 invoked by uid 99); 20 Nov 2016 19:18:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2016 19:18:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5C5FF2C4C73 for ; Sun, 20 Nov 2016 19:18:58 +0000 (UTC) Date: Sun, 20 Nov 2016 19:18:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8908) After copying the template charging for that template is stopped MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 20 Nov 2016 19:19:01 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8908?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D15681688#comment-15681688 ]=20 ASF GitHub Bot commented on CLOUDSTACK-8908: -------------------------------------------- Github user blueorangutan commented on the issue: https://github.com/apache/cloudstack/pull/896 =20 Packaging result: =E2=9C=94centos6 =E2=9C=94centos7 =E2=9C=94debian. JI= D-224 > After copying the template charging for that template is stopped=20 > ----------------------------------------------------------------- > > Key: CLOUDSTACK-8908 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-890= 8 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Template, Usage > Affects Versions: 4.5.2 > Reporter: subhash yedugundla > > [Repro Steps] > Register a template in Zone 1 . > Copy the template from Zone 1 to Zone 2 . > Once copied, deleted the template from Zone 1. > Check the charging of the template and found that charging of the templa= te in Zone 2 stopped > Sample data related to the issue > mysql> select id,type,state,description,created from event where descript= ion like "%4186%" and type like "%template%";=20 > +---------+-----------------+-----------+--------------------------------= ---------------------------------------------------------+-----------------= ----+=20 > | id | type | state | description | created |=20 > +---------+-----------------+-----------+--------------------------------= ---------------------------------------------------------+-----------------= ----+=20 > | 1964466 | TEMPLATE.CREATE | Completed | Successfully completed creating= template. Id: 4186 name: PerfTestVM2 | 2015-06-15 09:48:57 |=20 > | 2411011 | TEMPLATE.COPY | Scheduled | copying template: 4186 from zone:= 3 to zone: 1 | 2015-07-22 03:57:32 |=20 > | 2411012 | TEMPLATE.COPY | Started | copying template. copying template:= 4186 from zone: 3 to zone: 1 | 2015-07-22 03:57:32 |=20 > | 2411458 | TEMPLATE.COPY | Completed | Successfully completed copying te= mplate. copying template: 4186 from zone: 3 to zone: 1 | 2015-07-22 04:47:0= 8 |=20 > | 2412521 | TEMPLATE.DELETE | Scheduled | Deleting template 4186 | 2015-0= 7-22 06:46:18 |=20 > | 2412522 | TEMPLATE.DELETE | Started | deleting template. Template Id: 4= 186 | 2015-07-22 06:46:18 |=20 > | 2412523 | TEMPLATE.DELETE | Completed | Successfully completed deleting= template. Template Id: 4186 | 2015-07-22 06:46:18 |=20 > +---------+-----------------+-----------+--------------------------------= ---------------------------------------------------------+-----------------= ----+=20 > You can see that the template of zone3 is not removed.=20 > mysql> select * from template_zone_ref where template_id=3D4186;;=20 > +------+---------+-------------+---------------------+-------------------= --+---------------------+=20 > | id | zone_id | template_id | created | last_updated | removed |=20 > +------+---------+-------------+---------------------+-------------------= --+---------------------+=20 > | 3974 | 3 | 4186 | 2015-06-15 09:48:57 | 2015-06-15 09:48:57 | NULL | <= =3D=3D=3D=3D=3DNot removed=20 > | 4845 | 1 | 4186 | 2015-07-22 04:47:08 | 2015-07-22 04:47:08 | 2015-07-2= 2 06:46:18 |=20 > +------+---------+-------------+---------------------+-------------------= --+---------------------+=20 > However, not only Zone1 but also the charging of the template of Zone3 st= opped.=20 > +---------+---------------------+---------------------+---------+--------= --------------------------------------------------+---------------+--------= ------------+----------+-------------+=20 > | id | start_date | end_date | zone_id | description | usage_display | ra= w_usage | usage_id | size |=20 > +---------+---------------------+---------------------+---------+--------= --------------------------------------------------+---------------+--------= ------------+----------+-------------+=20 > | 5998486 | 2015-06-14 15:00:00 | 2015-06-15 14:59:59 | 3 | Template Id:4= 186 Size:14995087360VirtualSize:16106127360 | 4.808055 Hrs | 4.808055400848= 389 | 4186 | 14995087360 |=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dan abbrevi= ation=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=20 > 4186 | 14995087360 |=20 > | 7834096 | 2015-07-19 15:00:00 | 2015-07-20 14:59:59 | 3 | Template Id:4= 186 Size:14995087360VirtualSize:16106127360 | 24 Hrs | 24 | 4186 | 14995087= 360 |=20 > | 7889426 | 2015-07-20 15:00:00 | 2015-07-21 14:59:59 | 3 | Template Id:4= 186 Size:14995087360VirtualSize:16106127360 | 24 Hrs | 24 | 4186 | 14995087= 360 |=20 > | 7945799 | 2015-07-21 15:00:00 | 2015-07-22 14:59:59 | 3 | Template Id:4= 186 Size:14995087360VirtualSize:16106127360 | 15.771667 Hrs | 15.7716665267= 94434 | 4186 | 14995087360 |=20 > | 7945801 | 2015-07-21 15:00:00 | 2015-07-22 14:59:59 | 1 | Template Id:4= 186 Size:14995087360VirtualSize:16106127360 | 1.986111 Hrs | 1.986111283302= 3071 | 4186 | 14995087360 |=20 > +---------+---------------------+---------------------+---------+--------= --------------------------------------------------+---------------+--------= ------------+----------+-------------+=20 -- This message was sent by Atlassian JIRA (v6.3.4#6332)