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

Introduced flag for keeping VMs alive #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kwaizer
Copy link
Contributor

@Kwaizer Kwaizer commented Dec 12, 2024

@@ -174,6 +174,7 @@ def set_artifacts_when_stage_has_unexpected_exception(
module_name = task_params.get('module_name')
module_stream = task_params.get('module_stream')
module_version = task_params.get('module_version')
vm_alive = task_params.get('vm_alive')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's pass it as a keyword argument as we do above and adjust OpennebulaRunner.teardown method to not kill VMs
because right now, if that value is True we won't kill docker containers as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made adjustment but as I understand we need also to pass this flag to DockerRunner in order to avoid an exception during initialization.

@@ -62,6 +63,7 @@ def __init__(
package_channel=package_channel,
test_configuration=test_configuration,
test_flavor=test_flavor,
vm_alive= vm_alive,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove whitespace before vm_alive

@Kwaizer Kwaizer requested a review from anfimovdm December 24, 2024 22:21
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.

3 participants