aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-containers
diff options
context:
space:
mode:
authorShaun Smekel <shaun.smekel@gmail.com>2016-02-14 23:04:13 +1100
committerShaun Smekel <shaun.smekel@theorem.net.au>2016-02-17 18:49:55 +1100
commit6ac7839a21e8870875d3a432fdaea90ac7224144 (patch)
tree77317676628484b543904ae1599e0c78aaf09fc1 /tools/cleanup-containers
parent84f43146dc3754501adac14661361b823fb625a1 (diff)
downloadkolla-ansible-6ac7839a21e8870875d3a432fdaea90ac7224144.tar.gz
kolla-ansible-6ac7839a21e8870875d3a432fdaea90ac7224144.zip
Adds support for cleaning up bootstrap containers in the
toos/cleanup-containers script. Dynamic Ceph OSD bootstrap containers also included. Change-Id: Ifb5b54c5b78a894ed6e8b9980a6eb9919e52364c Closes-Bug: #1515544 Signed-off-by: Shaun Smekel <shaun.smekel@theorem.net.au>
Diffstat (limited to 'tools/cleanup-containers')
-rwxr-xr-xtools/cleanup-containers7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
index d6ce4a2e1..962a61251 100755
--- a/tools/cleanup-containers
+++ b/tools/cleanup-containers
@@ -10,6 +10,7 @@ if [ -n "$1" ]; then
containers_to_kill=($(docker ps | grep -E "$1" | awk '{print $1}'))
else
containers_to_kill=(
+ bootstrap_{ceph_mon,cinder,glance,heat,ironic,ironic_pxe,keystone,magnum,mistral,mongodb,murano,neutron,nova,nova_compute} \
cinder_{volume,scheduler,backup,api} \
glance_{api,registry} \
haproxy \
@@ -23,15 +24,17 @@ else
manila_{api,share,scheduler} \
mariadb \
memcached \
- mistral{api,engine,executor} \
+ mistral_{api,engine,executor} \
murano_{api,engine} \
neutron_{server,dhcp_agent,l3_agent,linuxbridge_agent,metadata_agent,openvswitch_agent} \
nova_{scheduler,novncproxy,consoleauth,conductor,api,compute,libvirt,spicehtml5proxy,compute_ironic} \
openvswitch_{vswitchd,db} \
- rabbitmq \
+ rabbitmq{,_bootstrap} \
rsyslog \
swift_{account_{auditor,reaper,replicator,server},container_{auditor,replicator,server,updater},object_{auditor,expirer,replicator,server,updater},proxy_server,rsyncd}
)
+ ceph_osd_bootstrap=$(docker ps -a --filter "name=bootstrap_osd_*" --format "{{.Names}}")
+ containers_to_kill="${containers_to_kill} ${ceph_osd_bootstrap}"
fi
echo "Stopping containers..."