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

Watcher yoga #1179

Open
wants to merge 9 commits into
base: stable/yoga
Choose a base branch
from
Open

Conversation

wolsen
Copy link
Contributor

@wolsen wolsen commented Jan 4, 2024

No description provided.

Add get_watcher_session_client() helper function to build a
watcherclient.v1.Client instance authenticated with a keystone session
that uses admin credentials by default.

(cherry picked from commit fd82476)
(cherry picked from commit 03875e1)
(cherry picked from commit 32308a1)
This allows callers to pass None and let get_nova_session_client() to
use a sane default API, specifically this allows intermediate users
(e.g. launch_guest() ) to proxy values passed by the caller.

(cherry picked from commit 3283ed4)
(cherry picked from commit dd72af4)
(cherry picked from commit 3d17c1e)
This change exposes two new parameters in the launch_instance()
function:

- nova_api_version: Set the microversion the novaclient should use.
- host: Request to launch the instance on a specific hypervisor host.

(cherry picked from commit be6ba2a)
(cherry picked from commit 41d4e42)
(cherry picked from commit e0cf425)
The stop_status parameter allows callers to ask stop retrying based on a
list of statuses that are known to be final (and error) states, this
saves time failing earlier.

Usage example for fail early when an instance reaches to ERROR status:

    openstack_utils.resource_reaches_status(self.nova_client.servers,
                                            instance_uuid,
                                            resource_attribute='state',
                                            expected_status='ACTIVE',
                                            stop_status='ERROR')

(cherry picked from commit 11c3f80)
(cherry picked from commit b7c38ed)
(cherry picked from commit cfc0fb0)
This simplifies when developing new tests and the programmer is not too
familiar with the different attributes an object has.

(cherry picked from commit 55b3145)
(cherry picked from commit 42e9404)
(cherry picked from commit b129d57)
This test launches 1 instance per hypervisor, and then launches a new
audit to optimize the use of hypervisors and consolidate the instances
in a single hypervisor, but also disabling the nova-compute service to
avoid new instances get allocated.

(cherry picked from commit 6787c84)
(cherry picked from commit 35741f1)
(cherry picked from commit 8d600ff)
(cherry picked from commit 1d42b64)
(cherry picked from commit 9771dd2)
(cherry picked from commit 88f07b1)
(cherry picked from commit 4491642)
(cherry picked from commit b2a8f5a)
(cherry picked from commit 72457ba)
(cherry picked from commit b087c0c)
(cherry picked from commit e093e1b)
(cherry picked from commit 851ac24)
@wolsen
Copy link
Contributor Author

wolsen commented Jan 10, 2024

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.

None yet

2 participants