Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2D0A5200B5B for ; Fri, 5 Aug 2016 20:52:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2BB14160A8E; Fri, 5 Aug 2016 18:52:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 71395160A64 for ; Fri, 5 Aug 2016 20:52:21 +0200 (CEST) Received: (qmail 67541 invoked by uid 500); 5 Aug 2016 18:52:20 -0000 Mailing-List: contact issues-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 issues@cloudstack.apache.org Received: (qmail 67530 invoked by uid 500); 5 Aug 2016 18:52:20 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 67527 invoked by uid 99); 5 Aug 2016 18:52:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 18:52:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 70B6D2C0D5D for ; Fri, 5 Aug 2016 18:52:20 +0000 (UTC) Date: Fri, 5 Aug 2016 18:52:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9422) Granular VMware vm's creation as full clones on HV MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 05 Aug 2016 18:52:22 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409902#comment-15409902 ] ASF GitHub Bot commented on CLOUDSTACK-9422: -------------------------------------------- Github user jburwell commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1602#discussion_r73742358 --- Diff: engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java --- @@ -1353,6 +1363,20 @@ public void prepare(VirtualMachineProfile vm, DeployDestination dest) throws Sto disk.setDetails(getDetails(volumeInfo, dataStore)); vm.addDisk(disk); + + // If hypervisor is vSphere, check for clone type setting. + if (vm.getHypervisorType().equals(HypervisorType.VMware)) { + // retrieve clone flag. + UserVmCloneType cloneType = UserVmCloneType.linked; + Boolean value = CapacityManager.VmwareCreateCloneFull.valueIn(vol.getPoolId()); + if (value != null) { + if (value.booleanValue() == true) --- End diff -- Please collapse lines lines 1372 and 1373 into ``if (value != null && value)``. The compiler will autobox the ``Boolean`` instance -- removing the requirement to call ``booleanValue``. > Granular VMware vm's creation as full clones on HV > -------------------------------------------------- > > Key: CLOUDSTACK-9422 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9422 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: VMware > Reporter: Nicolas Vazquez > Assignee: Nicolas Vazquez > > h3. Introduction > For VMware, It is possible to decide creating VMs as full clones on ESX HV, adjusting {{vmware.create.full.clone}} global setting. We would like to introduce this property as a primary storage detail, and use its value instead of global setting's value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)