Bug 1720404 - [RFE] Count quota usage from placement
Summary: [RFE] Count quota usage from placement
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ga
: 17.1
Assignee: melanie witt
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On:
Blocks: 2033222
TreeView+ depends on / blocked
 
Reported: 2019-06-13 22:45 UTC by melanie witt
Modified: 2023-10-20 20:06 UTC (History)
16 users (show)

Fixed In Version: openstack-nova-21.1.0-0.20200425164546.347d656.el8ost
Doc Type: Enhancement
Doc Text:
With this update, you can configure your RHOSP deployment to count the quota usage of cores and RAM by querying placement for resource usage and instances from instance mappings in the API database, instead of counting resources from separate cell databases. This makes quota usage counting resilient to temporary cell outages or poor cell performance in a multi-cell environment. + Set the following configuration option to count quota usage from placement: + ``` parameter_defaults: ControllerExtraConfig: nova::config::nova_config: quota/count_usage_from_placement: value: 'True' ```
Clone Of:
Environment:
Last Closed: 2023-08-16 01:09:21 UTC
Target Upstream Version: Ussuri
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 662056 0 'None' MERGED Follow up for counting quota usage from placement 2020-12-01 20:25:22 UTC
Red Hat Issue Tracker OSP-2483 0 None None None 2022-01-04 15:27:14 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:10:48 UTC

Description melanie witt 2019-06-13 22:45:35 UTC
In Pike, we re-architected the quota system to count actual resource usage instead of using reservations and tracking quota usages in a separate database table. We're counting resources like instances, CPU, and RAM by querying each cell database and aggregating the results per project and per user. This approach has a downside: it is susceptible to undesirable behavior if a cell becomes unavailable. If a cell becomes unavailable, resources in its database cannot be counted and will not be included in resource usage until the cell returns. Cells could become unavailable if an operator is performing maintenance on a cell or if a cell database is experiencing problems and we cannot connect to it.

We can make resource usage counting for quotas resilient to temporary cell outages by querying placement for resource usage instead of reading separate cell databases.

This adds the ability to count quota usage from placement on an opt-in basis via configuration option.

Comment 6 Artom Lifshitz 2022-08-23 16:47:27 UTC
This will need an enhancement doc text once this graduates out of tech preview (https://bugzilla.redhat.com/show_bug.cgi?id=2120756)

Comment 23 errata-xmlrpc 2023-08-16 01:09:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:4577


Note You need to log in before you can comment on or make changes to this bug.