# OpenShift 4 installer on OpenStack troubleshooting
Unfortunately, there will always be some cases where OpenShift fails to install properly. In these events, it is helpful to understand the likely failure modes as well as how to troubleshoot the failure.
This document discusses some troubleshooting options for OpenStack based
deployments. For general tips on troubleshooting the installer, see the [Installer Troubleshooting](../troubleshooting.md) guide.
This could be because the machine's instance was accidentally destroyed and the cluster API provider cannot recreate it.
You can check the status of machines with the help of the command
```sh
oc get machines -n openshift-machine-api
```
If the broken machine is a master then follow the instructions in the [disaster recovery documentation](https://docs.openshift.com/container-platform/4.1/disaster_recovery/scenario-1-infra-recovery.html).
For workers, you should delete the machine manually with
The operation can take up to 5 minutes, during which time the machine will be gracefully removed and all its resources returned to the pool.
A new worker machine for the cluster will soon be created automatically by the [machine-api-operator](https://github.com/openshift/machine-api-operator).
## Cluster destruction if its metadata has been lost
When deploying a cluster, the installer generates metadata in the asset directory that is then used to destroy the cluster. If the metadata were accidentally deleted, the destruction of the cluster terminates with an error
```txt
FATAL Failed while preparing to destroy cluster: open clustername/metadata.json: no such file or directory
```
To avoid this error and successfully destroy the cluster, you need to restore the `metadata.json` file in a temporary asset directory. To do this, you only need to know ID of the cluster you want to destroy.
First, you need to create a temporary directory where the `metadata.json` file will be located. The name and location can be anything, but to avoid possible conflicts, we recommend using `mktemp` command.