Skip to content
Snippets Groups Projects
Commit 086eb5fb authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Cleanup container script improvement"

parents ce23dbe1 d5fe8a30
No related branches found
No related tags found
No related merge requests found
---
- name: Destroying all Kolla containers and volumes
- name: Destroying all Kolla containers and volumes on compute node
environment:
COMPUTE: true
command: /tmp/kolla-cleanup/tools/cleanup-containers
when: inventory_hostname in groups['compute']
- name: Destroying all Kolla containers and volumes on non compute node
command: /tmp/kolla-cleanup/tools/cleanup-containers
when: inventory_hostname not in groups['compute']
#!/bin/bash
if [[ $(pgrep qemu) ]]; then
if [[ $COMPUTE ]] && [[ $(pgrep qemu) ]]; then
echo "Some qemu processes were detected."
echo "Docker will not be able to stop the nova_libvirt container with those running."
echo "Please clean them up before rerunning this script."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment