How to recover an VIO instance stuck in error / deleting status
search cancel

How to recover an VIO instance stuck in error / deleting status

book

Article ID: 383782

calendar_today

Updated On:

Products

VMware Integrated OpenStack

Issue/Introduction

The status of an instance shows as "ERROR" or stuck in an intermediate state after any failed operation on the instance. 

openstack server show <Server Name>.

 

+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                       | Value                                                                                                                                                                                                                   |
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig           | AUTO                                                                                                                                                                                                                    |
| OS-EXT-AZ:availability_zone | ##########                                                                                                                                                                                                             |
| OS-EXT-STS:power_state      | Shutdown                                                                                                                                                                                                                |
| OS-EXT-STS:task_state       | None                                                                                                                                                                                                                    |
| OS-EXT-STS:vm_state         | error                                                                                                                                                                                                                   |
| OS-SRV-USG:launched_at      | 2022-08-11T10:38:37.000000                                                                                                                                                                                              |
| OS-SRV-USG:terminated_at    | None                                                                                                                                                                                                                    |
| accessIPv4                  |                                                                                                                                                                                                                         |
| accessIPv6                  |                                                                                                                                                                                                                         |
| addresses                   | ##########
| config_drive                | True                                                                                                                                                                                                                    |
| created                     | 2022-07-11T09:40:09Z                                                                                                                                                                                                    |
| fault                       | {'code': 400, 'created': '2024-11-26T04:33:27Z', 'message': 'Unavailable console type serial.'}                                                                                                                         |
| flavor                      | custom                                                                                                                                                                                     |
| hostId                      | #############################################                                                                                                                                                             |
| id                          |  ##############################################                                                                                                                                                          |
| image                       | RHEL                                                                                                                                                           |
| key_name                    | #######                                                                                                                                                                                                            |
| name                        | "Instance name"                                                                                                                                                                                                    |
| project_id                  | Project name                                                                                                                                                                                      |
| properties                  |                                                                                                                                                                                                                         |
| status                      | ERROR                                                                                                                                                                                                                   |
| updated                     | 2024-11-26T04:32:06Z                                                                                                                                                                                                    |
| user_id                     |  ###########################################                                                                                                                                                        |
|                                                                                                                                                                                |
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Environment

VMware Integrated Openstack 6.x,7.x

Cause

There are multiple reasons for an instance getting stuck in an intermediate state of ERROR or Deleting. 

Resolution

Use the nova reset-state command to manually reset the state of an instance.

nova reset-state --active <instance ID>

If you are trying to delete the instance, set the instance to ERROR state and then delete the instance. 

 nova reset-state<instance ID>
openstack server delete <Instance ID>