Skip to content

Commit 4358368

Browse files
authored
Use Fedora image for common VM preference tests (#5152)
##### What this PR does / why we need it: The preference tests validate that KubeVirt applies CPU/memory/device preferences correctly. Fedora boots faster and avoids teardown failures seen with 512Mi guest memory. ##### Which issue(s) this PR fixes: tier3 tests continues to fail in teardown ##### Special notes for reviewer: RHEL9 guest image cannot shutdown with 512Mi guest memory, which is the requirement defined by the windows.2k8 and windows.2k12 preferences.With other windows with 2Gi guest memory RHEL9 image tests works fine and teardown happens. This causes VMIs to remain in Running phase indefinitely after VM deletion, blocking namespace cleanup and failing teardown with ResourceTeardownError. so replacing with a lighter image, so that we get only legit failures due to preferences. ##### jira-ticket: https://redhat.atlassian.net/browse/CNV-88839 t3 lane failures <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated test infrastructure to use an alternative VM image for test execution. **Note:** This is a test-only change with no impact to end-user functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Geetika Kapoor <gkapoor@redhat.com>
1 parent b8ce853 commit 4358368

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/infrastructure/instance_types/test_common_vm_preference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def start_vm_with_cluster_preference(client, preference_name, namespace_name):
4242
name=f"rhel-vm-with-{preference_name}",
4343
namespace=namespace_name,
4444
# TODO: Add corresponding images to the VM based on preference
45-
image=Images.Rhel.RHEL9_REGISTRY_GUEST_IMG,
45+
image=Images.Fedora.FEDORA_CONTAINER_IMAGE,
4646
memory_guest=memory_guest,
4747
cpu_sockets=sockets,
4848
cpu_cores=cores,

0 commit comments

Comments
 (0)