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 ED3271127C for ; Tue, 17 Jun 2014 11:49:40 +0000 (UTC) Received: (qmail 58401 invoked by uid 500); 17 Jun 2014 11:49:40 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 58359 invoked by uid 500); 17 Jun 2014 11:49:40 -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 58337 invoked by uid 99); 17 Jun 2014 11:49:40 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2014 11:49:40 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 045ED1D9EFC; Tue, 17 Jun 2014 11:49:30 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3678182207327132905==" MIME-Version: 1.0 Subject: Re: Review Request 19779: Fixed[CLOUDSTACK-5150]:-Creating template from a VM in Simulator results in incorrect size From: "ASF Subversion and Git Services" To: "daan Hoogland" , "Prasanna Santhanam" Cc: "ASF Subversion and Git Services" , "Girish Chaudhari" , "cloudstack" Date: Tue, 17 Jun 2014 11:49:29 -0000 Message-ID: <20140617114929.6311.81454@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/19779/ X-Sender: "ASF Subversion and Git Services" References: <20140617093712.13794.82343@reviews.apache.org> In-Reply-To: <20140617093712.13794.82343@reviews.apache.org> Reply-To: "ASF Subversion and Git Services" X-ReviewRequest-Repository: cloudstack-git --===============3678182207327132905== 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/19779/#review45931 ----------------------------------------------------------- Commit 5cc5483a7895e7876e336349323a5ea5598d5137 in cloudstack's branch refs/heads/4.4 from Girish chaudhari [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=5cc5483 ] CLOUDSTACK-5150 - set the template size from source Signed-off-by: Daan Hoogland (cherry picked from commit 883d8f11196e9ca55324bcf075880e077a2d3df3) - ASF Subversion and Git Services On June 17, 2014, 9:37 a.m., Girish Chaudhari wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/19779/ > ----------------------------------------------------------- > > (Updated June 17, 2014, 9:37 a.m.) > > > Review request for cloudstack, daan Hoogland and Prasanna Santhanam. > > > Bugs: CLOUDSTACK-5150 > https://issues.apache.org/jira/browse/CLOUDSTACK-5150 > > > Repository: cloudstack-git > > > Description > ------- > > Problem Statement:- In Simulator, When provisioning the VM using the personal template, results into the NullPointerException. > Root Cause:- The template creation command is setting up the size as NULL in the tempalte_store_ref table and which is something causing this issue. > Solution: To set up the size to 100 ( any Non-Null value) in the template create mocking process, which ultimately setting up the size to 100 in the tempalte_store_ref table and hence solving the issue. > > > Diffs > ----- > > plugins/hypervisors/simulator/src/com/cloud/resource/SimulatorStorageProcessor.java 8a78b87 > > Diff: https://reviews.apache.org/r/19779/diff/ > > > Testing > ------- > > Tested it on the 4.3, the size in tempalte_store_ref table is getting populated as 100 and could instantiate the VM using the personal template. > > > Thanks, > > Girish Chaudhari > > --===============3678182207327132905==--