Added uninstall information

This patch set adds additional instruction to clean and reset a
development environment.

Change-Id: Ifd45b1caebe54c991885773fa23e7a5249fb5465
This commit is contained in:
Gabe Maurer 2017-12-12 12:50:46 -06:00
parent f4c8431059
commit 9eff96fec8

View File

@ -29,16 +29,34 @@ follows:
Environment tear-down Environment tear-down
===================== =====================
To tear-down, the development environment charts should be removed firstly from To tear-down, the development environment charts should be removed first from
the 'openstack' namespace and then the 'ceph' namespace using the commands from the 'openstack' namespace and then the 'ceph' namespace using the commands from
the `Removing Helm Charts`_ section. Once this has been done the namespaces the `Removing Helm Charts` section. You can run the following commands to
themselves can be cleaned by running: loop through and delete the charts, then stop the kubelet systemd unit and
remove all the containers before removing the ``/var/lib/openstack-helm``
and ``/var/lib/nova`` directory from the host.
.. code-block:: shell .. code-block:: shell
kubectl delete namespace <namespace_name> for NS in openstack ceph; do
helm ls --namespace $NS --short | xargs -L1 -P16 helm delete --purge
done
Final cleanup of the development environment is then performed by removing the kubectl delete namespace openstack
``/var/lib/openstack-helm`` directory from the host. This will restore the
environment back to a clean Kubernetes deployment, that can either be manually kubectl delete namespace ceph
removed or over-written by restarting the deployment process.
sudo systemctl disable kubelet --now
sudo systemctl stop kubelet
sudo docker ps -aq | xargs -L1 -P16 sudo docker rm -f
sudo rm -rf /var/lib/openstack-helm
sudo rm -rf /var/lib/nova
These commands will restore the environment back to a clean Kubernetes
deployment, that can either be manually removed or over-written by
restarting the deployment process.