Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BEBF5E8DE for ; Fri, 22 Feb 2013 21:42:31 +0000 (UTC) Received: (qmail 82332 invoked by uid 500); 22 Feb 2013 21:42:31 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 82205 invoked by uid 500); 22 Feb 2013 21:42:31 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 82192 invoked by uid 99); 22 Feb 2013 21:42:31 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 21:42:31 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id A58221C79C6; Fri, 22 Feb 2013 21:42:23 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6741057389963361260==" MIME-Version: 1.0 Subject: Re: Review Request: Support for full clones on ESX for Cloudstack (CS-670) From: "Venkata Siva Vijayendra Bhamidipati" To: "Kelven Yang" Cc: "Sateesh Chodapuneedi" , "cloudstack" , "Venkata Siva Vijayendra Bhamidipati" , "Frank Zhang" Date: Fri, 22 Feb 2013 21:42:23 -0000 Message-ID: <20130222214223.18986.38107@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Venkata Siva Vijayendra Bhamidipati" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/9439/ X-Sender: "Venkata Siva Vijayendra Bhamidipati" References: <20130215204705.9635.52395@reviews.apache.org> In-Reply-To: <20130215204705.9635.52395@reviews.apache.org> Reply-To: "Venkata Siva Vijayendra Bhamidipati" --===============6741057389963361260== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/9439/ ----------------------------------------------------------- (Updated Feb. 22, 2013, 9:42 p.m.) Review request for cloudstack and Kelven Yang. Changes ------- Uploading single diff containing all changes. PLEASE NOTE: The db changes were shifted from schema-40to410.sql to schema-= 410to420.sql but that isn't working on the current master - the tables in s= chema-410to420.sql (user_vm_clone_setting of this feature, data_store_provi= der and image_data_store) are not getting created in the cloud db. Looking = into it, will consult cloudstack-dev@i.a.o. Description ------- Please find the diffs for full clone guest VM support for ESX on Cloudstack= . The diffs do not include unit tests yet. The tests will be uploaded at th= e earliest. This addresses bug CS-670. Diffs (updated) ----- core/src/com/cloud/vm/UserVmCloneSettingVO.java PRE-CREATION = plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/Vmware= Manager.java 445b2f0 = plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/Vmware= ManagerImpl.java 6b6bf19 = plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/Vmwar= eResource.java f754c58 = server/conf/migration-components.xml 90fbafa = server/src/com/cloud/configuration/Config.java 8c77715 = server/src/com/cloud/vm/UserVmManagerImpl.java cf9eb27 = server/src/com/cloud/vm/dao/UserVmCloneSettingDao.java PRE-CREATION = server/src/com/cloud/vm/dao/UserVmCloneSettingDaoImpl.java PRE-CREATION = server/test/com/cloud/vm/dao/UserVmCloneSettingDaoImplTest.java PRE-CREAT= ION = server/test/com/cloud/vm/dao/UserVmCloneSettingDaoTestConfiguration.java = PRE-CREATION = server/test/resources/CloneSettingDaoTestContext.xml PRE-CREATION = setup/db/db/schema-410to420.sql 4637b6d = Diff: https://reviews.apache.org/r/9439/diff/ Testing ------- Manual Testing =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Creation of guest VMs when the global flag vmware.create.full.clone is set = to its default value of false will create those guest VMs as linked clones = (current default behavior without these changes). Creation of guest VMs when the global flag vmware.create.full.clone is set = to true will create those guest VMs as full clones. Appropriate entries are created in the user_vm_clone_setting table of the c= loud schema to reflect the clone type of the VMs. Linked clones and full clones can reside together in the same cluster and w= ork as expected. Thanks, Venkata Siva Vijayendra Bhamidipati --===============6741057389963361260==--