For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

$ source [file_name.rc]
  1. View the volume using the following command.

$ openstack volume show [__volume_uuid__]
  1. Check the server_id in the attachments section of the above output.

| 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,            |
  1. Get the details of the instance using the following command.

$ openstack server show [__server_id__]

Additional Information

Last updated