Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AA171165C for ; Tue, 22 Apr 2014 09:15:26 +0000 (UTC) Received: (qmail 22027 invoked by uid 500); 22 Apr 2014 09:15:23 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 21539 invoked by uid 500); 22 Apr 2014 09:15:21 -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 21457 invoked by uid 500); 22 Apr 2014 09:15:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 21446 invoked by uid 99); 22 Apr 2014 09:15:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 09:15:20 +0000 Date: Tue, 22 Apr 2014 09:15:20 +0000 (UTC) From: "Saksham Srivastava (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-6427) nic_count not decremented in case of failed VM start 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-6427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Saksham Srivastava resolved CLOUDSTACK-6427. -------------------------------------------- Resolution: Fixed > nic_count not decremented in case of failed VM start > ---------------------------------------------------- > > Key: CLOUDSTACK-6427 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6427 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: 4.4.0 > Environment: 4.4.0, Xenserver > Reporter: Saksham Srivastava > Assignee: Saksham Srivastava > Fix For: 4.4.0 > > > nics_count (op_networks) table is incremented on every user VM start and decremented on every user VM stop. Essentially, nics_count associated with a network represents if there are any running VMs using that network. > In case VM start fails we initiate a cleanup where in first we send the stopCommand to the VM and upon success we release the network resources (in DB). nics_count is decremented during this process. However, if the stopCommand fails for some reason the resources are not released. Hence the nics_count is not decremented. > At this point the nics_count gets out of sync, that is, it is greater than the number of running VMs. This can result in the network never being GC'ed. -- This message was sent by Atlassian JIRA (v6.2#6252)