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 1823BF7A3 for ; Fri, 19 Apr 2013 04:59:49 +0000 (UTC) Received: (qmail 43983 invoked by uid 500); 19 Apr 2013 04:59:48 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 43875 invoked by uid 500); 19 Apr 2013 04:59:48 -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 43846 invoked by uid 500); 19 Apr 2013 04:59:47 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 43837 invoked by uid 99); 19 Apr 2013 04:59:47 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Apr 2013 04:59:47 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id BBAA81C8A91; Fri, 19 Apr 2013 04:59:42 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0290292943203680609==" MIME-Version: 1.0 Subject: Review Request: add state change in createVolume back to Allocated if anything fails From: "Marcus Sorensen" To: "Chip Childers" Cc: "Marcus Sorensen" , "cloudstack" Date: Fri, 19 Apr 2013 04:59:42 -0000 Message-ID: <20130419045942.15138.47259@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Marcus Sorensen" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/10623/ X-Sender: "Marcus Sorensen" Reply-To: "Marcus Sorensen" --===============0290292943203680609== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/10623/ ----------------------------------------------------------- Review request for cloudstack and Chip Childers. Description ------- createVolume changes the volume state from 'Allocated' to 'Creating', but h= as no code to change it back to 'Allocated' if anything goes wrong, despite= there already being a path from 'Creating' to 'Allocated' for volumes, via= the OperationFailed event. Adding this in fixes the issue and avoids leavi= ng disks in an unusable state. This addresses bug CLOUDSTACK-2104. Diffs ----- server/src/com/cloud/storage/StorageManagerImpl.java 624361f = Diff: https://reviews.apache.org/r/10623/diff/ Testing ------- Tested in devcloud-kvm, volume that was larger than primary storage failed = to attack, and went back to 'Allocated' from 'Creating' upon the failure. I= was then able to retry, and delete the disk. Thanks, Marcus Sorensen --===============0290292943203680609==--