Merge "Remove remaining test pods before new test run"

This commit is contained in:
Zuul 2020-08-18 16:21:00 +00:00 committed by Gerrit Code Review
commit 622bc4d972
29 changed files with 69 additions and 0 deletions

View File

@ -33,5 +33,7 @@ helm upgrade --install mariadb ./mariadb \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status mariadb 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 #NOTE: Validate the deployment
helm test mariadb helm test mariadb

View File

@ -77,4 +77,6 @@ helm upgrade --install elasticsearch ./elasticsearch \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status elasticsearch 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 helm test elasticsearch

View File

@ -35,4 +35,6 @@ helm upgrade --install fluentbit ./fluentbit \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status fluentbit 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 helm test fluentbit

View File

@ -170,4 +170,6 @@ helm upgrade --install fluentd-daemonset ./fluentd \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status fluentd-daemonset 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 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 service list
openstack endpoint 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 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-redis
helm status docker-registry 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 #NOTE: Run helm tests
helm test docker-registry-redis 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 #NOTE: Validate Deployment info
helm status prometheus-$release 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 helm test prometheus-$release
done done

View File

@ -61,4 +61,6 @@ helm upgrade --install federated-prometheus ./prometheus \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status federated-prometheus 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 helm test federated-prometheus

View File

@ -159,6 +159,9 @@ helm upgrade --install grafana ./grafana \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status grafana 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 helm test grafana
echo "Get list of all configured datasources in 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 #NOTE: Validate Deployment info
helm status mariadb 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 #NOTE: Validate the deployment
helm test mariadb helm test mariadb

View File

@ -125,5 +125,11 @@ for CHART in ceph-mon ceph-osd ceph-client ceph-provisioners; do
--no-headers | awk '{ print $1; exit }') --no-headers | awk '{ print $1; exit }')
kubectl exec -n ceph ${MON_POD} -- ceph -s kubectl exec -n ceph ${MON_POD} -- ceph -s
done 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 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 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 #NOTE: Validate Deployment info
helm status ceph-osh-infra-config 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 helm test ceph-osh-infra-config --timeout 600

View File

@ -33,5 +33,7 @@ helm upgrade --install mariadb ./mariadb \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status mariadb 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 #NOTE: Validate the deployment
helm test mariadb helm test mariadb

View File

@ -33,5 +33,7 @@ helm upgrade --install prometheus ./prometheus \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status prometheus 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 #NOTE: Run helm tests
helm test prometheus helm test prometheus

View File

@ -33,5 +33,7 @@ helm upgrade --install grafana ./grafana \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status grafana 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 #NOTE: Run helm tests
helm test grafana helm test grafana

View File

@ -69,4 +69,6 @@ helm upgrade --install radosgw-osh-infra ./ceph-rgw \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status radosgw-osh-infra 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 helm test radosgw-osh-infra --timeout 900

View File

@ -72,5 +72,7 @@ helm upgrade --install elasticsearch ./elasticsearch \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status elasticsearch 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 #NOTE: Run helm tests
helm test elasticsearch helm test elasticsearch

View File

@ -27,5 +27,7 @@ helm upgrade --install kafka ./kafka \
#NOTE: Validate deployment info #NOTE: Validate deployment info
helm status kafka 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 #NOTE: Test deployment
helm test kafka helm test kafka

View File

@ -32,4 +32,6 @@ helm upgrade --install prometheus ./prometheus \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status prometheus 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 helm test prometheus

View File

@ -213,5 +213,10 @@ for CHART in ceph-mon ceph-osd ceph-client ceph-provisioners; do
--no-headers | awk '{ print $1; exit }') --no-headers | awk '{ print $1; exit }')
kubectl exec -n ceph ${MON_POD} -- ceph -s kubectl exec -n ceph ${MON_POD} -- ceph -s
done 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 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 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 #NOTE: Wait for deploy
./tools/deployment/common/wait-for-pods.sh osh-infra ./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 helm test ceph-osh-infra-config --timeout 600
#NOTE: Validate Deployment info #NOTE: Validate Deployment info

View File

@ -57,5 +57,7 @@ helm upgrade --install radosgw-osh-infra ./ceph-rgw \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status radosgw-osh-infra 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 #NOTE: Test Deployment
helm test radosgw-osh-infra --timeout 900 helm test radosgw-osh-infra --timeout 900

View File

@ -117,4 +117,6 @@ helm upgrade --install elasticsearch ./elasticsearch \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status elasticsearch 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 helm test elasticsearch

View File

@ -33,5 +33,7 @@ helm upgrade --install mariadb ./mariadb \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status mariadb 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 #NOTE: Validate the deployment
helm test mariadb helm test mariadb

View File

@ -32,4 +32,6 @@ helm upgrade --install prometheus ./prometheus \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status prometheus 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 helm test prometheus

View File

@ -32,4 +32,6 @@ helm upgrade --install grafana ./grafana \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status grafana 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 helm test grafana

View File

@ -31,4 +31,6 @@ helm upgrade --install nagios ./nagios \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status nagios 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 helm test nagios

View File

@ -139,5 +139,10 @@ for CHART in ceph-mon ceph-osd ceph-client ceph-provisioners; do
--no-headers | awk '{ print $1; exit }') --no-headers | awk '{ print $1; exit }')
kubectl exec -n ceph ${MON_POD} -- ceph -s kubectl exec -n ceph ${MON_POD} -- ceph -s
done 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 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 helm test ceph-client --timeout 900

View File

@ -69,4 +69,6 @@ helm upgrade --install radosgw-openstack ./ceph-rgw \
#NOTE: Validate Deployment info #NOTE: Validate Deployment info
helm status radosgw-openstack 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 helm test radosgw-openstack --timeout 900