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: I3b3ed5ceaf420aa39a669b4a50a838ad154b1fdd
Closes-Bug: #1882030
This commit is contained in:
Gayathri Devi Kathiri 2020-06-05 09:54:13 +00:00 committed by Gayathri Devi
parent b62a46336c
commit a57190fd8a
29 changed files with 69 additions and 0 deletions

View File

@ -32,5 +32,7 @@ helm upgrade --install mariadb ./mariadb \
#NOTE: Validate Deployment info
helm status mariadb
# Delete the test pod if it still exists
kubectl delete pods -l application=mariadb,release_group=mariadb,component=test --namespace=osh-infra --ignore-not-found
#NOTE: Validate the deployment
helm test mariadb

View File

@ -77,4 +77,6 @@ helm upgrade --install elasticsearch ./elasticsearch \
#NOTE: Validate Deployment info
helm status elasticsearch
# Delete the test pod if it still exists
kubectl delete pods -l application=elasticsearch,release_group=elasticsearch,component=test --namespace=osh-infra --ignore-not-found
helm test elasticsearch

View File

@ -35,4 +35,6 @@ helm upgrade --install fluentbit ./fluentbit \
#NOTE: Validate Deployment info
helm status fluentbit
# Delete the test pod if it still exists
kubectl delete pods -l application=fluentbit,release_group=fluentbit,component=test --namespace=osh-infra --ignore-not-found
helm test fluentbit

View File

@ -170,4 +170,6 @@ helm upgrade --install fluentd-daemonset ./fluentd \
#NOTE: Validate Deployment info
helm status fluentd-daemonset
# Delete the test pod if it still exists
kubectl delete pods -l application=fluentd,release_group=fluentd-daemonset,component=test --namespace=osh-infra --ignore-not-found
helm test fluentd-daemonset

View File

@ -61,4 +61,6 @@ sleep 60 #NOTE(portdirect): Wait for ingress controller to update rules and rest
openstack service list
openstack endpoint list
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph,release_group=radosgw-openstack,component=rgw-test --namespace=openstack --ignore-not-found
helm test radosgw-openstack --timeout 900

View File

@ -57,5 +57,7 @@ helm status docker-registry-nfs-provisioner
helm status docker-registry-redis
helm status docker-registry
# Delete the test pod if it still exists
kubectl delete pods -l application=redis,release_group=docker-registry-redis,component=test --namespace=docker-registry --ignore-not-found
#NOTE: Run helm tests
helm test docker-registry-redis

View File

@ -62,5 +62,7 @@ for release in prometheus-one prometheus-two prometheus-three; do
#NOTE: Validate Deployment info
helm status prometheus-$release
# Delete the test pod if it still exists
kubectl delete pods -l application=prometheus,release_group=prometheus-$release,component=test --namespace=osh-infra --ignore-not-found
helm test prometheus-$release
done

View File

@ -61,4 +61,6 @@ helm upgrade --install federated-prometheus ./prometheus \
#NOTE: Validate Deployment info
helm status federated-prometheus
# Delete the test pod if it still exists
kubectl delete pods -l application=prometheus,release_group=federated-prometheus,component=test --namespace=osh-infra --ignore-not-found
helm test federated-prometheus

View File

@ -159,6 +159,9 @@ helm upgrade --install grafana ./grafana \
#NOTE: Validate Deployment info
helm status grafana
# Delete the test pod if it still exists
kubectl delete pods -l application=grafana,release_group=grafana,component=test --namespace=osh-infra --ignore-not-found
helm test grafana
echo "Get list of all configured datasources in Grafana"

View File

@ -32,5 +32,7 @@ helm upgrade --install mariadb ./mariadb \
#NOTE: Validate Deployment info
helm status mariadb
# Delete the test pod if it still exists
kubectl delete pods -l application=mariadb,release_group=mariadb,component=test --namespace=openstack --ignore-not-found
#NOTE: Validate the deployment
helm test mariadb

View File

@ -114,5 +114,11 @@ for CHART in ceph-mon ceph-osd ceph-client ceph-provisioners; do
--no-headers | awk '{ print $1; exit }')
kubectl exec -n ceph ${MON_POD} -- ceph -s
done
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph-osd,release_group=ceph-osd,component=test --namespace=ceph --ignore-not-found
helm test ceph-osd --timeout 900
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph-client,release_group=ceph-client,component=test --namespace=ceph --ignore-not-found
helm test ceph-client --timeout 900

View File

@ -55,4 +55,6 @@ helm upgrade --install ceph-osh-infra-config ./ceph-provisioners \
#NOTE: Validate Deployment info
helm status ceph-osh-infra-config
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph,release_group=ceph-osh-infra-config,component=provisioner-test --namespace=osh-infra --ignore-not-found
helm test ceph-osh-infra-config --timeout 600

View File

@ -33,5 +33,7 @@ helm upgrade --install mariadb ./mariadb \
#NOTE: Validate Deployment info
helm status mariadb
# Delete the test pod if it still exists
kubectl delete pods -l application=mariadb,release_group=mariadb,component=test --namespace=osh-infra --ignore-not-found
#NOTE: Validate the deployment
helm test mariadb

View File

@ -33,5 +33,7 @@ helm upgrade --install prometheus ./prometheus \
#NOTE: Validate Deployment info
helm status prometheus
# Delete the test pod if it still exists
kubectl delete pods -l application=prometheus,release_group=prometheus,component=test --namespace=osh-infra --ignore-not-found
#NOTE: Run helm tests
helm test prometheus

View File

@ -33,5 +33,7 @@ helm upgrade --install grafana ./grafana \
#NOTE: Validate Deployment info
helm status grafana
# Delete the test pod if it still exists
kubectl delete pods -l application=grafana,release_group=grafana,component=test --namespace=osh-infra --ignore-not-found
#NOTE: Run helm tests
helm test grafana

View File

@ -69,4 +69,6 @@ helm upgrade --install radosgw-osh-infra ./ceph-rgw \
#NOTE: Validate Deployment info
helm status radosgw-osh-infra
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph,release_group=radosgw-osh-infra,component=rgw-test --namespace=osh-infra --ignore-not-found
helm test radosgw-osh-infra --timeout 900

View File

@ -72,5 +72,7 @@ helm upgrade --install elasticsearch ./elasticsearch \
#NOTE: Validate Deployment info
helm status elasticsearch
# Delete the test pod if it still exists
kubectl delete pods -l application=elasticsearch,release_group=elasticsearch,component=test --namespace=osh-infra --ignore-not-found
#NOTE: Run helm tests
helm test elasticsearch

View File

@ -27,5 +27,7 @@ helm upgrade --install kafka ./kafka \
#NOTE: Validate deployment info
helm status kafka
# Delete the test pod if it still exists
kubectl delete pods -l application=kafka,release_group=kafka,component=test --namespace=osh-infra --ignore-not-found
#NOTE: Test deployment
helm test kafka

View File

@ -32,4 +32,6 @@ helm upgrade --install prometheus ./prometheus \
#NOTE: Validate Deployment info
helm status prometheus
# Delete the test pod if it still exists
kubectl delete pods -l application=prometheus,release_group=prometheus,component=test --namespace=osh-infra --ignore-not-found
helm test prometheus

View File

@ -204,5 +204,10 @@ for CHART in ceph-mon ceph-osd ceph-client ceph-provisioners; do
--no-headers | awk '{ print $1; exit }')
kubectl exec -n ceph ${MON_POD} -- ceph -s
done
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph-osd,release_group=ceph-osd,component=test --namespace=ceph --ignore-not-found
helm test ceph-osd --timeout 900
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph-client,release_group=ceph-client,component=test --namespace=ceph --ignore-not-found
helm test ceph-client --timeout 900

View File

@ -51,6 +51,8 @@ helm upgrade --install ceph-osh-infra-config ./ceph-provisioners \
#NOTE: Wait for deploy
./tools/deployment/common/wait-for-pods.sh osh-infra
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph,release_group=ceph-osh-infra-config,component=provisioner-test --namespace=osh-infra --ignore-not-found
helm test ceph-osh-infra-config --timeout 600
#NOTE: Validate Deployment info

View File

@ -57,5 +57,7 @@ helm upgrade --install radosgw-osh-infra ./ceph-rgw \
#NOTE: Validate Deployment info
helm status radosgw-osh-infra
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph,release_group=radosgw-osh-infra,component=rgw-test --namespace=osh-infra --ignore-not-found
#NOTE: Test Deployment
helm test radosgw-osh-infra --timeout 900

View File

@ -117,4 +117,6 @@ helm upgrade --install elasticsearch ./elasticsearch \
#NOTE: Validate Deployment info
helm status elasticsearch
# Delete the test pod if it still exists
kubectl delete pods -l application=elasticsearch,release_group=elasticsearch,component=test --namespace=osh-infra --ignore-not-found
helm test elasticsearch

View File

@ -33,5 +33,7 @@ helm upgrade --install mariadb ./mariadb \
#NOTE: Validate Deployment info
helm status mariadb
# Delete the test pod if it still exists
kubectl delete pods -l application=mariadb,release_group=mariadb,component=test --namespace=osh-infra --ignore-not-found
#NOTE: Validate the deployment
helm test mariadb

View File

@ -32,4 +32,6 @@ helm upgrade --install prometheus ./prometheus \
#NOTE: Validate Deployment info
helm status prometheus
# Delete the test pod if it still exists
kubectl delete pods -l application=prometheus,release_group=prometheus,component=test --namespace=osh-infra --ignore-not-found
helm test prometheus

View File

@ -32,4 +32,6 @@ helm upgrade --install grafana ./grafana \
#NOTE: Validate Deployment info
helm status grafana
# Delete the test pod if it still exists
kubectl delete pods -l application=grafana,release_group=grafana,component=test --namespace=osh-infra --ignore-not-found
helm test grafana

View File

@ -31,4 +31,6 @@ helm upgrade --install nagios ./nagios \
#NOTE: Validate Deployment info
helm status nagios
# Delete the test pod if it still exists
kubectl delete pods -l application=nagios,release_group=nagios,component=test --namespace=osh-infra --ignore-not-found
helm test nagios

View File

@ -131,5 +131,10 @@ for CHART in ceph-mon ceph-osd ceph-client ceph-provisioners; do
--no-headers | awk '{ print $1; exit }')
kubectl exec -n ceph ${MON_POD} -- ceph -s
done
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph-osd,release_group=ceph-osd,component=test --namespace=ceph --ignore-not-found
helm test ceph-osd --timeout 900
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph-client,release_group=ceph-client,component=test --namespace=ceph --ignore-not-found
helm test ceph-client --timeout 900

View File

@ -69,4 +69,6 @@ helm upgrade --install radosgw-openstack ./ceph-rgw \
#NOTE: Validate Deployment info
helm status radosgw-openstack
# Delete the test pod if it still exists
kubectl delete pods -l application=ceph,release_group=radosgw-openstack,component=rgw-test --namespace=openstack --ignore-not-found
helm test radosgw-openstack --timeout 900