|
3 | 3 | import re |
4 | 4 | import shlex |
5 | 5 | from datetime import datetime, timedelta, timezone |
| 6 | +from functools import cache |
6 | 7 | from typing import Generator, Optional |
7 | 8 |
|
8 | 9 | import bitmath |
|
28 | 29 | from utilities.infra import ( |
29 | 30 | get_linux_guest_agent_version, |
30 | 31 | get_linux_os_info, |
| 32 | + is_jira_open, |
31 | 33 | raise_multiple_exceptions, |
32 | 34 | run_virtctl_command, |
33 | 35 | ) |
@@ -65,6 +67,9 @@ def _get_os_info(vm): |
65 | 67 | cnv_info = get_cnv_os_info(vm=vm) |
66 | 68 | libvirt_info = get_libvirt_os_info(vm=vm) |
67 | 69 | 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) |
68 | 73 | return virtctl_info, cnv_info, libvirt_info, linux_info |
69 | 74 |
|
70 | 75 | 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( |
649 | 654 | data_volume_template=data_volume_template, |
650 | 655 | vm_dict=param_dict.get("vm_dict"), |
651 | 656 | ) |
| 657 | + |
| 658 | + |
| 659 | +@cache |
| 660 | +def is_jira_70401_bug_open(): |
| 661 | + return is_jira_open(jira_id="CNV-70401") |
0 commit comments