Per-user quotas not scoped correctly when creating a server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
melanie witt | ||
Pike |
New
|
Low
|
Unassigned | ||
Queens |
New
|
Low
|
Unassigned | ||
Rocky |
New
|
Low
|
Unassigned | ||
Stein |
New
|
Low
|
Unassigned | ||
Train |
New
|
Low
|
Unassigned | ||
Ussuri |
Fix Released
|
Low
|
melanie witt |
Bug Description
While looking into an issue reported on the ML [1] around per-user quotas not working properly, I found a bug where quota checking is not scoped correctly when creating a server.
This causes per-user quota limits not to be honored during these API requests.
The problem is in a utility function we use for checking quota when creating servers:
The Quotas.check_deltas method needs a user_id keyword arg in order to scope a quota check to a particular user. However, when we call check_num_
check_num_
[1] http://
summary: |
- Per-user quotas not scoped correctly when creating or restoring a server + Per-user quotas not scoped correctly when creating a server |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. opendev. org/748550
Review: https:/