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 25222102C8 for ; Sat, 27 Jul 2013 15:05:56 +0000 (UTC) Received: (qmail 92985 invoked by uid 500); 27 Jul 2013 15:05:55 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 92947 invoked by uid 500); 27 Jul 2013 15:05:54 -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 92939 invoked by uid 500); 27 Jul 2013 15:05:53 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 92931 invoked by uid 99); 27 Jul 2013 15:05:53 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jul 2013 15:05:53 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 20CCD1D030D; Sat, 27 Jul 2013 15:05:50 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1782777378464654980==" MIME-Version: 1.0 Subject: Review Request 12996: Unable to Resize Volume (kvm, vmware) From: "Rajesh Battala" To: "Ram Ganesh" , "edison su" , "Min Chen" , "Devdeep Singh" Cc: "Rajesh Battala" , "cloudstack" Date: Sat, 27 Jul 2013 15:05:49 -0000 Message-ID: <20130727150549.537.56046@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Rajesh Battala" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/12996/ X-Sender: "Rajesh Battala" Reply-To: "Rajesh Battala" --===============1782777378464654980== 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/ ----------------------------------------------------------- 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 --===============1782777378464654980==--