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 F112F200CDD for ; Mon, 3 Jul 2017 07:59:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF6EC160BEE; Mon, 3 Jul 2017 05:59:07 +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 4BD8C160BFE for ; Mon, 3 Jul 2017 07:59:07 +0200 (CEST) Received: (qmail 24367 invoked by uid 500); 3 Jul 2017 05:59:06 -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 24357 invoked by uid 500); 3 Jul 2017 05:59:06 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 24354 invoked by uid 99); 3 Jul 2017 05:59:06 -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; Mon, 03 Jul 2017 05:59:06 +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 EC6D3C01DB for ; Mon, 3 Jul 2017 05:59:04 +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 heqo18sc1FpK for ; Mon, 3 Jul 2017 05:59:04 +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 670155F242 for ; Mon, 3 Jul 2017 05:59:03 +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 4E535E0069 for ; Mon, 3 Jul 2017 05:59:01 +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 DBFB320D11 for ; Mon, 3 Jul 2017 05:59:00 +0000 (UTC) Date: Mon, 3 Jul 2017 05:59:00 +0000 (UTC) From: "Nitesh Sarda (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9981) Regression occurs after upgrading to 4.10 while registering a template. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 03 Jul 2017 05:59:08 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9981?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16071952#comment-16071952 ]=20 Nitesh Sarda commented on CLOUDSTACK-9981: ------------------------------------------ Raise a PR for this issue. Following are the details : https://github.com/apache/cloudstack/pull/2165 > Regression occurs after upgrading to 4.10 while registering a template. > ----------------------------------------------------------------------- > > Key: CLOUDSTACK-9981 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-998= 1 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Reporter: Nitesh Sarda > > When an environment is upgraded to 4.10, then while registering template = for a zone from cloudstack UI will fail if it is created in older version(b= efore 3.x).=20 > This bug got introduced with the PR#1894 for CLOUDSTACK-9700. In this PR = a new parameter =E2=80=98zoneIds=E2=80=99 was added to the registerTemplate= api and is marked with the =E2=80=98since=E2=80=99 attribute as =E2=80=984= .10.0.0=E2=80=99. since attribute is suppose to provide version for the con= taining data, not about when parameter was introduced. Although the paramet= er was introduced in 4.10, but it can contain the information from earlier = version, thus it is wrongly marked here as =E2=80=984.10.0.0=E2=80=99. =20 > This issue occurs because zones from older version have UUID parameter va= lue as Integer, whereas higher version zones have fixed format. So while fe= tching the ZoneIds for installing templates, parsing for UUID with integer = value fails and hence template is not installed. > Fix : > For the sake of backward compatibility, along with UUID, integer is also = being parsed while retrieving ZoneId for the installing templates. Integer = value of UUID cannot be converted into the fixed format because this value = is used as a hard coded value in few automation scripts which runs locally = for some customers. Hence, "since" attribute should be removed from a param= eter command for ZoneIds. =20 -- This message was sent by Atlassian JIRA (v6.4.14#64029)