Improve message of the teardown.sh

Currently the teardown doesn't care about destroy other lxc
containers and destroys everything.
Same for logical volumes in the lxc volume group.

This tweaks the message to make it more clear.

Closes-Bug: #1518492

Change-Id: If8bbd9c8b6cea4d18ad982ee676e0480a88a1a4e
This commit is contained in:
Jean-Philippe Evrard 2015-11-24 17:57:27 +01:00 committed by Jesse Pretorius
parent 30963fe490
commit 96b33d6d1c

View File

@ -23,14 +23,20 @@ info_block "Checking for required libraries." 2> /dev/null || source $(dirname $
## Confirmation -------------------------------------------------------------
cat <<EOF
-----------------------------------------------------------------------------
WARNING: This is a destructive action. All containers will be destroyed and
all data within the containers will be removed. Some data will be
removed from the host as well. /etc/openstack_deploy will be preserved
and may be manually removed if needed.
WARNING: This is a destructive action.
All containers will be destroyed as well as the data within the
containers (even if the containers are added by users and not by
AIO). Data will be removed from the host as well (e.g. files, apt
packages and pip packages). Please check this script for information
about the data to be removed in removed_(files/packages/pip-packages).
/etc/openstack_deploy will be preserved and may be manually removed
if needed.
ALL the data stored in the lvm volume group called "lxc" WILL BE
DELETED as well (even if volumes are created by users and not AIO).
Please verify that you have backed up all important data prior to
proceeding with the teardown script.
-----------------------------------------------------------------------------
To REALLY destroy all containers and delete the data within them,
To REALLY destroy all containers and delete all data mentioned above,
type 'Y' or 'y' and press enter:
EOF