resizing cluster failed for unexpected reason
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Fix Released
|
Undecided
|
Yanyan Hu |
Bug Description
When adjustment parameters are not provided in action input when resizing cluster, current desired_capacity will be used to check size parameter:
http://
This is incorrect. Consider the following case:
cluster.min_size = 1, cluster.max_size = 3, cluster.
params = {
'max_size': 0,
}
The check is expected to fail here:
http://
However, the parameter check will actually fail for the following reason:
http://
and the exception message will be:
'The target capacity (2) is greater than the specified max_size(0)'
We should set desired to None rather than current desired_capacity in this case:
http://
Changed in senlin: | |
assignee: | nobody → Yanyan Hu (yanyanhu) |
description: | updated |
description: | updated |
Changed in senlin: | |
milestone: | none → mitaka-3 |
It would be difficult to do size checking if we set 'desired' to None on line 842.