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 C1023200B6B for ; Wed, 10 Aug 2016 20:22:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BFF6F160AA4; Wed, 10 Aug 2016 18:22: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 11D38160A8F for ; Wed, 10 Aug 2016 20:22:21 +0200 (CEST) Received: (qmail 74142 invoked by uid 500); 10 Aug 2016 18:22:21 -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 74117 invoked by uid 500); 10 Aug 2016 18:22:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 74112 invoked by uid 99); 10 Aug 2016 18:22:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 18:22:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 04D1D2C02A4 for ; Wed, 10 Aug 2016 18:22:21 +0000 (UTC) Date: Wed, 10 Aug 2016 18:22:21 +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: Wed, 10 Aug 2016 18:22:22 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15415716#comment-15415716 ] ASF GitHub Bot commented on CLOUDSTACK-9422: -------------------------------------------- Github user nvazquez commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1602#discussion_r74301008 --- Diff: plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageSubsystemCommandHandler.java --- @@ -66,19 +68,28 @@ public VmwareStorageSubsystemCommandHandler(StorageProcessor processor, Integer this._nfsVersion = nfsVersion; } - /** - * Reconfigure NFS version for storage operations - * @param nfsVersion NFS version to set - * @return true if NFS version could be configured, false in other case - */ - public boolean reconfigureNfsVersion(Integer nfsVersion){ + public boolean reconfigureStorageProcessor(EnumMap params) { + VmwareStorageProcessor processor = (VmwareStorageProcessor) this.processor; try { - VmwareStorageProcessor processor = (VmwareStorageProcessor) this.processor; - processor.setNfsVersion(nfsVersion); - this._nfsVersion = nfsVersion; + for (VmwareStorageProcessorConfigurableFields key : params.keySet()){ + switch (key){ + case NFS_VERSION: + Integer nfsVersion = (Integer) params.get(key); + processor.setNfsVersion(nfsVersion); + this._nfsVersion = nfsVersion; + break; + case FULL_CLONE_FLAG: + boolean fullClone = (boolean) params.get(key); + processor.setFullCloneFlag(fullClone); + break; + default: + String msg = "Unknown reconfigurable field " + key.getName() + " for VmwareStorageProcessor"; + throw new IllegalStateException(msg); + } + } return true; - } catch (Exception e){ - s_logger.error("Error while reconfiguring NFS version " + nfsVersion); + } catch (IllegalStateException e){ --- End diff -- Ok, thanks > 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)