Skip to content

Commit

Permalink
fix(k8s): ignore timeout error deleting quasi-milti-dc ns
Browse files Browse the repository at this point in the history
To avoid following false errors:

  Command: 'kubectl delete namespace t-podip-quasi-multidc'

  Stdout:
  namespace "t-podip-quasi-multidc" deleted

  Stderr:

Which happen in the 'test_deploy_quasi_multidc_db_cluster' K8S func
test.
  • Loading branch information
vponomaryov committed Dec 18, 2023
1 parent a02daf3 commit 8662dad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functional_tests/scylla_operator/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import time
import ssl
import base64
import invoke
import path

import pytest
Expand Down Expand Up @@ -218,7 +219,10 @@ def get_pod_names_and_ips(cluster_name: str, namespace: str):
KubernetesOps.gather_k8s_logs(
logdir_path=logdir, kubectl=kubectl, namespaces=[namespace, namespace2])
k8s_cluster.helm(f"uninstall {target_chart_name} --timeout 120s", namespace=namespace)
kubectl(f"delete namespace {namespace}", ignore_status=True, timeout=120)
try:
kubectl(f"delete namespace {namespace}", ignore_status=True, timeout=120)
except invoke.exceptions.CommandTimedOut as exc:
log.warning("Deletion of the '%s' namespace timed out: %s", namespace, exc)


@pytest.mark.restart_is_used
Expand Down

0 comments on commit 8662dad

Please sign in to comment.