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 0BF9EDE00 for ; Tue, 11 Dec 2012 13:11:20 +0000 (UTC) Received: (qmail 85256 invoked by uid 500); 11 Dec 2012 13:11:16 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 84690 invoked by uid 500); 11 Dec 2012 13:11:16 -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 83282 invoked by uid 99); 11 Dec 2012 13:11:14 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 13:11:14 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id F116A1C5326; Tue, 11 Dec 2012 13:11:09 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3484417910336127161==" MIME-Version: 1.0 Subject: Review Request: CLOUDSTACK-605: Host physical CPU is incorrectly calculated for Vmware hosts From: "Koushik Das" To: "Kelven Yang" Cc: "cloudstack" , "Koushik Das" Date: Tue, 11 Dec 2012 13:11:09 -0000 Message-ID: <20121211131109.7729.39501@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Koushik Das" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/8511/ X-Sender: "Koushik Das" Reply-To: "Koushik Das" --===============3484417910336127161== 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/8511/ ----------------------------------------------------------- Review request for cloudstack and Kelven Yang. Description ------- There is a mismatch in host CPU count displayed in CS UI (displayed under t= he 'Statistics' tab when a host is selected) compared to that in vCenter. T= he 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 =3D getHostHardwareSummary(); = summary.setCpuCount(hardwareSummary.getNumCpuCores()*hardwareSummary.getNum= CpuPkgs()); = The correct logic is to use hardwareSummary.getNumCpuCores() only. = This addresses bug CLOUDSTACK-605. Diffs ----- vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java 3557048 = Diff: https://reviews.apache.org/r/8511/diff/ Testing ------- Verified on esx hosts with 1 and 2 CPU packages. Thanks, Koushik Das --===============3484417910336127161==--