apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.11k stars 1.11k forks source link

Able to Edit Load Balancing Rule of Autoscale Group when the Status is 'Enabled' #9587

Open btzq opened 3 months ago

btzq commented 3 months ago
ISSUE TYPE
COMPONENT NAME
Autoscale Group, Load Balancer, Virtual Router
CLOUDSTACK VERSION
4.19.1.1
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

We arent sure at what stage does Cloudstack implement the new Load Balance Update. Is it only loaded when the AutoscaleGroup is 're-enabled'? Or does any change to the LB force an update?

Currently, when an AutoscaleGroup is 'Enabled', the user is able to make changes to the Load Balancer Rule.

As a result, we experience some intermittent result from Cloudstack where, sometimes the Load Balance Rule takes effect, sometime it doesnt (eg. Source Based Sticky, Removing Sticky Session etc). (Similar to #9583, but not exactly the same)

We encountered quite a number of issues where the correct Load Balance Configuration is implemented, but it was implemented while the AutoScale Group was still 'Enabled'. But, it does not take effect.

We tried to Enable/Disable the AutoscaleGroup and it does not work as well.

What we always had to do is destroy all VMs underneath the AutoscaleGroup, recreate it again. Only then, the correct LB rule takes effect.

STEPS TO REPRODUCE
- Create Autoscale Group with status 'Enabled'
- While status is 'Enabled', change the LB rule from No Sticky -> Source Based Sticky
- Connect to VM with LB, and test. Applications that rely on Source Based Sticky will not work. Gets disconnection intermittently or unable to connect. 
EXPECTED RESULTS
If Load Balancer only gets updated when the Autoscale Group is Re-enabled, then users should not be allowed to change LB Setting unless the Status is 'Disabled'
ACTUAL RESULTS
Able to change LB Setting while AutoscaleGroup is running.
DaanHoogland commented 2 weeks ago

@weizhouapache @rajujith @alexandremattioli does this request sound good to you guys:

EXPECTED RESULTS
If Load Balancer only gets updated when the Autoscale Group is Re-enabled, then users should not be allowed to change LB Setting unless the Status is 'Disabled'