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 F0906200BC8 for ; Wed, 23 Nov 2016 17:39:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EF0B4160B0A; Wed, 23 Nov 2016 16:39:59 +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 47BD8160AEC for ; Wed, 23 Nov 2016 17:39:59 +0100 (CET) Received: (qmail 93262 invoked by uid 500); 23 Nov 2016 16:39:58 -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 93233 invoked by uid 500); 23 Nov 2016 16:39:58 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 93229 invoked by uid 99); 23 Nov 2016 16:39:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2016 16:39:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 585302C03DC for ; Wed, 23 Nov 2016 16:39:58 +0000 (UTC) Date: Wed, 23 Nov 2016 16:39:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9570) Bug in listSnapshots for snapshots with deleted data stores MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 23 Nov 2016 16:40:00 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15690652#comment-15690652 ] ASF GitHub Bot commented on CLOUDSTACK-9570: -------------------------------------------- Github user jburwell commented on the issue: https://github.com/apache/cloudstack/pull/1735 @nvazquez could you please check into the Travis failures? > Bug in listSnapshots for snapshots with deleted data stores > ----------------------------------------------------------- > > Key: CLOUDSTACK-9570 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9570 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Reporter: Nicolas Vazquez > Assignee: Nicolas Vazquez > > h3. Actual behaviour > If there is snapshot on a data store that is removed, {{listSnapshots}} still tries to enumerate it and gives error (in this example data store 2 has been removed): > {code:xml|title=/client/api?command=listSnapshots&isrecursive=true&listall=true|borderStyle=solid} > > 530 > 4250 > Unable to locate datastore with id 2 > > {code} > h3. Reproduce error > This steps can be followed to reproduce issue: > * Take a snapshot of a volume (this creates a references for primary storage and secondary storage in snapshot_store_ref table > * Simulate retiring primary data storage where snapshot is cached (in this example X is a fake data store and Y is snapshot id): > {{UPDATE `cloud`.`snapshot_store_ref` SET `store_id`='X', `state`="Destroyed" WHERE `id`='Y';}} > * List snapshots > {{/client/api?command=listSnapshots&isrecursive=true&listall=true}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)