Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A61CBE8B6 for ; Fri, 15 Feb 2013 17:36:58 +0000 (UTC) Received: (qmail 6818 invoked by uid 500); 15 Feb 2013 17:36:53 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 6745 invoked by uid 500); 15 Feb 2013 17:36:53 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 6613 invoked by uid 99); 15 Feb 2013 17:36:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 17:36:53 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Chiradeep.Vittal@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 17:36:47 +0000 X-IronPort-AV: E=Sophos;i="4.84,674,1355097600"; d="scan'208";a="7722516" Received: from sjcpmailmx01.citrite.net ([10.216.14.74]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 15 Feb 2013 17:36:25 +0000 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.73]) by SJCPMAILMX01.citrite.net ([10.216.14.74]) with mapi; Fri, 15 Feb 2013 09:36:24 -0800 From: Chiradeep Vittal To: "cloudstack-dev@incubator.apache.org" Date: Fri, 15 Feb 2013 09:36:22 -0800 Subject: Re: Possible bug around IP release Thread-Topic: Possible bug around IP release Thread-Index: Ac4LovoobOoqjQPNT5y4N7c6g4EXvA== Message-ID: In-Reply-To: <97F4356AEA71904482CD192135C038F9011CC1390F25@BANPMAILBOX01.citrite.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.0.121105 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org What is the query trying to achieve? On 2/15/13 8:07 AM, "Prashanth Reddy Mandadi" wrote: >Hi, > >Should the following query return any results and if it does would it be >a bug? >(assuming it's for a shared network and no manual DB modifications are >performed) > >select id,public_ip_address from user_ip_address where state=3D'Allocated= ' >and public_ip_address in (SELECT n1.ip4_address FROM nics n1 LEFT JOIN >nics n2 ON (n1.ip4_address =3D n2.ip4_address AND n1.id < n2.id) WHERE >n2.id IS NULL and n1.removed is not null); > >Regards, >Prashanth