Skip to content

Added new parameters to quota.set workflow #329

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

DaveW-STFC
Copy link

Description:

Added new compute parameters to the quota.set workflow.
Changed method calls to pass the quotas as a dictionary instead of individual lines.
Updated the unit tests to reflect the changes.
Added start of quota.show methods for review.


Submitter:

Have you (where applicable):

  • Added unit tests?
  • Checked the latest commit runs on Dev?
  • Updated the example config file(s) and README?

Reviewer

Does this PR:

  • Place non-StackStorm code into the lib directory?
  • Have unit tests for the action/sensor and lib layers?
  • Have clear and obvious action parameter names and descriptions?

Added new compute quota fields to the quota.set action
Added the new quotas to the quota_actions.py
Updated quota_details.py with new parameters.
Adjusted quota_action.py to limit line length of quota details.
Added parameters to openstack_quoata.py.
WIP: looking to see if better implementation for this through the api
Adjusted call to set the quotas to allow to pass all to be set in one call.
Updated tests to reflect the new call.
Added set quota call for network and volume. Docs i saw seemed to suggest some of the quotas were classed under compute but appears not.
Updated tests to reflect changes.
Loop quotas and remove any keys with 0 value as these are marked as no change.
Only make call to set relevant quota if they have values to change.
Removed dataclasses import as no longer used.
@DaveW-STFC DaveW-STFC marked this pull request as ready for review March 5, 2025 11:38
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.

1 participant