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 2C59A200BBD for ; Tue, 8 Nov 2016 11:35:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2B01E160AFA; Tue, 8 Nov 2016 10:35:01 +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 72023160B0A for ; Tue, 8 Nov 2016 11:35:00 +0100 (CET) Received: (qmail 96428 invoked by uid 500); 8 Nov 2016 10:34:59 -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 96386 invoked by uid 500); 8 Nov 2016 10:34:59 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 96348 invoked by uid 99); 8 Nov 2016 10:34:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 10:34:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 26E8C2C2A6C for ; Tue, 8 Nov 2016 10:34:59 +0000 (UTC) Date: Tue, 8 Nov 2016 10:34:59 +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: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 10:35:01 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9570?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D15647177#comment-15647177 ]=20 ASF GitHub Bot commented on CLOUDSTACK-9570: -------------------------------------------- Github user blueorangutan commented on the issue: https://github.com/apache/cloudstack/pull/1735 =20 Packaging result: =E2=9C=94centos6 =E2=9C=94centos7 =E2=9C=94debian. JI= D-149 > Bug in listSnapshots for snapshots with deleted data stores > ----------------------------------------------------------- > > Key: CLOUDSTACK-9570 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-957= 0 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: API > Reporter: Nicolas Vazquez > Assignee: Nicolas Vazquez > > h3. Actual behaviour > If there is snapshot on a data store that is removed, {{listSnapshots}} s= till tries to enumerate it and gives error (in this example data store 2 ha= s been removed): > {code:xml|title=3D/client/api?command=3DlistSnapshots&isrecursive=3Dtrue&= listall=3Dtrue|borderStyle=3Dsolid} > > 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 stor= age and secondary storage in snapshot_store_ref table > * Simulate retiring primary data storage where snapshot is cached (in thi= s example X is a fake data store and Y is snapshot id): > {{UPDATE `cloud`.`snapshot_store_ref` SET `store_id`=3D'X', `state`=3D"De= stroyed" WHERE `id`=3D'Y';}} > * List snapshots > {{/client/api?command=3DlistSnapshots&isrecursive=3Dtrue&listall=3Dtrue}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)