quota: skip usage records registering the period a volume has been attached - #13936
Open
winterhazel wants to merge 1 commit into
Open
quota: skip usage records registering the period a volume has been attached#13936winterhazel wants to merge 1 commit into
winterhazel wants to merge 1 commit into
Conversation
Member
Author
|
@blueorangutan package |
|
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
bernardodemarco
self-requested a review
August 20, 2026 14:01
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13936 +/- ##
============================================
- Coverage 19.65% 19.65% -0.01%
+ Complexity 19803 19801 -2
============================================
Files 6368 6368
Lines 574935 574939 +4
Branches 70358 70359 +1
============================================
- Hits 113026 113012 -14
- Misses 449632 449652 +20
+ Partials 12277 12275 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18930 |
winterhazel
marked this pull request as ready for review
August 20, 2026 15:57
Member
Author
|
I don't think the smoke tests are going to have much value here. This change is isolated to the Quota plugin, and no Marvin test covers the Quota processing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a follow-up of #11531 and #13909.
With #11531, the Usage server can now create up to 2 usage records for a single volume for the same period; one registers the time the volume remained allocated, while the other the time it remained attached to an instance. This results in a duplicate Quota value calculation for the volume.
For now, skip the Quota calculation for the volume usage records associating it to an instance.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?