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 159EC1006F for ; Fri, 12 Jul 2013 14:01:17 +0000 (UTC) Received: (qmail 36007 invoked by uid 500); 12 Jul 2013 14:01:16 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 35959 invoked by uid 500); 12 Jul 2013 14:01:16 -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 35951 invoked by uid 500); 12 Jul 2013 14:01:16 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 35945 invoked by uid 99); 12 Jul 2013 14:01:16 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2013 14:01:16 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id EA92D1C4464; Fri, 12 Jul 2013 14:01:05 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7401967650080205675==" MIME-Version: 1.0 Subject: Review Request 12510: CLOUDSTACK 3476 : deleteDomain api should fail when release dedicated resource to that domain fails: From: "Saksham Srivastava" To: "Devdeep Singh" , "Alena Prokharchyk" Cc: "Saksham Srivastava" , "cloudstack" Date: Fri, 12 Jul 2013 14:01:05 -0000 Message-ID: <20130712140105.14335.20516@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Saksham Srivastava" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/12510/ X-Sender: "Saksham Srivastava" Reply-To: "Saksham Srivastava" --===============7401967650080205675== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/12510/ ----------------------------------------------------------- Review request for cloudstack, Alena Prokharchyk and Devdeep Singh. Bugs: 3476 Repository: cloudstack-git Description ------- In case the release dedicate resource fails, deletion of domain should not happen. Whenever deleting a domain all the resources dedicated to it must be released of dedication and moved to shared pool. Currently even if release API fails the deleteDomain API is executed successfully. Further if there are dedicated resources to a domiain and cleanup is not true, resources should not be released. Added checks to prohibit this behaviour. Diffs ----- server/src/com/cloud/user/DomainManagerImpl.java aad5787 Diff: https://reviews.apache.org/r/12510/diff/ Testing ------- If domain has dedicated resources, cleanup=true will release dedication and delete the domain. cleanup=false will not release dedication and will not delete the domain. Thanks, Saksham Srivastava --===============7401967650080205675==--