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 1BF7ECF70 for ; Mon, 29 Jul 2013 13:26:53 +0000 (UTC) Received: (qmail 61890 invoked by uid 500); 29 Jul 2013 13:26:52 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 61862 invoked by uid 500); 29 Jul 2013 13:26:52 -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 61854 invoked by uid 500); 29 Jul 2013 13:26:52 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 61846 invoked by uid 99); 29 Jul 2013 13:26:52 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 13:26:52 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id B70F81D0E6B; Mon, 29 Jul 2013 13:26:50 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6041562181421637721==" MIME-Version: 1.0 Subject: Re: Review Request 12996: Unable to Resize Volume (kvm, vmware) From: "Devdeep Singh" To: "Ram Ganesh" , "edison su" , "Min Chen" , "Devdeep Singh" Cc: "Rajesh Battala" , "cloudstack" Date: Mon, 29 Jul 2013 13:26:50 -0000 Message-ID: <20130729132650.30961.12600@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Devdeep Singh" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/12996/ X-Sender: "Devdeep Singh" References: <20130727150549.537.56046@reviews.apache.org> In-Reply-To: <20130727150549.537.56046@reviews.apache.org> Reply-To: "Devdeep Singh" --===============6041562181421637721== 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/12996/#review24118 ----------------------------------------------------------- Ship it! Committed to 4.2 and master. Kindly close the request. - Devdeep Singh On July 27, 2013, 3:05 p.m., Rajesh Battala wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/12996/ > ----------------------------------------------------------- > > (Updated July 27, 2013, 3:05 p.m.) > > > Review request for cloudstack, Devdeep Singh, edison su, Min Chen, and Ram Ganesh. > > > Bugs: 3877 > > > Repository: cloudstack-git > > > Description > ------- > > Issue: > ===== > this issue is with the way we extract the hypevisor type from the sql > > > mysql> SELECT s.hypervisor, c.hypervisor_type from volumes v, storage_pool s, cluster c where v.pool_id = s.id and s.cluster_id = c.id and v.id = 21; > +------------+-----------------+ > | hypervisor | hypervisor_type | > +------------+-----------------+ > | NULL | KVM | > +------------+-----------------+ > > > first column value will be not null if the storage pool is Zone wide else it will be NULL. > but in the code always first column is considering to figure out the hypervisor type which causing the hpervisor type to be NONE and hence failing to resize the volume > > > this issue is happening while determining the hypervisor type for a volume. > for ZWPS, it will return the hypervisor because, in storage pool we store the hypervisor type if the pool is added of scoe ZONE. > if the pool is of scope Cluster hypervisor type will be NULL > > we support volume resize when the volume is present on ZONE scope and Cluster scope. > they way of hypervisor type extraction from the sql query result should be change which will resolve this blocker. > > > Fix: > ===== > > depending on the scope type of storage pool, the sql result is passed to determined the hypervisor type. > > > Diffs > ----- > > engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java 7696bcc > > Diff: https://reviews.apache.org/r/12996/diff/ > > > Testing > ------- > > 1. Able to resize the volume successfully > > > Thanks, > > Rajesh Battala > > --===============6041562181421637721==--