In scheduler's capacity filter, the provisioned_ratio is calculated and it must be smaller than the host's max_over_subscription_ratio. The implemented algorithm includes the share size into the numerator of the ratio. It is correct for scheduling new share, but not for resizing shares. In this case, it should includes the share size differences. Scheduling share resizing might fail due to this bug.
|
provisioned_ratio = ((host_state.provisioned_capacity_gb + |
|
share_size) / total) |