From dev-return-52280-apmail-cloudstack-dev-archive=cloudstack.apache.org@cloudstack.apache.org Tue Feb 18 19:25:11 2014 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 D4D29102ED for ; Tue, 18 Feb 2014 19:25:11 +0000 (UTC) Received: (qmail 93292 invoked by uid 500); 18 Feb 2014 19:25:10 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 93218 invoked by uid 500); 18 Feb 2014 19:25:10 -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 93210 invoked by uid 99); 18 Feb 2014 19:25:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 19:25:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.82.178] (HELO mail-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 19:25:03 +0000 Received: by mail-we0-f178.google.com with SMTP id q59so11762958wes.23 for ; Tue, 18 Feb 2014 11:24:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=zBcVsNctF8diaFMnC/NsZVkVhj4GvbqYib0auiy+gx8=; b=MbGnENM9R09l0Re0FXwBaI39H/dGS4z8gV0MqVdSSej64OoTfkfNzuuXEfQhQXiU+i Cr2TxhtSxQu281RF73ZvHgMUnZriGGfSpquc/IiPi40IzpyfVbeQBHGgkgIrBgjAJ8zD gDNeGvXg3toooLFpqpXOCH+Il9bOYUz98X2a/23vUWr7L6lX/np+iTPdj8IBF7oec43G 0UTDRB2qCm1FJoay9N4nUNh9RMzEkZyXM+ASQh2jewglQSyMxx0ho/xBPim+oYadQftY GWaX/E2CwsQRci4049ElygBBW8q4wZw6qswW/lotq3XhjK3YoqPC+oqNNdicnQT3hBV3 u+SQ== X-Gm-Message-State: ALoCoQly8mHNEgSZlTVURzr53Rljr3bAudI6rtB1M+GI3g1CgK8fvsxB4VVoc/ws1d0BxTyodLiq MIME-Version: 1.0 X-Received: by 10.180.13.33 with SMTP id e1mr19794911wic.38.1392751483535; Tue, 18 Feb 2014 11:24:43 -0800 (PST) Received: by 10.216.176.67 with HTTP; Tue, 18 Feb 2014 11:24:43 -0800 (PST) X-Originating-IP: [207.47.50.254] In-Reply-To: References: Date: Tue, 18 Feb 2014 11:24:43 -0800 Message-ID: Subject: Re: Problem with DHCP leases From: Sheng Yang To: "" Content-Type: multipart/alternative; boundary=001a11c24d666fd83d04f2b339aa X-Virus-Checked: Checked by ClamAV on apache.org --001a11c24d666fd83d04f2b339aa Content-Type: text/plain; charset=ISO-8859-1 Sounds like: https://issues.apache.org/jira/browse/CLOUDSTACK-5986 It's introduced by new dhcp_release mechanism, and I've fixed it in the related branch, including 4.2 and 4.3. There is a workaround can be used by manipulating edithosts.sh in the VR, by setting no_dhcp_release to 1 always. --Sheng On Tue, Feb 18, 2014 at 8:49 AM, Simon Waterhouse < Simon.Waterhouse@citrix.com> wrote: > Hi > I am having a few problems with DHCP leases from Virtual Router > (CloudStack 4.2 / Basic Zone / XenServer) and wondered if this is a known > problem. > > Under normal circumstances everything is working fine, but occasionally a > running instance does not get its assigned IP address via DHCP: tcpdump > tells me the new instance is issuing a DHCPDISCOVER and getting no > response. Looking at the Dnsmasq logs on the VR it seems that the DHCP > server is declining to respond to the DHCPDISCOVER because the configured > IP address is leased to another MAC (this MAC is associated with the NIC of > a long-since-dead instance). Flushing the cache of existing leases in > Dnsmasq by restarting the service seems to fix the problem (for some > definition of "fix"). > > As Dnsmasq appears to be configured in /etc/dhcphosts.txt to issue > infinite leases can someone tell me how leases get cleaned up if there is > an abnormal termination of an instance such that it cannot send a > DHCPRELEASE on shutdown? > > Thanks > Simon > --001a11c24d666fd83d04f2b339aa--