Add functionalities to openstack api - #499
Open
jose-caballero wants to merge 7 commits into
Open
Conversation
Add two functions to manage the metadata (what is displayed in field "properties" in the output of "openstack server show"). We are going to use the metadata field to mark certain Servers that require actions. For example, to mark the Servers that are running an EOL version of the Operating System and when the user was notified about it. These 2 functions just perform the set and delete steps. The exact content and format of the parameters is responsibility of the workflows code calling them.
Add the code to be able to perform the following actions: * add a tag to a Server * remove a tag from a Server * list of Servers including a given tag Note that for some of those actions, a very specific microversion of NOVA is needed. For those cases, we first record the current version, if that exists, we step temporarily the required microversion, and finally we restore the original value. This code is needed for the Hygiene work. We will mark the Servers we found in some undesired status (e.g. running a very old version of the OS) with a given tag. Filtering the entire list of Servers by tag is very fast.
Write a function to get the email address of the User who instantiated a given Server. This information will be used to be able to send emails to those Users when something problematic has been detected on the Servers. For example, if the Server is running an EOL version of the Operating System or have been in SHUTOFF state for too long.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #499 +/- ##
==========================================
+ Coverage 99.18% 99.20% +0.01%
==========================================
Files 112 112
Lines 2715 2773 +58
Branches 336 339 +3
==========================================
+ Hits 2693 2751 +58
Misses 19 19
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
anish-mudaraddi
requested changes
Aug 12, 2026
anish-mudaraddi
left a comment
Collaborator
There was a problem hiding this comment.
a quick fix - but other than that lgtm
jose-caballero
force-pushed
the
add_functionalities_to_openstack_api
branch
from
August 12, 2026 10:42
4c333c8 to
8be2cb9
Compare
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.
Description:
Special Notes:
Submitter:
Have you (where applicable):
Reviewer
Does this PR:
libdirectory?liblayers?