# Determine Volume Attachment With OpenStack CLI

## Problem

Sometimes the Instance column in the Volumes and Tenants tab is blank despite the volume being attached to an instance.

## Environment

* Platform9 Managed OpenStack - v3.6.0 and Higher
* OpenStack CLI Client

## Procedure

1. Source your RC file.

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

```none
$ source [file_name.rc]
```

{% endtab %}
{% endtabs %}

2. View the volume using the following command.

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

```none
$ openstack volume show [__volume_uuid__]
```

{% endtab %}
{% endtabs %}

3. Check the ***server\_id*** in the attachments section of the above output.

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

```none
| attachments                    | [{u'server_id': u'd01e7ae1-72d2-41a4-9d6e-315da123456b', u'attachment_id': u'324b2efc-35bd-47a2-8603-a7019a4f920a', u'attached_at': u'2019-05-07T17:56:19.000000', u'host_name': None,            |
```

{% endtab %}
{% endtabs %}

4. Get the details of the instance using the following command.

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

```none
$ openstack server show [__server_id__]
```

{% endtab %}
{% endtabs %}

## Additional Information

1. [Installing the OpenStack CLI.](https://docs.platform9.com/support/getting-started-with-the-openstack-command-line/)
2. [Commonly used CLI commands.](https://docs.openstack.org/python-openstackclient/pike/cli/command-list.html#command-list)
