Stop and destroy¶
Impact Critical
Lumo: pause here
This page covers an operation rated Critical in the risk register. Read its risks before you run anything, and try it on a test platform first.
The command lines of kolla-ansible stop and kolla-ansible destroy, which the study files under "dangerous". What
each one stops or removes is described in the sections listed under Related.
Caution
The risk register rates both commands Critical: kolla-ansible stop (R15) and
kolla-ansible destroy (R16). For destroy, the precaution of R16 is "Never on
production; there is no --limit safety net beyond what you pass".
kolla-ansible -i multinode stop --yes-i-really-really-mean-it -t heat --limit control03
kolla-ansible -i multinode destroy --yes-i-really-really-mean-it # never on production
- Both refuse to run without
--yes-i-really-really-mean-itCODE (kolla-ansibletools/kolla-ansible:452-470, :519-531).stoprunssite.ymlwithkolla_action=stop, so-tand--limitnarrow it;destroyrunsdestroy.yml(kolla-ansibletools/kolla-ansible:280, :454, :521). stophonoursskip_stop_containers(e.g.-e '{"skip_stop_containers": ["nova_libvirt"]}') CODE (roles/service-stop/tasks/main.yml:10-12, default[]ingroup_vars/all.yml:784).destroyalso removes the images with--include-images(orenable_destroy_images: yes, defaultno), and the dev-mode repositories underkolla_dev_repos_directorywith--include-devCODE (kolla-ansibletools/kolla-ansible:455-460;roles/destroy/defaults/main.yml:2-3,group_vars/all.yml:775,roles/destroy/tasks/cleanup_images.yml:5; kolla-ansibletools/cleanup-host:92-95).
Related¶
- R15 —
kolla-ansible stop: it stops all Kolla containers on the targeted hosts, and MariaDB then needsmariadb_recovery - R16 —
kolla-ansible destroy: what it removes on the targeted hosts, the deploy host included - Fact sheet E
§6
—
destroyin detail:destroy.yml, thedestroyrole and thetools/cleanup-*scripts - Fact sheet E §11 — the
confirmation guard
--yes-i-really-really-mean-it - Execution flow §4 — the row
stopof the action matrix - Fact sheet B
§1.8 —
item 4: after
stop, the next deploy or reconfigure fails untilmariadb_recoveryis run - Database operations — the
mariadb_recoverycommand