Removing the primary node refers to the removal of the initial (bootstrap) node.
Warning: Removing the primary node will destroy the entire MicroStack deployment.
If the deployment consists of multiple nodes then remove all non-primary nodes before removing the primary node. See page Scaling down the cluster for instructions on doing that.
Software components need to removed from the node. Perform all the below steps on the primary node.
Remove the Juju model:
juju destroy-model --destroy-storage --no-prompt --force --no-wait openstack
Remove the Juju controller:
juju destroy-controller --no-prompt --destroy-storage --force --no-wait sunbeam-controller
Remove the Juju agent:
Remove the juju snap:
sudo snap remove juju
Remove Juju configuration:
rm -rf ~/.local/share/juju
Remove the openstack-hypervisor and openstack snaps:
sudo snap remove openstack-hypervisor sudo snap remove openstack
Remove microk8s snap:
sudo microk8s leave sudo snap remove microk8s
The above steps can take a few minutes to complete.
Remove the microceph snap:
sudo microceph disk list sudo snap remove microceph
If required clean the disk(s) identified in the earlier command:
sudo dd if=/dev/zero of=<DISK PATH> bs=4M count=10
dd command will result in the permanent erasure of data. It is vital that you have specified the correct disk path to avoid unintended data loss.
Clear the remaining network configuration with a reboot: