It seems to me that there is too much information on one page, I have divided it into several pages for easier reading, as was already done on the pages: https://docs.openstack.org/openstack-ansible/latest/admin/openstack-firstrun.html https://docs.openstack.org/openstack-ansible/latest/admin/openstack-firstrun.html https://docs.openstack.org/openstack-ansible/latest/admin/maintenance-tasks.html Change-Id: Ic58e0c764f21c377b72e7229d1c053864b601785
1.3 KiB
1.3 KiB
Destroying containers
To destroy a container, execute the following:
# openstack-ansible openstack.osa.containers_lxc_destroy --limit localhost,<container name|container group>Note
You will be asked two questions:
Are you sure you want to destroy the LXC containers? Are you sure you want to destroy the LXC container data?
The first will just remove the container but leave the data in the bind mounts and logs. The second will remove the data in the bind mounts and logs too.
Warning
If you remove the containers and data for the entire galera_server container group you will lose all your databases! Also, if you destroy the first container in many host groups you will lose other important items like certificates, keys, etc. Be sure that you understand what you're doing when using this tool.
To create the containers again, execute the following:
# cd /opt/openstack-ansible/playbooks # openstack-ansible openstack.osa.containers_lxc_create --limit localhost,lxc_hosts,<container name|container group> The lxc_hosts host group must be included as the playbook and roles executed require the use of facts from the hosts.