Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 509AA1060E for ; Fri, 8 Nov 2013 02:06:59 +0000 (UTC) Received: (qmail 20839 invoked by uid 500); 8 Nov 2013 02:06:58 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 20799 invoked by uid 500); 8 Nov 2013 02:06:58 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 20789 invoked by uid 99); 8 Nov 2013 02:06:58 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 02:06:58 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id BF1F41D397E; Fri, 8 Nov 2013 02:06:55 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5169142086568379005==" MIME-Version: 1.0 Subject: Re: Review Request 14023: NetworkManager Exception Fix Due to call to getDhcpServiceProvider() From: "Amogh Vasekar" To: "Soheil Eizadi" , "Amogh Vasekar" , "cloudstack" Date: Fri, 08 Nov 2013 02:06:55 -0000 Message-ID: <20131108020655.30022.44691@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Amogh Vasekar" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/14023/ X-Sender: "Amogh Vasekar" References: <20130906222716.24330.568@reviews.apache.org> In-Reply-To: <20130906222716.24330.568@reviews.apache.org> Reply-To: "Amogh Vasekar" --===============5169142086568379005== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/14023/#review28485 ----------------------------------------------------------- Reminder - Hi, This review has been pending for long. Please update to "submitted" if this has already been committed. Thanks - Amogh Vasekar On Sept. 6, 2013, 10:26 p.m., Soheil Eizadi wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/14023/ > ----------------------------------------------------------- > > (Updated Sept. 6, 2013, 10:26 p.m.) > > > Review request for cloudstack. > > > Repository: cloudstack-git > > > Description > ------- > > I ran the master branch with my NetworkElement integrated which provides DHCP service. In my use case I was able to create a VM but when I deleted it there was an exception in the NetworkManager when it called: > > isDhcpAccrossMultipleSubnetsSupported() >> getDhcpServiceProvider() > > > My DHCP Provider is a NetworkElement but does not implement the DhcpServiceProvider interface. > > > public DhcpServiceProvider getDhcpServiceProvider(Network network) { > > String DhcpProvider = _ntwkSrvcDao.getProviderForServiceInNetwork(network.getId(), Service.Dhcp); > > > if (DhcpProvider == null) { > > s_logger.debug("Network " + network + " doesn't support service " + Service.Dhcp.getName()); > > return null; > > } > > > return (DhcpServiceProvider)_networkModel.getElementImplementingProvider(DhcpProvider); > > > } > > > There is a check in the NetworkManager in the Prepare stage but a similar check is missing in Release stage. > > > Diffs > ----- > > server/src/com/cloud/network/NetworkManagerImpl.java ae27554 > > Diff: https://reviews.apache.org/r/14023/diff/ > > > Testing > ------- > > I verified in my environment where due to VM expunge failing to NetworkManager exception the system would retry on a timer. After the fix the VM was removed from the system after the first retry. > > > Thanks, > > Soheil Eizadi > > --===============5169142086568379005==--