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 8E2C3200D53 for ; Tue, 5 Dec 2017 18:03:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8CC77160C1B; Tue, 5 Dec 2017 17:03:04 +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 DB210160BF1 for ; Tue, 5 Dec 2017 18:03:03 +0100 (CET) Received: (qmail 60005 invoked by uid 500); 5 Dec 2017 17:03: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 59996 invoked by uid 500); 5 Dec 2017 17:03:03 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 59993 invoked by uid 99); 5 Dec 2017 17:03:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2017 17:03:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 21D23C6F54 for ; Tue, 5 Dec 2017 17:03:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VutL83M6-Kkh for ; Tue, 5 Dec 2017 17:03:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0C7105F2C4 for ; Tue, 5 Dec 2017 17:03: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 9217FE0140 for ; Tue, 5 Dec 2017 17:03: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 4E541255C7 for ; Tue, 5 Dec 2017 17:03:00 +0000 (UTC) Date: Tue, 5 Dec 2017 17:03:00 +0000 (UTC) From: "Dag Sonstebo (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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, 05 Dec 2017 17:03:04 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-10174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag Sonstebo updated CLOUDSTACK-10174: -------------------------------------- Summary: Public template not being copied to new secondary storage pool if original URL now invalid (was: Public template not copying to new secondary storage pool if URL now invalid) > 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.9.1.0 > Environment: CloudStack 4.9.1 > Any hypervisor. > Reporter: Dag Sonstebo > > 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 > 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: > {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)