Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Tear down your OpenStack lab environment

1. Overview

Before you get started!

Welcome to OpenStack!

In this series of tutorials, we will walk you through all the necessary steps to install, configure and get started with OpenStack. Using just your workstation, you will learn how to use OpenStack for cloud infrastructure implementation purposes, from a single-node installation to large-scale clusters.

This tutorial is the twelfth in the “Phase I - Single-node OpenStack on your workstation” series.

Explore other tutorials >

What is OpenStack?

OpenStack is a collection of open-source projects designed to work together to form the basis of a cloud. OpenStack can be used for both private and public cloud implementation.

What is Sunbeam?

Sunbeam is an OpenStack project created to set the foundation for zero-ops OpenStack. By using highly opinionated architecture and native Kubernetes principles, Sunbeam delivers distilled OpenStack excellence on top of K8s.

What is MicroStack?

MicroStack (based on Sunbeam) is an OpenStack flavour designed for small-scale cloud environments, edge deployments, testing and development, with full commercial support available from Canonical.

In this tutorial, you will learn how to:

  • Stop and start Sunbeam
  • Disable and enable Sunbeam
  • Uninstall Sunbeam

You will only need:

One fresh physical or virtual machine with:

2. Stop and Sunbeam

Sunbeam can be stopped when not being used and started when needed again.

To stop Sunbeam, execute the following commands:

$ sudo snap stop microk8s
$ sudo snap stop openstack-hypervisor

To start Sunbeam, execute the following command:

$ sudo snap start openstack-hypervisor
$ sudo snap start microk8s

3. Disable and enable Sunbeam

Sunbeam is set to start automatically on a reboot.

To disable Sunbeam, execute the following commands:

$ sudo snap disable microk8s
$ sudo snap disable openstack-hypervisor

To enable Sunbeam, execute the following command:

$ sudo snap enable microk8s
$ sudo snap enable openstack-hypervisor

4. Uninstall Sunbeam

In case you no longer need it, you can completely uninstall Sunbeam.

To uninstall Sunbeam, execute the following commands:

$ sudo snap remove --purge microk8s 
$ sudo snap remove --purge juju 
$ sudo snap remove --purge openstack
$ sudo snap remove --purge openstack-hypervisor
$ sudo /usr/sbin/remove-juju-services
$ sudo rm -rf /var/lib/juju
$ rm -rf ~/.local/share/juju
$ rm -rf ~/snap/openstack
$ rm -rf ~/snap/openstack-hypervisor
$ rm -rf ~/snap/microstack/
$ rm -rf ~/snap/juju/
$ rm -rf ~/snap/microk8s/
$ sudo init 6

5. Next steps