adjustment should be allowed when desired is in the scope of min_size/max_size when doing cluster resizing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Fix Released
|
High
|
Yanyan Hu |
Bug Description
There is a bug in current implementation of truncate_desired(): the cluster's min_size and max_size should only be used when min_size/max_size input parameter is None. Otherwise, the truncation will always be done using cluster's current size scope.
def truncate_
'''Do truncation of desired capacity for non-strict cases.'''
if min_size is not None and desired < min_size:
desired = min_size
% desired)
if desired < cluster.min_size:
desired = cluster.min_size
% desired)
if (max_size is not None and max_size > 0 and desired > max_size):
desired = max_size
% desired)
if desired > cluster.max_size and cluster.max_size > 0:
desired = cluster.max_size
% desired)
return desired
Changed in senlin: | |
assignee: | nobody → Yanyan Hu (yanyanhu) |
description: | updated |
Changed in senlin: | |
importance: | Undecided → High |
status: | Fix Committed → Fix Released |
milestone: | none → mitaka-2 |
Fix proposed to branch: master /review. openstack. org/184173
Review: https:/