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 08C1C200B17 for ; Tue, 21 Jun 2016 18:55:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 05A9D160A07; Tue, 21 Jun 2016 16:55:00 +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 45CC8160A60 for ; Tue, 21 Jun 2016 18:54:59 +0200 (CEST) Received: (qmail 41314 invoked by uid 500); 21 Jun 2016 16:54:58 -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 41300 invoked by uid 500); 21 Jun 2016 16:54:58 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 41296 invoked by uid 99); 21 Jun 2016 16:54:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2016 16:54:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E4E462C14F8 for ; Tue, 21 Jun 2016 16:54:57 +0000 (UTC) Date: Tue, 21 Jun 2016 16:54:57 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9407) vm_network_map table doesnt get cleaned up properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Jun 2016 16:55:00 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15342165#comment-15342165 ] ASF GitHub Bot commented on CLOUDSTACK-9407: -------------------------------------------- Github user nvazquez commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1594#discussion_r67907402 --- Diff: engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java --- @@ -1577,8 +1577,9 @@ private void advanceStop(final VMInstanceVO vm, final boolean cleanUpEvenIfUnabl } try { - _networkMgr.release(profile, cleanUpEvenIfUnableToStop); - s_logger.debug("Successfully released network resources for the vm " + vm); + s_logger.debug("Not releasing network resources until expunge command is sent"); --- End diff -- I decided to remove try-block as it only logged info, and include it on method's javadoc, as I don't think it could be worth logging. Do you agree? > vm_network_map table doesnt get cleaned up properly > --------------------------------------------------- > > Key: CLOUDSTACK-9407 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9407 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Affects Versions: 4.9.0 > Reporter: Nicolas Vazquez > Assignee: Nicolas Vazquez > Fix For: 4.9.0 > > > h3. Introduction > It was found out that in production environments {{vm_network_map}} table entries were slowly growing. It was investigated how this entries were cleaned up. > h3. Behaviour > On vm creation, vm mappings are inserted on {{vm_network_map}}. > On vm stop, mappings are deleted from {{vm_network_map}} for vm, as a result of the release of its nics. > h3. Problem > If created vm is stopped from hypervisor side (at least on vSphere in which we tested it), when CloudStack realizes vm is stopped it doesn't clean up {{vm_network_table}}, and, as cleanup is made during vm stop, when vm is eventually destroyed and expunged it won't clean up their entries in that table. > h3. Proposed solution > We propose to move {{vm_network_map}} table cleanup to expunge command instead of stop command. -- This message was sent by Atlassian JIRA (v6.3.4#6332)