Disable qat addon test under containerd 1.2.13 11/4311/1
authorTodd Malsbary <todd.malsbary@intel.com>
Mon, 7 Jun 2021 19:00:37 +0000 (12:00 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Mon, 7 Jun 2021 19:00:37 +0000 (12:00 -0700)
The error reported via describe pod is:
  Error: failed to create containerd container: error unpacking image
This error is fixed in newer versions of containerd, however 1.2.13 is
the supported version of kubespray 2.14.1.

Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I2c880ee6c4f9e3f51e4f591c337735d6291b0c72

cmd/bpa-operator/e2etest/bpa_bmh_verifier.sh
cmd/bpa-operator/e2etest/bpa_vm_verifier.sh

index 9834811..71f7d94 100755 (executable)
@@ -89,8 +89,15 @@ done
 printf "Testing KUD addons\n"
 pushd /opt/kud/multi-cluster/addons/tests
 failed_kud_tests=""
-for addon in multus ovn4nfv nfd sriov-network qat cmk; do
-    KUBECONFIG=${CLUSTER_KUBECONFIG} bash ${addon}.sh || failed_kud_tests="${failed_kud_tests} ${addon}"
+container_runtime=$(KUBECONFIG=${CLUSTER_KUBECONFIG} kubectl get nodes -o jsonpath='{.items[].status.nodeInfo.containerRuntimeVersion}')
+if [[ "${container_runtime}" == "containerd://1.2.13" ]]; then
+    #With containerd 1.2.13, the qat test container image fails to unpack.
+    kud_tests="multus ovn4nfv nfd sriov-network cmk"
+else
+    kud_tests="multus ovn4nfv nfd sriov-network qat cmk"
+fi
+for test in ${kud_tests}; do
+    KUBECONFIG=${CLUSTER_KUBECONFIG} bash ${test}.sh || failed_kud_tests="${failed_kud_tests} ${test}"
 done
 if [[ ! -z "$failed_kud_tests" ]]; then
     printf "Test cases failed:${failed_kud_tests}\n"
index d22ccae..f89f44e 100755 (executable)
@@ -173,8 +173,15 @@ done
 printf "Testing KUD addons\n"
 pushd /opt/kud/multi-cluster/addons/tests
 failed_kud_tests=""
-for addon in multus ovn4nfv nfd sriov-network qat cmk; do
-    KUBECONFIG=${CLUSTER_KUBECONFIG} bash ${addon}.sh || failed_kud_tests="${failed_kud_tests} ${addon}"
+container_runtime=$(KUBECONFIG=${CLUSTER_KUBECONFIG} kubectl get nodes -o jsonpath='{.items[].status.nodeInfo.containerRuntimeVersion}')
+if [[ "${container_runtime}" == "containerd://1.2.13" ]]; then
+    #With containerd 1.2.13, the qat test container image fails to unpack.
+    kud_tests="multus ovn4nfv nfd sriov-network cmk"
+else
+    kud_tests="multus ovn4nfv nfd sriov-network qat cmk"
+fi
+for test in ${kud_tests}; do
+    KUBECONFIG=${CLUSTER_KUBECONFIG} bash ${test}.sh || failed_kud_tests="${failed_kud_tests} ${test}"
 done
 if [[ ! -z "$failed_kud_tests" ]]; then
     printf "Test cases failed:${failed_kud_tests}\n"