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 2FC0E102CC for ; Thu, 6 Jun 2013 16:15:28 +0000 (UTC) Received: (qmail 64251 invoked by uid 500); 6 Jun 2013 16:15:27 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 64220 invoked by uid 500); 6 Jun 2013 16:15:27 -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 64212 invoked by uid 99); 6 Jun 2013 16:15:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 16:15:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mike.tutkowski@solidfire.com designates 209.85.219.51 as permitted sender) Received: from [209.85.219.51] (HELO mail-oa0-f51.google.com) (209.85.219.51) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 16:15:20 +0000 Received: by mail-oa0-f51.google.com with SMTP id f4so2388800oah.10 for ; Thu, 06 Jun 2013 09:14:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=V76nxDbEOyDNJ1SZWgHfokAoxM0WTPoWjDuLC2XhLuQ=; b=HvB/Lme6GJ4PWa+fUplFLSVhUJRHTtuJKvvgvl1s+y+5k3GW4x5CKXUq1RFYbCHThL dy+llXj0SpVhADGDzscKo6pfyl9uo1cOpJJwxrWJxAxE0vVQd3vzNZOw1i/rKbEUDFpC bn/gZTd2/FIr6DSmW21fQzUI5dzYSJ4b4rAF40n43dGoklWrhmpTV8A+kTyw0txPsmWd bTUdUGMukoQHM2YLHLcS3s83RHpyQGEV5+5nagyDeiOvIi9/2KSxD9Kq/ertJEfgPHqZ OHGOPTmQ6zu+r7qdbsuAS/l+U6F7iiGBVFTDqSUnY1Kp/WAq6SyRjNvOnThL04Vs8rOn eflA== MIME-Version: 1.0 X-Received: by 10.60.34.135 with SMTP id z7mr18878056oei.68.1370535298908; Thu, 06 Jun 2013 09:14:58 -0700 (PDT) Received: by 10.182.10.66 with HTTP; Thu, 6 Jun 2013 09:14:58 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Jun 2013 10:14:58 -0600 Message-ID: Subject: Re: deleteVolume is sync From: Mike Tutkowski To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=089e0122acb4a4d5fe04de7e9d48 X-Gm-Message-State: ALoCoQkqr8uj00a+0q2C6PASwrM1DY0uyEp+TsuHXfxgxZWvs0NJwhzGi6uumkGk7dc8Sg8v0AGn X-Virus-Checked: Checked by ClamAV on apache.org --089e0122acb4a4d5fe04de7e9d48 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable If it's a long-running op to delete a volume (which is can be), I would say it should be async. On Thu, Jun 6, 2013 at 9:25 AM, Marcus Sorensen wrote= : > So does it just need to be async, or is deleteVolume doing too much in > both moving the volume to destroy state and expunging? If I transition > a volume to 'Destroy' state, the storage cleanup thread comes along > and deletes it for me later, similar to how the VMs are expunged. This > seems preferable, because one could potentially undelete a volume > within the window. > > On Wed, Jun 5, 2013 at 7:47 PM, Mike Tutkowski > wrote: > > Hey Marcus, > > > > To me, it seems like it should be async, as well. > > > > As far as I know (at least in pre 4.2), unless you are deleting a volum= e > > that has never been attached to a VM, the CS MS would have to have the > > hypervisor perform some operation upon the deletion of a CloudStack > > volume...and that could take a bit of time. > > > > > > > > > > On Wed, Jun 5, 2013 at 7:24 PM, Marcus Sorensen > wrote: > > > >> Oh, I should add that I traced it through the system, and it actually > >> sends a DeleteVolumeCommand to the agent. That has to finish before > >> the sync call completes. > >> > >> This is on 4.1, if it changes significantly with the storage refactor, > >> that's fine, but I'd like to know if there was a reason for it in case > >> we want to make it async for us. > >> > >> On Wed, Jun 5, 2013 at 7:21 PM, Marcus Sorensen > >> wrote: > >> > Just wondering why deleteVolume is a sync call. It doesn't seem to > >> > adhere to the 'mark it removed, let a worker expunge it later after = X > >> > seconds' paradigm. I only noticed this when a storage system was > >> > taking a bit to do the work and thus blocking the API call. > >> > > > > > > > > -- > > *Mike Tutkowski* > > *Senior CloudStack Developer, SolidFire Inc.* > > e: mike.tutkowski@solidfire.com > > o: 303.746.7302 > > Advancing the way the world uses the > > cloud > > *=99* > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *=99* --089e0122acb4a4d5fe04de7e9d48--