Skip to content

Commit 689dba6

Browse files
authored
cherry-pick RedHatQE#1778 to main (RedHatQE#2279)
Signed-off-by: akri3i <guptaakriti70@gmail.com>
1 parent f9e7dd8 commit 689dba6

File tree

1 file changed

+10
-0
lines changed
  • tests/virt/cluster/common_templates

1 file changed

+10
-0
lines changed

tests/virt/cluster/common_templates/utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44
import shlex
55
from datetime import datetime, timedelta, timezone
6+
from functools import cache
67
from typing import Generator, Optional
78

89
import bitmath
@@ -28,6 +29,7 @@
2829
from utilities.infra import (
2930
get_linux_guest_agent_version,
3031
get_linux_os_info,
32+
is_jira_open,
3133
raise_multiple_exceptions,
3234
run_virtctl_command,
3335
)
@@ -65,6 +67,9 @@ def _get_os_info(vm):
6567
cnv_info = get_cnv_os_info(vm=vm)
6668
libvirt_info = get_libvirt_os_info(vm=vm)
6769
linux_info = get_linux_os_info(ssh_exec=vm.ssh_exec)
70+
if is_jira_70401_bug_open():
71+
virtctl_info.pop("load", None)
72+
cnv_info.pop("load", None)
6873
return virtctl_info, cnv_info, libvirt_info, linux_info
6974

7075
os_info_sampler = TimeoutSampler(wait_timeout=330, sleep=30, func=_get_os_info, vm=vm)
@@ -649,3 +654,8 @@ def matrix_os_vm_from_template(
649654
data_volume_template=data_volume_template,
650655
vm_dict=param_dict.get("vm_dict"),
651656
)
657+
658+
659+
@cache
660+
def is_jira_70401_bug_open():
661+
return is_jira_open(jira_id="CNV-70401")

0 commit comments

Comments
 (0)