17 Commits

Author SHA1 Message Date
Artur Zarzycki
95c1d7380f Remove ironic containers in the cleanup script
TrivialFix

Change-Id: Ia37369acf8bf7ca7f49fd647f40c6e98f40e93d8
2015-12-14 16:57:04 +01:00
Sidharth Surana
a3b7b866b7 Remove cinder containers in the cleanup script
Change-Id: I29b788a71f30d133e66759a5de2ecd43222313a8
Closes-Bug: #1524557
2015-12-09 16:25:44 -08:00
Sean Mooney
2ffb35ee53 adds tools/cleanup-containers regex support
- this change extends the tools/cleanup-containers script to
  support a grep extended regex as a first paramater.
- if tools/cleanup-containers is called with a grep extended
  regex string as a first paramater, only containers mataching
  that regex will be cleaned up.
- e.g. tools/cleanup-containers "neutron|openvswitch"
  will cleanup all container whoes name contains either neutron
  or openvswitch.

Change-Id: Iadb68c0a8de40e9ec2c0a27568e3a372ec0e8303
Closes-Bug: #1522168
2015-12-02 23:01:42 +00:00
Hui Kang
afb30cbebd Remove openvswitch_data container in the cleanup script
Change-Id: Iec94e254e8df501005fd3660c80e3c2eefbb05bb
Closes-bug: #1520833
2015-11-28 16:30:00 -05:00
Michal Rostecki
2cd5d9ed74 Add Ansible support for Magnum
Change-Id: Idb25ac4d3148c9b9400cf675ac2e47d35cce6224
Implements: blueprint ansible-magnum
2015-11-13 11:31:34 +01:00
Michal Rostecki
9a9c0ce944 Remove memcached container in cleanup-containers tool
Change-Id: Ic56b7b2fd6cd7d191cc364a37f3ebbc44950932e
Closes-Bug: #1508780
2015-10-22 06:47:32 +02:00
Kuo-tung Kao
1e86af763b put conatiner name to array in cleanup-containers
The brace in string variable will not be expanded in some case.
Put conatiner name into array.

Change-Id: I2fb16e7352bd579f207efce0fb9b2565a1e7236d
Closes-Bug: #1502467
2015-10-06 13:55:58 +08:00
Sam Yaple
0ac5e048c6 Improve cleanup script
Its still dirty, but at least it won't kill all your containers.

Change-Id: Ie468210bd0f273432ca16fc9530bf9acd2a808ed
Closes-Bug: #1486620
2015-09-27 08:41:02 +00:00
Kai Qiang Wu(Kennan)
da68e2eccc Improve scripts with some check before kick rm command
Closes-Bug: #1490387
Change-Id: I4a9476085b9c5b2cae3801e5b1954e85068f4e03
2015-08-31 05:13:59 +00:00
Daneyon Hansen
171a64bcd8 Removes Host Cleanup from Container Cleanup Script
Split the content of cleanup-containers into containers cleanup and host
cleanup. This allows to run the cleanup-containers from OSX clients,
while keeping needed code to delete host artifacts left behind by the
neutron agents container.

In addition, cleanup-containers may disappear in the future, replaced by
a docker-compose wrapper.

Co-Authored-By: Martin André <martin.andre@kvhasia.com>
Co-Authored-By: Swapnil Kulkarni <me@coolsvap.net>
Change-Id: I3aa731e7e0f9eb3dad9c363bb5d4a575d84a2fae
Closes-Bug: #1477383
2015-07-23 04:24:05 +00:00
Swapnil Kulkarni
1f0acbd0cd Update scripts to check if docker is usable for $USER
Added new script for checking user permissions on
docker command execution

Change-Id: I3b727590d9a29f416f5b847912b7250c555c2333
Closes-Bug: #1473554
2015-07-14 09:38:49 +00:00
Swapnil Kulkarni
aff8e49af6 Remove requirement for root user in scripts
The following files had requirement for root user
which can be removed as long as as the the user
executing script is part of docker group

Scripts updated
tools/kolla
tools/cleanup-containers

Closes-Bug: #1473551
Change-Id: Ia4aea205f5da20fb1ded4f7a5d11eeebe5f40aa9
2015-07-10 20:33:18 +00:00
Steven Dake
59a2cd4089 Make clenaup-containers bashate compliant
Change-Id: I5469e6e60b9e20ee98c9149697f663e94e58077d
Partially-Implements: blueprint bashate-gate
2015-05-28 08:35:41 -07:00
Daneyon Hansen
556388e737 Updates cleanup-containers
Previously cleanup-containers suffered from the following
limitations:

1. The docker rm command would fail if all the containers were not
   stopped.
2. The script would throw an error if no containers existed.
3. Artifacts such as veths, bridges, etc.. would remain on the host
   after containers were removed. These artifacts should be removed
   if the containers are removed.

Change-Id: I5eadb23fec9e34125a32f6c3e39c241d97932910
2015-05-06 21:00:38 +00:00
Martin André
6772962c72 Pass cleanup scripts arguments to docker
This allows to maintain the default behavior unchanged while making it
possible to force clean.

Follow-up to https://review.openstack.org/#/c/145921/

Change-Id: Ie5733b22bda9cdd7d08f5c5ecc5a3d94b984a125
2015-01-15 09:27:27 +09:00
Ryan Hallisey
ae4cc56c14 Cleanup of images and containers needs a '-f' flag to force shutdown
Change-Id: I0642dcd36fe5af261b8f35744e3e88460a13fc85
2015-01-08 20:15:02 +00:00
Ryan Hallisey
d2194febb5 Docker image and process cleaup tool
When running Docker, you can unknowingly use up a lot
of memory.  This tool will make it easier to clean up
Docker.

Change-Id: Icfd780f12b01956093a2933dd484cde1e2d6d5bc
2014-10-17 17:58:42 +00:00