Fixes of sanity tests, updated cfg-checker, other small fixes
* added sourcing env files automatically for mgmt
* hotfix for the sanity script
* extended timeouts for sanity tests
* fixed some issues in cfg-checker and updated its archive
Related-PROD: K0RQA-15
Change-Id: I90a2e31708a066cd70670a6ba1e93edad8655c18
diff --git a/k8s/k0rdent-toolset-full b/k8s/k0rdent-toolset-full
index 6cf066f..ba33ed1 100644
--- a/k8s/k0rdent-toolset-full
+++ b/k8s/k0rdent-toolset-full
@@ -88,5 +88,8 @@
WORKDIR /artifacts
+RUN echo '[ -f /artifacts/env.sh ] && . /artifacts/env.sh' >> /root/.bashrc && \
+ echo '[ -f /artifacts/envs/mgmtrc ] && . /artifacts/envs/mgmtrc' >> /root/.bashrc
+
ENTRYPOINT ["sleep infinite"]
diff --git a/k8s/sanity-checks/test_sanity_checks.py b/k8s/sanity-checks/test_sanity_checks.py
index 7b9bf05..f121e3b 100644
--- a/k8s/sanity-checks/test_sanity_checks.py
+++ b/k8s/sanity-checks/test_sanity_checks.py
@@ -211,9 +211,9 @@
pytest.skip(f"Target cluster deployment '{cld.name}' is not found in "
f"namespace '{settings.TARGET_NAMESPACE}'. Please check "
f"TARGET_NAMESPACE and TARGET_CLD env vars.")
- cld.check.check_cluster_readiness(timeout=30)
- cld.check.check_k8s_pods(timeout=30)
- cld.check.check_k8s_nodes(timeout=30)
+ cld.check.check_cluster_readiness(timeout=90)
+ cld.check.check_k8s_pods(timeout=120)
+ cld.check.check_k8s_nodes(timeout=90)
@pytest.mark.sanity
@@ -228,6 +228,6 @@
ns = kcm_manager.get_namespace(namespace)
cld = ns.get_cluster_deployment(cld_name)
- cld.check.check_cluster_readiness(timeout=30)
- cld.check.check_k8s_pods(timeout=30)
- cld.check.check_k8s_nodes(timeout=30)
+ cld.check.check_cluster_readiness(timeout=90)
+ cld.check.check_k8s_pods(timeout=120)
+ cld.check.check_k8s_nodes(timeout=90)
diff --git a/k8s/src/mos-checker.tgz b/k8s/src/mos-checker.tgz
index b95a33e..434408d 100644
--- a/k8s/src/mos-checker.tgz
+++ b/k8s/src/mos-checker.tgz
Binary files differ
diff --git a/k8s/workspace/run-k0rdent-sanity-for-child.sh b/k8s/workspace/run-k0rdent-sanity-for-child.sh
index b1a1640..8f51edc 100644
--- a/k8s/workspace/run-k0rdent-sanity-for-child.sh
+++ b/k8s/workspace/run-k0rdent-sanity-for-child.sh
@@ -12,7 +12,7 @@
if [[ $# -lt 1 ]]; then
echo -e "\nError: No cluster name provided."
- echo "Usage: $0 <cluster-name>"
+ echo "Usage: $0 <cluster-name> <cluster-namespace>"
echo ""
exit 1
fi