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 A02B6DFAF for ; Thu, 20 Dec 2012 17:25:14 +0000 (UTC) Received: (qmail 43343 invoked by uid 500); 20 Dec 2012 17:25:14 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 43286 invoked by uid 500); 20 Dec 2012 17:25:14 -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 43224 invoked by uid 99); 20 Dec 2012 17:25:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 17:25:13 +0000 Date: Thu, 20 Dec 2012 17:25:13 +0000 (UTC) From: "Koushik Das (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-605) Host physical CPU is incorrectly calculated for Vmware hosts 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/CLOUDSTACK-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537176#comment-13537176 ] Koushik Das commented on CLOUDSTACK-605: ---------------------------------------- I had already shared the review, look at my first comment. -Koushik > Host physical CPU is incorrectly calculated for Vmware hosts > ------------------------------------------------------------ > > Key: CLOUDSTACK-605 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-605 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: VMware > Affects Versions: pre-4.0.0, 4.0.0 > Reporter: Koushik Das > Assignee: Koushik Das > Fix For: 4.0.1 > > > There is a mismatch in host CPU count displayed in CS UI (displayed under the 'Statistics' tab when a host is selected) compared to that in vCenter. The mismatch happens for ESX hosts having > 1 cpu package. This will affect VM allocation logic. > Currently host CPU is computed based on below logic (HostHardwareSummary is defined in Vmware library) > HostHardwareSummary hardwareSummary = getHostHardwareSummary(); > summary.setCpuCount(hardwareSummary.getNumCpuCores()*hardwareSummary.getNumCpuPkgs()); > The correct logic is to use hardwareSummary.getNumCpuCores() only. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira