Prevent Ceph containers delete in leapfrog
During leapfrog all containers are deleted, and ceph containers are no exception. This adds exceptions into the process: - One on the generic container delete; - One on the Juno container delete of any remnant container. Change-Id: I34812f4472594998f3e40b4a5cb650e396a80421
This commit is contained in:
parent
38dbe804a9
commit
fea4cfd7ec
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Destroy lxc containers except galera
|
||||
hosts: "all_containers:!galera_all:!neutron_agent"
|
||||
hosts: "all_containers:!galera_all:!neutron_agent:!ceph_all"
|
||||
gather_facts: false
|
||||
user: root
|
||||
tasks:
|
||||
@ -78,5 +78,5 @@
|
||||
command: apt-get update
|
||||
- name: Search for and destroy reminent RPC grouped containers
|
||||
shell: >-
|
||||
lxc-ls -f | awk '/rpc/ {print $1}' | grep -v "neutron_agent" | xargs -n 1 lxc-destroy -fn
|
||||
lxc-ls -f | awk '/rpc/ {print $1}' | grep -v -e "neutron_agent" -e "ceph" | xargs -n 1 lxc-destroy -fn
|
||||
failed_when: false
|
||||
|
Loading…
Reference in New Issue
Block a user