Skip to content

Commit a184a6a

Browse files
committed
[Gating] Skip kubevirt-console-plugin pods in sanity checks
Because of CNV-82451 bug, those pods crashing. We should skip them until the bug is fixed, to allow clean runs. Signed-off-by: Harel Meir <hmeir@redhat.com>
1 parent 45d1fc4 commit a184a6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utilities/infra.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
CLUSTER,
5353
HCO_CATALOG_SOURCE,
5454
KUBECONFIG,
55+
KUBEVIRT_CONSOLE_PLUGIN,
5556
NET_UTIL_CONTAINER_IMAGE,
5657
OC_ADM_LOGS_COMMAND,
5758
PROMETHEUS_K8S,
@@ -73,6 +74,7 @@
7374
UrlNotFoundError,
7475
UtilityPodNotFoundError,
7576
)
77+
from utilities.jira import is_jira_open
7678
from utilities.ssp import guest_agent_version_parser
7779

7880
NON_EXIST_URL = "https://noneexist.test" # Use 'test' domain rfc6761
@@ -194,8 +196,11 @@ def get_pod_container_error_status(pod: Pod) -> str | None:
194196

195197
def get_not_running_pods(pods: list[Pod], filter_pods_by_name: str = "") -> list[dict[str | None, str]]:
196198
pods_not_running = []
199+
if is_jira_open(jira_id="CNV-82451"):
200+
LOGGER.warning(f"Ignoring {KUBEVIRT_CONSOLE_PLUGIN} pods for pod state validations due to CNV-82451")
201+
pods = [pod for pod in pods if KUBEVIRT_CONSOLE_PLUGIN not in pod.name]
197202
for pod in pods:
198-
if filter_pods_by_name and filter_pods_by_name in pod.name: # type: ignore[operator]
203+
if filter_pods_by_name and filter_pods_by_name in pod.name:
199204
LOGGER.warning(f"Ignoring pod: {pod.name} for pod state validations.")
200205
continue
201206
try:

0 commit comments

Comments
 (0)