diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/start | 8 | ||||
| -rwxr-xr-x | tools/start-all-pods | 24 | ||||
| -rwxr-xr-x | tools/start-all-replications | 13 | ||||
| -rwxr-xr-x | tools/start-all-services | 28 | ||||
| -rwxr-xr-x | tools/stop | 9 | ||||
| -rwxr-xr-x | tools/stop-all-pods | 18 | ||||
| -rwxr-xr-x | tools/stop-all-replications | 11 | ||||
| -rwxr-xr-x | tools/stop-all-services | 10 |
8 files changed, 0 insertions, 121 deletions
diff --git a/tools/start b/tools/start deleted file mode 100755 index d0d3f7bc4..000000000 --- a/tools/start +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -./tools/start-all-services -./tools/start-all-replications -./tools/start-all-pods diff --git a/tools/start-all-pods b/tools/start-all-pods deleted file mode 100755 index 8bad8d0ff..000000000 --- a/tools/start-all-pods +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -pods=' -rabbitmq -mariadb -keystone -glance -nova-controller -nova-compute -neutron-server -heat -mongodb -ceilometer-controller -zaqar -horizon -' - -for pod in $pods; do - kubectl create -f "k8s/pod/${pod}-pod.yaml" -done - diff --git a/tools/start-all-replications b/tools/start-all-replications deleted file mode 100755 index 8adc0430f..000000000 --- a/tools/start-all-replications +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -services=' -nova-compute -' - -for svc in $services; do - kubectl create -f "k8s/replication/${svc}-replication.yaml" -done - diff --git a/tools/start-all-services b/tools/start-all-services deleted file mode 100755 index 23a8e4c1c..000000000 --- a/tools/start-all-services +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -services=' -ceilometer-api -glance-api -glance-registry -keystone-admin -keystone-public -mariadb -mongodb -nova-api -nova-ec2-api -nova-libvirt -nova-metadata-api -rabbitmq -neutron-server -heat-api -zaqar-server -horizon -' - -for svc in $services; do - kubectl create -f "k8s/service/${svc}-service.yaml" -done - diff --git a/tools/stop b/tools/stop deleted file mode 100755 index 2a914d917..000000000 --- a/tools/stop +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -./tools/stop-all-replications -./tools/stop-all-pods -./tools/stop-all-services - diff --git a/tools/stop-all-pods b/tools/stop-all-pods deleted file mode 100755 index f18f82281..000000000 --- a/tools/stop-all-pods +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -UUID_REGEX="[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}" - -pods=$(kubectl get pods -o template -t '{{range .items}}{{.id}} {{end}}') -for pod in $pods; do - if [[ $pod =~ $UUID_REGEX ]]; then - # Stopping a k8s replicationController doesn't delete the associated - # pods, which names are UUIDs. - # Assuming all pods named by UUID are leftover replication pods. - kubectl delete pod $pod - else - kubectl delete -f "k8s/pod/${pod}-pod.yaml" 2>/dev/null - fi -done diff --git a/tools/stop-all-replications b/tools/stop-all-replications deleted file mode 100755 index 014ecb3bf..000000000 --- a/tools/stop-all-replications +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -replication_ctrs=$(kubectl get replicationController | awk 'NR>1 {print $1}') - -for replication_ctr in $replication_ctrs; do - kubectl delete -f "k8s/replication/${replication_ctr}-replication.yaml" -done - diff --git a/tools/stop-all-services b/tools/stop-all-services deleted file mode 100755 index 14e4942b3..000000000 --- a/tools/stop-all-services +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -services=$(kubectl get services | awk 'NR>1 {print $1}') - -for service in $services; do - kubectl delete -f "k8s/service/${service}-service.yaml" 2>/dev/null -done |
