From cabd7b21d429b59de5419a2af0ff83205357686d Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Tue, 25 Jan 2022 20:08:09 +0000 Subject: [PATCH] Add appendix to remove juju elements from infra machine --- docs/infra_nodes.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/infra_nodes.md b/docs/infra_nodes.md index 729d367..a028e61 100644 --- a/docs/infra_nodes.md +++ b/docs/infra_nodes.md @@ -23,3 +23,17 @@ Once the machines have been added, we can deploy the infra model cd config ./juju_deploy_infra.sh ``` + +# Appendix A + +In a scenario, that the controllers and the cloud is being re-provisioned, but these +physical machines are still here and a `juju kill-controller` may have run, then we +need to do some cleanup to be able to re-run the commands above to add the infra +model. + +```bash +for i in asrock01 asrock02 asrock03 +do + ssh $i -- sudo rm -rf /var/log/juju/ /var/lib/juju/ /etc/systemd/system/jujud-* +done +```