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 B364B1049F for ; Mon, 1 Jul 2013 17:18:30 +0000 (UTC) Received: (qmail 63556 invoked by uid 500); 1 Jul 2013 17:18:30 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 63372 invoked by uid 500); 1 Jul 2013 17:18:30 -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 63364 invoked by uid 500); 1 Jul 2013 17:18:29 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 63355 invoked by uid 99); 1 Jul 2013 17:18:29 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 17:18:29 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id CBF051CD503; Mon, 1 Jul 2013 17:18:20 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6179990032927250413==" MIME-Version: 1.0 Subject: Re: Review Request 11992: CLOUDSTACK-2571 ZWPS issues with Enabling/Clearing the Maintenance State of the Storage From: "ASF Subversion and Git Services" To: "Ram Ganesh" , "Sateesh Chodapuneedi" , "edison su" , "Alex Huang" Cc: "Rajesh Battala" , "cloudstack" , "ASF Subversion and Git Services" Date: Mon, 01 Jul 2013 17:18:20 -0000 Message-ID: <20130701171820.26284.39681@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "ASF Subversion and Git Services" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/11992/ X-Sender: "ASF Subversion and Git Services" References: <20130628091832.23542.78937@reviews.apache.org> In-Reply-To: <20130628091832.23542.78937@reviews.apache.org> Reply-To: "ASF Subversion and Git Services" --===============6179990032927250413== 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/11992/#review22612 ----------------------------------------------------------- Commit 160b493285f6c72e1e93509dfd470c4bd7da7945 in branch refs/heads/4.2 from Rajesh Battala [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=160b493 ] CLOUDSTACK-2571 Zone Wide Primary Storage blocker issues while Enabling in Maintenance State Signed-off-by: Edison Su - ASF Subversion and Git Services On June 28, 2013, 9:18 a.m., Rajesh Battala wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/11992/ > ----------------------------------------------------------- > > (Updated June 28, 2013, 9:18 a.m.) > > > Review request for cloudstack, Alex Huang, edison su, Ram Ganesh, and Sateesh Chodapuneedi. > > > Bugs: CLOUDSTACK-2571 > > > Repository: cloudstack-git > > > Description > ------- > > Issue : NPE's are happening when ZWPS is put in maintenance, removed from maintenance. > > Fixed: > 1. Added ZONE scope storage handling in StorageManagerImpl and StoragePoolAutomationImpl > 2. Modified PrimaryDataStoreDao, listBy method to take poolid to Wrapper class of long instead of primitive. Modified associated DaoImpl. > 3. StoragePoolAutomationImpl, when storage is setting to Maintenance mode, handled the case for ZONE wide scope of storage. > if the storage is zone wide, get all the hosts(kvm, vmware) in zone and send the ModifyStoragePool command (with false) > 4. When users, cancels maintenance mode, the handled the ZONE wide scope of storage pool. > 5. Once the Storage is in maintenance, Deletion of the Storage will remove the mount points from all the hosts. > > This patch will solve all the issues pertaining to keeping/cancelling the ZONE wide primary storage. > > > Diffs > ----- > > engine/api/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDao.java 99b7b9c > engine/api/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java 8f7826f > server/src/com/cloud/storage/StorageManagerImpl.java b3e8b96 > server/src/com/cloud/storage/StoragePoolAutomationImpl.java 4001775 > > Diff: https://reviews.apache.org/r/11992/diff/ > > > Testing > ------- > > Manual Testing > ============= > 1. Enable maintenance mode of Zone wide storage , There were no NPE's happening and successfully kept the storage in maintenance mode. Verified DB status. > 2. Cancel maintenance mode of Zone wide storage, There were no NPE's happening and successfully kept the storage in UP state. > 3. Enable maintenance mode of zone wide, once successful then Delete the storage, Storage got deleted successfuly. Verify the hosts, Storage got unmounted and verified the DB status. > Addition Tests (As the common code path is modified): > 1. Add the Cluster scope of primary storage (kvm , xenserver). Adding the storage in both clusters is successful. > kvm specific: > ============ > 2. Enable Maintenance Mode of cluster scope kvm storage. Successfully enabled the storage in maintenance state. > 3. Cancel the Maintenance Mode of cluster scope kvm storage. Successfully enabled the storage in UP state. > 4. Enable Maintenance Mode of cluster scope kvm storage. Delete the storage. Storage got successfully deleted, unmounted from hosts and from db. > > Xenserver specific: > =================== > 5. Enable Maintenance Mode of cluster scope Xenserver storage. Successfully enabled the storage in maintenance state. > 6. Cancel the Maintenance Mode of cluster scope Xenserver storage. Successfully enabled the storage in UP state. > 7. Enable Maintenance Mode of cluster scope Xenserver storage. Delete the storage. Storage got successfully deleted, unmounted from hosts and from db. > > ZWPS is supported in KVM and VMware, the common code is modified. It should work of VMWare as well without any issues > > > Thanks, > > Rajesh Battala > > --===============6179990032927250413==--