diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-18 01:14:38 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-18 01:14:38 +0000 |
| commit | ff44f227c3fd3da60a7202c6318eb33c0982ea83 (patch) | |
| tree | 81fb85904dbdc83880787d2974d19fdc4f3926f9 | |
| parent | f055d71c0a1a52b0ac9781209a3fb4c3c7c0db8a (diff) | |
| parent | 6ac7839a21e8870875d3a432fdaea90ac7224144 (diff) | |
| download | kolla-ff44f227c3fd3da60a7202c6318eb33c0982ea83.tar.gz kolla-ff44f227c3fd3da60a7202c6318eb33c0982ea83.zip | |
Merge "Adds support for cleaning up bootstrap containers in the toos/cleanup-containers script."
| -rwxr-xr-x | tools/cleanup-containers | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers index 83b932c25..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 \ @@ -28,10 +29,12 @@ else 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..." |
