Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

liquids/cinder: fix capacity for volume types sharing the same backend name #607

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

majewsky
Copy link
Contributor

This diff is way more intrusive than I would have liked, but the basic structure is retained. Instead of drilling down into volume type and then into AZ, we need to drill down into volume backend name and AZ.

Then at the lowest level, a single volume backend name can be shared by multiple volume types, so the reported capacity and usage need to be balanced by demand (in the same way as we do in liquid-manila between share capacity and snapshot capacity). This then gets bubbled back up all the way.

Checklist:

  • If this PR is about a plugin, I tested the plugin against an OpenStack cluster.
  • I updated the documentation to describe the semantical or interface changes I introduced.

…d name

This diff is way more intrusive than I would have liked, but the basic
structure is retained. Instead of drilling down into volume type and
then into AZ, we need to drill down into volume backend name and AZ.

Then at the lowest level, a single volume backend name can be shared by
multiple volume types, so the reported capacity and usage need to be
balanced by demand (in the same way as we do in liquid-manila between
share capacity and snapshot capacity). This then gets bubbled back up
all the way.
@coveralls
Copy link

Coverage Status

coverage: 79.005%. remained the same
when pulling 50312ba on liquid-cinder-distribute-fairly
into 2447a77 on master.

@majewsky majewsky merged commit 87fa65b into master Nov 21, 2024
7 checks passed
@majewsky majewsky deleted the liquid-cinder-distribute-fairly branch November 21, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants