8000 Wrong provisioned_ratio calculation in scheduler's capacity filter while resizing share · Issue #29 · sapcc/manila · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Wrong provisioned_ratio calculation in scheduler's capacity filter while resizing share #29
Open
@chuan137

Description

@chuan137

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0