- 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
The brace in string variable will not be expanded in some case.
Put conatiner name into array.
Change-Id: I2fb16e7352bd579f207efce0fb9b2565a1e7236d
Closes-Bug: #1502467
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
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
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
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
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