-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13615/
-----------------------------------------------------------

Review request for cloudstack, Murali Reddy and Ram Ganesh.


Bugs: CLOUDSTACK-4237


Repository: cloudstack-git


Description
-------

Issue:
for an account if there are multiple LB rules and Autoscale Policies, when 
Account is deleted. All the LBrules, Autoscale polices are not getting delete 
in Netscaler resource. But in CS db they are getting cleared.

Root Cause:
===========
while processing the LBConfigcmd in NSResource, after processing the first 
Autoscale cmd, no other rules are getting processed as its returning from loop.

Fix:
==== 

Fixed the issue to process all the autoscale config rules in the 
LBConfigCommand.


Diffs
-----

  
plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
 4020059 

Diff: https://reviews.apache.org/r/13615/diff/


Testing
-------

1. created a testA account and created network with NS as LB provider and 
Acquired 3 ip's
2. on each IP configured multiple Autoscale polices and normal LB rules.
3. Verified on NS there are total 4 vservers and 3 services ( 2 autoscale and 2 
cloud service)
4. deleted one LB rule. LB rule got delete successfully and the same is removed 
from NS.
5. deleted the account, network got deleted as part of it all the rules got 
revoked and sent to NSResource to execute them. 
All the servers, lb vservers got remove successfully.


Thanks,

Rajesh Battala

Reply via email to