> 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/how-to/obtain-openstack-instances-boot-logs.md).

# Obtain OpenStack Instances Boot Logs

## Problem

Sometimes instances show as active according to the Compute service, but the console displays a boot error or the instance comes up without networking information. There will be scenarios when you are unable to ssh into your instances. At such times, you can access the boot time logs of the instance to inspect if the *cloud-init* script ran successfully and all the boot steps were completed successfully.

## Environment

* Platform9 Managed OpenStack - All Versions
* Python OpenStack Client

## Procedure

1. Copy the *rc* file from the ***Access & Security -> API access*** section in the Clarity UI.
2. Save the content to a file with a name of your choice and a *.rc* extension.
3. Edit the file to add your password.

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

```none
$ vi file_name.rcexport OS_PASSWORD=[YOUR_OPENSTACK_PASSWORD]
```

{% endtab %}
{% endtabs %}

4. Source the OpenStack CLI credentials.

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

```none
$ source [YOUR_RC_FILE_NAME]
```

{% endtab %}
{% endtabs %}

5. Note the UUID of the instance for which the logs are desired.
6. Dump the contents of the logs to a file of your choice.

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

```none
$ openstack console log show __Instance_UUID__ > new_file.txt
```

{% endtab %}
{% endtabs %}

7. View the logs with a text editor of your choice.

## Additional Information

* [How to Install and use the OpenStack CLI](https://docs.platform9.com/support/getting-started-with-the-openstack-command-line/)
* [Common OpenStack CLI commands](https://docs.openstack.org/python-openstackclient/pike/cli/command-list.html#command-list)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/how-to/obtain-openstack-instances-boot-logs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
