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 57CE8200C3A for ; Fri, 31 Mar 2017 18:48:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 56716160B8C; Fri, 31 Mar 2017 16:48:47 +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 9CC7D160B7C for ; Fri, 31 Mar 2017 18:48:46 +0200 (CEST) Received: (qmail 24661 invoked by uid 500); 31 Mar 2017 16:48:45 -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 24652 invoked by uid 500); 31 Mar 2017 16:48:45 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 24649 invoked by uid 99); 31 Mar 2017 16:48:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Mar 2017 16:48:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 68A82C1338 for ; Fri, 31 Mar 2017 16:48:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id S5A6Xawe_OWX for ; Fri, 31 Mar 2017 16:48:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id BFB195FC04 for ; Fri, 31 Mar 2017 16:48:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D4B6BE05F7 for ; Fri, 31 Mar 2017 16:48:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AE9D521DD6 for ; Fri, 31 Mar 2017 16:48:41 +0000 (UTC) Date: Fri, 31 Mar 2017 16:48:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9701) When host is disabled/removed, capacity_state for local storage in op_host_capacity is still enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 31 Mar 2017 16:48:47 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951259#comment-15951259 ] ASF GitHub Bot commented on CLOUDSTACK-9701: -------------------------------------------- Github user mrunalinikankariya commented on the issue: https://github.com/apache/cloudstack/pull/1869 Test LGTM, tested using marvin test script > When host is disabled/removed, capacity_state for local storage in op_host_capacity is still enabled > ---------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-9701 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9701 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: 4.9.0 > Reporter: Sudhansu Sahu > Assignee: Sudhansu Sahu > > Setup: Advanced zone with local storage enabled > Description > ========= > When a host is disabled or removed, local storage related capacity data for the corresponding local storage of the host is still in enabled state. > This may not directly impact deploy VM functionality (for example) but it does show incorrect capacity calculations. > Steps > ===== > 1. Enable local storage for zone > 2. Disable host or remove host (after adding it to maintenance mode) > 3. Check op_host_capacity (capacity_state=9) > In either of the cases, the local storage related capacity is still enabled for the host. > {noformat} > mysql> select id, name, uuid, status,resource_state, type, removed from host where type = 'Routing'; > +----+--------------------+--------------------------------------+--------+----------------+---------+---------+ > | id | name | uuid | status | resource_state | type | removed | > +----+--------------------+--------------------------------------+--------+----------------+---------+---------+ > | 1 | xenserver-nvjxksqs | 16a922d0-7b4c-4c84-baad-5bd91542181c | Up | Disabled | Routing | NULL | > | 4 | xenserver-hnkwhblp | 0e0f161a-7cf5-4e44-8bcc-a25ba7d798e5 | Up | Enabled | Routing | NULL | > +----+--------------------+--------------------------------------+--------+----------------+---------+---------+ > 2 rows in set (0.00 sec) > mysql> select host_id, used_capacity, reserved_capacity, total_capacity, capacity_type, capacity_state from op_host_capacity where capacity_type=9; > +---------+---------------+-------------------+----------------+---------------+----------------+ > | host_id | used_capacity | reserved_capacity | total_capacity | capacity_type | capacity_state | > +---------+---------------+-------------------+----------------+---------------+----------------+ > | 3 | 4194304 | 0 | 491505319936 | 9 | Enabled | > | 4 | 4194304 | 0 | 491505319936 | 9 | Enabled | > +---------+---------------+-------------------+----------------+---------------+----------------+ > 2 rows in set (0.00 sec) > mysql> select id, name, removed, pool_type, capacity_bytes from storage_pool where id in (3,4); > +----+----------------------------------+---------+-----------+----------------+ > | id | name | removed | pool_type | capacity_bytes | > +----+----------------------------------+---------+-----------+----------------+ > | 3 | xenserver-nvjxksqs Local Storage | NULL | LVM | 491505319936 | > | 4 | xenserver-hnkwhblp Local Storage | NULL | LVM | 491505319936 | > +----+----------------------------------+---------+-----------+----------------+ > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)