Uninstall OpenStack

This section provides commands for uninstalling and deleting the StarlingX OpenStack application.

Warning

Uninstalling the OpenStack application will terminate all OpenStack services.

Remove all OpenStack resources

In order to ensure that all resources are properly released, use the OpenStack CLI to remove all resources created in the OpenStack environment. This includes:

  • Terminating/Deleting all servers/instances/VMs

  • Removing all volumes, volume backups, volume snapshots

  • Removing all Glance images

Note

When OpenStack is removed (system application-remove stx-openstack) while a guest Virtual Machine (OpenStack VM) is still running in one of the compute nodes, further application re-applies (system application-apply stx-openstack) may fail.

If the application fails to re-apply due to VMs orphaned from the previous application, before re-applying the OpenStack application, it is necessary to ssh into the specific compute node that is presenting the issue (same node where the OpenStack VM was left behind) and manually delete the remaining OpenStack VM using the virsh CLI. For example:

$ ssh compute-2
$ sudo virsh list --all # Identify and copy the name of the remaining OpenStack VM
$ sudo virsh undefine <instance-name> # Remove the VM

Bring down OpenStack services

Use the system CLI to uninstall the OpenStack application:

system application-remove stx-openstack
system application-list

Delete OpenStack application definition

Use the system CLI to delete the OpenStack application definition:

system application-delete stx-openstack
system application-list