Wrong behavior of Nova cluster when performing SCALE IN after attaching LB policy

Bug #1966847 reported by Nguyen Ngoc Hieu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
New
Undecided
Unassigned

Bug Description

Bug description:
 - Context: When load balancer policy is attached into cluster using nova profile, perform action CLUSTER_SCALE_IN with count = {any number of nodes other than 1}.
 - Expect behavior: the number of nodes in the cluster will decrease by an amount equal to count.
 - Actual behavior: the number of nodes in the cluster always decrease by 1 node. [Bug]

Perform debug:
 - Testcase: CLUSTER_SCALE_IN with difference number of nodes, get unexpected results
 - Testcase: detach load balancer policy from cluster, CLUSTER_SCALE_IN with difference number of nodes, get normal results

Reason:
 - File: \senlin\policies\lb_policy.py
 - Class: LoadBalancingPolicy
 - Function: _get_delete_candidates

else: # action.action == consts.CLUSTER_SCALE_IN
    count = 1

Fix:

else: # action.action == consts.CLUSTER_SCALE_IN
    count = action.inputs.get('count', 1)

summary: - Wrong behavior of Nova cluster scale in after attach LB policy
+ Wrong behavior of Nova cluster when performing SCALE IN after attaching
+ LB policy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.