Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A00C17568 for ; Wed, 18 Mar 2015 21:40:34 +0000 (UTC) Received: (qmail 10824 invoked by uid 500); 18 Mar 2015 21:40:33 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 10779 invoked by uid 500); 18 Mar 2015 21:40:33 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 10765 invoked by uid 99); 18 Mar 2015 21:40:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 21:40:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shadowsor@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 21:40:06 +0000 Received: by wibdy8 with SMTP id dy8so101510621wib.0 for ; Wed, 18 Mar 2015 14:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6feVfsfqlVJLiFknWWctgEAPUz1Z7HaY3ctCA4wDFzQ=; b=vjbJjD1IOA3xwX7eNdzx94L2M0CUYpDraqcHjXlIWw8OiWyuZk/emS6d7+VTFO10j0 HnR1qCJXXQAVBy1/1yfWotz4523aW1Sfvdg47MSSDMP57GvZ1oCA3pPAqg5nAG98BpIL oQ5I4Mj/FtL/Rq3/v3NRNPFhb6xCpJ5WuzDU5p+1aKcuYo8j57So1Lep+Z5BT5IAc1Ym ADQJkvTdlfmF+yIHEAncrVB/Ut2QKhBEdmir+6erIthO6olQss/bKh4Bf6ND98zeC3L5 0i5konneUbuC8iaGoIsm2gSzi4YAjHQzUqgDnszY+MSF8bkC0r9o3Em1zN2VCckve3WZ ArVQ== MIME-Version: 1.0 X-Received: by 10.194.173.199 with SMTP id bm7mr108511657wjc.76.1426714715515; Wed, 18 Mar 2015 14:38:35 -0700 (PDT) Received: by 10.28.167.19 with HTTP; Wed, 18 Mar 2015 14:38:35 -0700 (PDT) In-Reply-To: <5509D789.7000306@gmail.com> References: <5509D789.7000306@gmail.com> Date: Wed, 18 Mar 2015 14:38:35 -0700 Message-ID: Subject: Re: BUG: anybody addressing this one ? From: Marcus To: "dev@cloudstack.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Well, I think many people will want to be able to leave disks detached without deleting them, I'm not sure what the use case was that caused Andrija to want to delete those disks. It sounds like he wanted to delete attached disks and keep the vm. >From experience, it would be relatively trivial to have a 'deleteVolume deferred=true' parameter that simply marks the volume as destroyed, then the storage cleanup thread will expunge it. The list volumes api call would also need to be changed to show destroyed volumes optionally, and there'd need to be a new API call that allows you to mark the volume read again to 'undo'. This isn't much work but unfortunately I'm not in a position to do that at the moment. The big issue is really that drilling down into members of entities in the UI seems to be broken, whether it's "view volumes" attached to a vm or "view instances" on a host. On Wed, Mar 18, 2015 at 12:52 PM, ilya wrote: > It looks like we have 2 issues here. > > 1) you are seeing volumes you should not see > > 2) volume purging is not implemented > > There are several solution to #2 > > 1) I've written a shell script that deletes all volumes that are in detached > state for over X number of days. I'll see if i can share the script. This > could be temporary solution run as cronjob periodically. > > 2) Marcus has written an API extension call that will delete the VM with > volumes, slightly different API call needs to be invoked, something like > destroyVmWithVolumes, the volumes will be expunged at the same time as VM. > Its not part of the cloudstack UI, but could be integrated - hoping someone > with UI experience can do that. The code will be committed upstream > hopefully soon, there is some internal delay for releasing that, but we will > work this through. > > > > On 3/18/15 4:58 AM, Andrija Panic wrote: >> >> Hi, >> >> https://issues.apache.org/jira/browse/CLOUDSTACK-7926 >> >> Currently I have hit a bug, when I click on some instance, then on View >> Volumes, and then I get listed volumes that belong to some other VM - it >> already happened to me that I deleted the volumes - beacuse of ACS bug in >> GUI ! >> >> So, I suggest to consider maybe to implement purging volumes the same way >> it is implemented with VM-s - so the VM is not really deleted - and the >> purge thread in ACS will acually delete it when it runs... >> >