Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing hosts and utilization to database #40

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

bastian-src
Copy link
Contributor

@bastian-src bastian-src commented Apr 16, 2024

Enable a ResourceQuota to track persistently which host resources were
missing during the last calculation of its utilization.

Extend the database with fields for utilization_ and
missing_hosts. Add a one-to-many relation between Hosts and
ResourceQuotas, as a ResourceQuota can have several Hosts whose
resources could not be determined.

  • Add ResourceQuotaMissingHost model
  • Exclude ResourceQuota from Metrics/ClassLength
  • Add api/v2/id/missing_hosts endpoint
  • Add controller tests for missings_hosts and utilization
  • Add model tests for missing_hosts and utilization
  • Move generic stub functions to test_plugin_helper

@bastian-src bastian-src marked this pull request as draft April 16, 2024 10:25
@bastian-src bastian-src force-pushed the feature/add_missing_hosts_and_utilization branch 3 times, most recently from 09964a5 to 8dd193e Compare April 23, 2024 13:58
@bastian-src bastian-src marked this pull request as ready for review April 23, 2024 14:01
Enable a ResourceQuota to track persistently which host resources were
missing during the last calculation of its utilization.

Extend the database with fields for utilization_<resource> and
missing_hosts. Add a one-to-many relation between Hosts and
ResourceQuotas, as a ResourceQuota can have several Hosts whose
resources could not be determined.

* Add ResourceQuotaMissingHost model
* Exclude ResourceQuota from Metrics/ClassLength
* Add api/v2/id/missing_hosts endpoint
* Add controller tests for missings_hosts and utilization
* Add model tests for missing_hosts and utilization
* Move generic stub functions to test_plugin_helper

Co-authored-by: Nadja Heitmann <[email protected]>
@bastian-src bastian-src force-pushed the feature/add_missing_hosts_and_utilization branch from 4473376 to d50f5d7 Compare April 30, 2024 14:42
@bastian-src bastian-src merged commit 8cd6466 into main Apr 30, 2024
21 checks passed
@bastian-src bastian-src deleted the feature/add_missing_hosts_and_utilization branch May 9, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants