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 7C24CF5E1 for ; Tue, 13 Aug 2013 10:23:50 +0000 (UTC) Received: (qmail 27307 invoked by uid 500); 13 Aug 2013 10:23:50 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 27010 invoked by uid 500); 13 Aug 2013 10:23:49 -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 26983 invoked by uid 99); 13 Aug 2013 10:23:47 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 10:23:47 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id F19EA1D0649; Tue, 13 Aug 2013 10:23:46 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7729283203130709381==" MIME-Version: 1.0 Subject: Review Request 13534: Autoscaling: Deleting an isolated network of an account deletes also the autoscaling rule for a network associated with another account From: "Rajesh Battala" To: "Ram Ganesh" , "Vijay Venkatachalam" , "Murali Reddy" , "Devdeep Singh" Cc: "Rajesh Battala" , "cloudstack" Date: Tue, 13 Aug 2013 10:23:46 -0000 Message-ID: <20130813102346.5632.42970@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Rajesh Battala" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/13534/ X-Sender: "Rajesh Battala" Reply-To: "Rajesh Battala" --===============7729283203130709381== 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/13534/ ----------------------------------------------------------- Review request for cloudstack, Devdeep Singh, Murali Reddy, Ram Ganesh, and Vijay Venkatachalam. Bugs: CLOUDSTACK-3369 Repository: cloudstack-git Description ------- issue: if autoscale policies are created by CS , then when any network gets deleted which got created with Netscaler as LB provider, the autoscale servers are getting deleted. during delete the network ipassoc cmd executed on Netscaler resouce is cleaning up the services which are present in the same subnet. NetUtils.sameSubnet(vlanSelfIp, server.get_ipaddress(), vlanNetmask) is returning true for the autoscale servers even they are not present in the subnet because this method is returning true if any any of the ip is true. autoscale server don't have ip address, so true is returned and hence removing the autoscale servers. which is causing severe issue for the autoscale policies created in cloudstack. Fix: ==== while executing the method deleteServersInGuestVlan which will clean up the servers present in same subnet, check is made not to delete the autoscale servers. Diffs ----- plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java e42a9ea Diff: https://reviews.apache.org/r/13534/diff/ Testing ------- created accounts testa testb and created networks with NS as LB provider network offering. 1. In TestA, created autoscale policy and wait for deploy the instance. policy got created and vm got deployed. 2. Delete the testB network, check in ns.log that autoscale servers won't get delete. 3. in testB network, create LB rules, and delete the network, verified autoscale servers won't get delete. 4. Destroy testA, TestB network, first rules got cleaned up and then the ip assocations of the network are removed. Thanks, Rajesh Battala --===============7729283203130709381==--