Repository navigation
feat(octavia): add project quota monitoring - #3
Open
davidhulick wants to merge 3 commits into
Open
davidhulick wants to merge 3 commits into
davidhulick wants to merge 3 commits into
Conversation
Export stored limits and rebuilt usage for seven Octavia resources, with project metadata fallback, defaults configuration, bounded SQL reads and separate quota health. Preserve inventory and other service registration. Requires the public openstackdb quota APIs; keep the canonical dependency until those APIs are accepted upstream. Validate through an external Go workspace in the meantime. Signed-off-by: David Hulick <dave.hulick@gmail.com>
Extend the existing full-exporter fixture with distinct resource counts, nullable and explicit limits, deleted resources and an idle project. Assert every quota family and preserve existing service assertions. Integration-tag vet passes; native MariaDB execution is pending because Docker is unavailable in the preparation environment. Signed-off-by: David Hulick <dave.hulick@gmail.com>
Author
|
Before submitting upstream, we must revisit:
|
Author
|
ci fails because the dependent openstackdb libraries are not merged yet |
Signed-off-by: David Hulick <dave.hulick@gmail.com>
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.
Caution
This PR is dependent on Octavia repository APIs proposed in samaritanark/openstackdb#2
Summary
Add project quota monitoring for seven Octavia resources:
Each resource exposes
openstack_loadbalancer_quota_<resource>withtenant,tenant_id,domain_id, andtypelabels. Thetypelabel distinguisheslimitandin_usevalues.Also introduce
openstack_loadbalancer_quota_upto report quota collection health independently from existing Octavia inventory health.Implementation
Quota limits come from stored project overrides with configurable defaults. Usage is independently reconstructed from non-deleted Octavia resources rather than relying on cached quota usage counters.
Project discovery includes quota owners, usage-only projects, and Keystone projects. Idle projects receive zero usage, and projects without Keystone metadata retain their project IDs.
The collector rebuilds usage on each scrape across seven resource tables. This prioritizes observed resource counts over potentially stale cached accounting, but may increase database load. Query-plan and latency validation is planned before upstream submission.
Configuration and failure handling
-1).quota_up=0without partial quota data.quota_up=1.Dependency status
Requires Octavia repository APIs proposed in [samaritanark/openstackdb#2](samaritanark/openstackdb#2).
This library contribution is currently under review in the staging fork and has not yet been submitted to VEXXHOST upstream.
The exporter retains the canonical public
openstackdb v0.2.1dependency for now. That release does not contain the required APIs, so ordinary standalone CI cannot compile this contribution yet.Pre-merge validation uses the public library contribution through a temporary Go workspace without committing a fork-specific dependency or replacement.
Contribution relationship
Shared prerequisite — targets
main.This PR adds Octavia quota monitoring and introduces shared exporter configuration used by the subsequent quota-monitoring contributions.
It does not depend on another exporter PR. However, it requires the pending [Octavia quota APIs in openstackdb (#2)](samaritanark/openstackdb#2).
Three additional exporter contributions are based directly on this PR:
These are parallel sibling contributions, not a sequential chain. None requires the other two.
They currently target this PR's branch so that GitHub displays only their service-specific changes. Once this contribution is merged upstream, each can be rebased onto upstream
mainand submitted independently when its own library dependencies are available.Two other exporter contributions are independent of this work: