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 71BD6200D61 for ; Tue, 19 Dec 2017 09:42:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6FF0A160C1B; Tue, 19 Dec 2017 08:42:05 +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 BE010160C2A for ; Tue, 19 Dec 2017 09:42:04 +0100 (CET) Received: (qmail 79727 invoked by uid 500); 19 Dec 2017 08:42:03 -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 79718 invoked by uid 500); 19 Dec 2017 08:42:03 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 79715 invoked by uid 99); 19 Dec 2017 08:42:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2017 08:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5169D1A0A40 for ; Tue, 19 Dec 2017 08:42:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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, RCVD_IN_DNSWL_NONE=-0.0001, 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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id dh04Jgurwe1C for ; Tue, 19 Dec 2017 08:42:02 +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 3D6E25F2EE for ; Tue, 19 Dec 2017 08:42:01 +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 7706FE0140 for ; Tue, 19 Dec 2017 08:42:00 +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 3AB40212F7 for ; Tue, 19 Dec 2017 08:42:00 +0000 (UTC) Date: Tue, 19 Dec 2017 08:42:00 +0000 (UTC) From: "Rohit Yadav (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CLOUDSTACK-10174) Public template not being copied to new secondary storage pool if original URL now invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 19 Dec 2017 08:42:05 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-10174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohit Yadav reassigned CLOUDSTACK-10174: ---------------------------------------- Assignee: Rohit Yadav > Public template not being copied to new secondary storage pool if original URL now invalid > ------------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-10174 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10174 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Affects Versions: 4.10.0.0, 4.9.1.0 > Environment: CloudStack 4.9.1 / 4.10 > Any hypervisor. > Reporter: Dag Sonstebo > Assignee: Rohit Yadav > > If: > * Template is public and has been previously successfully downloaded > * AND the template URL is not longer accessible > * AND A new secondary storage pool is added > Then: > * The template > zones tab will intermittently show either: > ** the template download error, e.g. "HTTP Server returned 404 (expected 200 OK)" as well as a Ready=NO > ** the template success message "Download Complete" and Ready=YES > * Templates which originate from a browser upload or from within CloudStack itself are not attempted copied at all > Steps to reproduce: > # Download a template, mark this public, ensure this gets a "download complete" + ready=yes status > # Edit the URL for the template in cloud.vm_template to make it invalid > # Add a new secondary storage pool and restart management / SSVM > # Confirm download status in cloud.template_store_ref (in this example store_id=7 has been added): > {code} > Execute: > > SELECT id,store_id,template_id,last_updated,error_str FROM cloud.template_store_ref where template_id=206 > | id | store_id | template_id | last_updated | error_str | > | 18 | 5 | 206 | 2017-12-05 13:35:24 | Install completed successfully at 11/3/17 12:40 PM | > | 33 | 6 | 206 | 2017-12-05 13:35:26 | Install completed successfully at 11/4/17 8:47 AM | > | 81 | 7 | 206 | 2017-12-05 13:36:17 | HTTP Server returned 404 (expected 200 OK) | > | NULL | NULL | NULL | NULL | NULL | > 4 rows > {code} > * In the CloudStack GUI go to template > zone tab, and hit refresh a few times > * The status will intermittently change from "Download Complete" to "HTTP Server returned 404 (expected 200 OK)" > Whilst this is in the first instance a minor cosmetic issue the underlying functionality should ideally be reviewed, i.e. > * If original URL is no longer available, > * AND template has previously been successfully downloaded > * THEN ideally SSVM should do an internal copy of this template to the new secondary storage pool -- This message was sent by Atlassian JIRA (v6.4.14#64029)