> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/solution/instance-unexpectedly-not-found.md).

# Instance Unexpectedly Not Found

## Problem

* Instance operations (start, stop, reboot, resize, etc.) are failing for an instance and it is in 'ERROR' state.
* Instance 'fault' field is populated with an error similar to the following.

{% tabs %}
{% tab title="None" %}

```none
$ openstack server show [UUID] -f value -c fault{u'message': u'Instance [UUID] could not be found on hypervisor.', u'code': 94043, u'created': u'2019-07-18T23:08:58Z'}
```

{% endtab %}
{% endtabs %}

* The hypervisor log shows that the instance is "unexpectedly not found".

\-- /var/log/pf9/ostackhost.log --

{% tabs %}
{% tab title="None" %}

```none
WARNING nova.compute.manager [-] While synchronizing instance power states, found 14 instances in the database and 13 instances on the hypervisor.WARNING nova.compute.manager [-] [instance: [UUID]] Instance is unexpectedly not found. Ignore.INFO nova.compute.manager [-] Instance [UUID] marked as not found.
```

{% endtab %}
{% endtabs %}

* The ephemeral disk file and XML metadata still exist on the instance storage path.

{% tabs %}
{% tab title="None" %}

```none
$ ll /pf9/instances/[UUID]/total 3468856-rw-r--r--. 1 pf9 pf9group       4614 Apr 27 01:50 cfg-[UUID].xml-rw-r--r--. 1 pf9 pf9group      29608 Apr 26 20:36 console.log-rw-r--r--. 1 pf9 pf9group 3552116736 Apr 26 20:36 disk-rw-r--r--. 1 pf9 pf9group         70 Mar 25 14:36 disk.info
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All Versions
* Nova

## Cause

The instance failed to boot previously.

## Resolution

1. Perform a hard-reboot of the instance to attempt to re-define the instance via Nova (CLI only).

{% tabs %}
{% tab title="None" %}

```none
$ openstack server reboot --hard [UUID]
```

{% endtab %}
{% endtabs %}

2. If a hard-reboot doesn't work to address the issue, re-define the instance manually on the hypervisor using the 'virsh' utility.

{% tabs %}
{% tab title="None" %}

```none
# virsh define /path/to/instances/[UUID]/cfg-[UUID].xml
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmo/solution/instance-unexpectedly-not-found.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
