From 16ea83e11c1d28ce819141b3a9c03b513ffe545e Mon Sep 17 00:00:00 2001 From: Gayathri Devi Kathiri Date: Thu, 4 Jun 2020 08:52:51 +0000 Subject: [PATCH] Remove remaining test pods before new test run If the test pod still exists, then the new test run fails with ERROR: pods "abc-test" already exists So, Removing remaining test pods before new test run Change-Id: I447d2b56b1419086b99df47b6605d0a95e1a9239 Closes-Bug: #1882030 --- tools/deployment/developer/common/085-barbican.sh | 2 ++ tools/deployment/developer/common/100-horizon.sh | 2 ++ tools/deployment/multinode/090-ceph-radosgateway.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/tools/deployment/developer/common/085-barbican.sh b/tools/deployment/developer/common/085-barbican.sh index 212d3369f0..e84acff7e2 100755 --- a/tools/deployment/developer/common/085-barbican.sh +++ b/tools/deployment/developer/common/085-barbican.sh @@ -32,4 +32,6 @@ helm upgrade --install barbican ./barbican \ #NOTE: Validate Deployment info helm status barbican +# Delete the test pod if it still exists +kubectl delete pods -l application=barbican,release_group=barbican,component=test --namespace=openstack --ignore-not-found helm test barbican diff --git a/tools/deployment/developer/common/100-horizon.sh b/tools/deployment/developer/common/100-horizon.sh index d3646566eb..fa7d16539f 100755 --- a/tools/deployment/developer/common/100-horizon.sh +++ b/tools/deployment/developer/common/100-horizon.sh @@ -35,4 +35,6 @@ helm upgrade --install horizon ./horizon \ #NOTE: Validate Deployment info helm status horizon +# Delete the test pod if it still exists +kubectl delete pods -l application=horizon,release_group=horizon,component=test --namespace=openstack --ignore-not-found helm test horizon diff --git a/tools/deployment/multinode/090-ceph-radosgateway.sh b/tools/deployment/multinode/090-ceph-radosgateway.sh index 52543d3aa7..51a15f4a58 100755 --- a/tools/deployment/multinode/090-ceph-radosgateway.sh +++ b/tools/deployment/multinode/090-ceph-radosgateway.sh @@ -80,4 +80,6 @@ helm status radosgw-openstack #NOTE: Run Tests export OS_CLOUD=openstack_helm +# Delete the test pod if it still exists +kubectl delete pods -l application=radosgw-openstack,release_group=radosgw-openstack,component=test --namespace=openstack --ignore-not-found helm test radosgw-openstack