Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-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 5A727B454 for ; Sat, 21 Jan 2012 00:53:02 +0000 (UTC) Received: (qmail 35041 invoked by uid 500); 21 Jan 2012 00:53:02 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 34963 invoked by uid 500); 21 Jan 2012 00:53:01 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 34955 invoked by uid 99); 21 Jan 2012 00:53:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2012 00:53:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2012 00:53:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C3AC4158FAA for ; Sat, 21 Jan 2012 00:52:39 +0000 (UTC) Date: Sat, 21 Jan 2012 00:52:39 +0000 (UTC) From: "David Lutterkort (Commented) (JIRA)" To: dev@deltacloud.apache.org Message-ID: <250291603.62288.1327107159803.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1318803054.14853.1325862759882.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DTACLOUD-123) vsphere - incorrect hwp memory range MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190225#comment-13190225 ] David Lutterkort commented on DTACLOUD-123: ------------------------------------------- Why require a minimum memory of 512MB ? It should just be 0 > vsphere - incorrect hwp memory range > ------------------------------------ > > Key: DTACLOUD-123 > URL: https://issues.apache.org/jira/browse/DTACLOUD-123 > Project: DeltaCloud > Issue Type: Bug > Environment: deltacloud-core-vsphere-0.4.1-8.el6.noarch > deltacloud-core-0.4.1-8.el6.noarch > Reporter: Jan Provaznik > Assignee: David Lutterkort > > When counting hwp memory for vsphere driver, max value is computed from effectiveMemory (which is actual value - it can change in time). Minimum value is hardcoded 128. There are 2 problems: > 1) effectiveMemory can be lower then 128, then dc api returns invalid range, I got this: > #"0", :from=>"128"}, @kind=:range, @ name="memory", @unit="MB"> > 2) conductor fetches hw profiles only once when a provider account is added, so conductor uses this effectiveMemory (which was actual at the moment when the account was added) all the time. > I think most easiest way is to use total memory for computing memory range on DC API side, though then max memory can be unavailable sometimes. > On the other side, for other drivers min/max memory values are hardcoded too, so using total memory doesn't break things more (in compare to other drivers). > Alternatively there could be some api call how to get total memory. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira