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 6F9D4200AE4 for ; Thu, 26 May 2016 05:06:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6E4F7160A2E; Thu, 26 May 2016 03:06:34 +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 B48BF160A29 for ; Thu, 26 May 2016 05:06:33 +0200 (CEST) Received: (qmail 84218 invoked by uid 500); 26 May 2016 03:06: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 83661 invoked by uid 500); 26 May 2016 03:06:15 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 83262 invoked by uid 99); 26 May 2016 03:06:14 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 03:06:14 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9B7D82C1F64 for ; Thu, 26 May 2016 03:06:14 +0000 (UTC) Date: Thu, 26 May 2016 03:06:14 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8973) Unusual response when creating a template from a snapshot with Swift as secondary storage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 May 2016 03:06:34 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301417#comment-15301417 ] ASF subversion and git services commented on CLOUDSTACK-8973: ------------------------------------------------------------- Commit 978184bccbb48ae87d0d40e174847a34c53b94e9 in cloudstack's branch refs/heads/master from [~williamstevens@gmail.com] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=978184b ] Merge pull request #1424 from syed/create-template-api-bug [CLOUDSTACK-8973] Fix create template from snapshot returning null in case of region storeThis PR fixes a case where when we create a template from a snpashot in a region wide store, we don't set the cross zone flag which causes a null response to be returned Tests: Before fix ``` (local) > create template snapshotid=33aa3f3b-5a47-4d2a-8d27-12952c01ebed displaytext=t2 ostypeid=20c8ead6-d750-11e5-9f8c-06524200007c name=t9 accountid = 1b13d7c2-d750-11e5-9f8c-06524200007c cmd = org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin created = 2016-02-23T16:09:24+0000 jobid = 4f9f5ff9-e7f0-4af6-999c-799431fd47de jobinstanceid = a08a9711-bd31-43bb-80a2-49cf9d722a19 jobinstancetype = Template jobprocstatus = 0 jobresult: null: crossZones = False isfeatured = False ispublic = False isready = False tags: jobresultcode = 0 jobresulttype = object jobstatus = 1 userid = 1b140f08-d750-11e5-9f8c-06524200007c ``` See the *null* in response After fix: ``` (local) > create template snapshotid=33aa3f3b-5a47-4d2a-8d27-12952c01ebed displaytext=t2 ostypeid=20c8ead6-d750-11e5-9f8c-06524200007c name=t11 accountid = 1b13d7c2-d750-11e5-9f8c-06524200007c cmd = org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin created = 2016-02-25T21:47:03+0000 jobid = 1b74209b-b3c1-4168-a243-f559aa0c081b jobinstanceid = 06ecee5a-b1f2-4e67-80fb-f0f44b0aa198 jobinstancetype = Template jobprocstatus = 0 jobresult: template: id = 06ecee5a-b1f2-4e67-80fb-f0f44b0aa198 name = t11 account = admin created = 2016-02-25T21:47:03+0000 crossZones = True displaytext = t2 domain = ROOT domainid = 1b13ab80-d750-11e5-9f8c-06524200007c format = VHD hypervisor = XenServer isdynamicallyscalable = False isextractable = True isfeatured = False ispublic = False isready = True ostypeid = 20c8ead6-d750-11e5-9f8c-06524200007c ostypename = CentOS 5 (64-bit) passwordenabled = False size = 21474836480 sourcetemplateid = 1af0f0cc-d750-11e5-9f8c-06524200007c sshkeyenabled = False status = Download Complete tags: templatetype = USER jobresultcode = 0 jobresulttype = object jobstatus = 1 userid = 1b140f08-d750-11e5-9f8c-06524200007c ``` Works correctly * pr/1424: Fix create template from snapshot returning null in case of region store Signed-off-by: Will Stevens > Unusual response when creating a template from a snapshot with Swift as secondary storage > ----------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-8973 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8973 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Affects Versions: 4.4.4 > Reporter: Franz-Philippe Garcia > Priority: Minor > > I am not getting this issue with NFS. When I create a template from a snapshot, I get the following response: > {noformat} > { > "queryasyncjobresultresponse":{ > "accountid":"fd8ecd27-b6d6-4086-8644-783f769f68c1", > "userid":"f9ce0c4a-36c6-4e7e-a49c-d77ecda227b6", > "cmd":"org.apache.cloudstack.api.command.user.template.CreateTemplateCmd", > "jobstatus":1, > "jobprocstatus":0, > "jobresultcode":0, > "jobresulttype":"object", > "jobresult":{ > "null":{ > "ispublic":false, > "isready":false, > "isfeatured":false, > "crossZones":false, > "tags":[ > ] > } > }, > "created":"2015-10-20T11:58:07-0400", > "jobid":"4549d467-d0e0-4ce9-bfdd-c20c174c8ad0" > } > } > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)