Quota usage is able to drop below zero
Bug #1178333 reported by
Nate Bensimon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Undecided
|
Steve Leon |
Bug Description
Scenario:
1. Quota usage starts off @ 0 for existing accounts
2. Delete an instance on existing account
Expected:
1. Usage data gets updated with actual usage on the account
Actual:
1. Usage data is relative to the delete action and therefore dropped to a negative number
Changed in reddwarf: | |
assignee: | nobody → Steve Leon (steve-leon) |
Changed in trove: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
Can you elaborate on how to reproduce this? I don't see how a user without an instance, can delete an instance? The backdoor-fix for this is trivially simple, but I'd prefer to find the root cause vs. doing something like "if impending_ quota_usage < 0 then impending_ quota_usage = 0".