-
Notifications
You must be signed in to change notification settings - Fork 34
[Virt] Removes EFI boot for cloning tests on s390x #1144
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
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
for more information, see https://pre-commit.ci
cluster_arch = get_nodes_cpu_architecture() | ||
rhel9_preference = RHEL9_PREFERENCE_S390X if cluster_arch == S390X else RHEL9_PREFERENCE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need, you can use directly in line 2506
with VirtualMachineForCloning( | ||
name=RHEL_WITH_INSTANCETYPE_AND_PREFERENCE, | ||
image=Images.Rhel.RHEL9_REGISTRY_GUEST_IMG, | ||
namespace=namespace.name, | ||
client=unprivileged_client, | ||
vm_instance_type=VirtualMachineClusterInstancetype(name=U1_SMALL), | ||
vm_preference=VirtualMachineClusterPreference(name=RHEL9_PREFERENCE), | ||
vm_preference=VirtualMachineClusterPreference(name=rhel9_preference), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vm_preference=VirtualMachineClusterPreference(name=rhel9_preference), | |
vm_preference=VirtualMachineClusterPreference(name=RHEL9_PREFERENCE_S390X if get_nodes_cpu_architecture() == S390X else RHEL9_PREFERENCE), |
cluster_arch = get_nodes_cpu_architecture() | ||
smm_enabled = True | ||
efi_params = {"secureBoot": True} | ||
if cluster_arch == S390X: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only used once, use directly:
if cluster_arch == S390X: | |
if get_nodes_cpu_architecture() == S390X: |
@@ -680,6 +680,7 @@ class NamespacesNames: | |||
|
|||
RHEL_WITH_INSTANCETYPE_AND_PREFERENCE = "rhel-with-instancetype-and-preference" | |||
RHEL9_PREFERENCE = "rhel.9" | |||
RHEL9_PREFERENCE_S390X = "rhel.9.s390x" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RHEL9_PREFERENCE_S390X = "rhel.9.s390x" | |
RHEL9_PREFERENCE_S390X = f"{RHEL9_PREFERENCE}.s390x" |
Short description:
Adds support of test on s390x by changing to bios boots for vm cloning tests
More details:
What this PR does / why we need it:
Allows
tests/virt/cluster/vm_cloning/test_vm_cloning.py
to be run on s390x archWhich issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket: