Unable To Add a Multi-Attach Volume To the Instance Using PMO UI

Problem

  • Failed to add a Multi-attach volume to an Instance with below mentioned error.

# openstack server add volume d1df70bb-1780-66e4-8c5e-55033c0bc072 da9f3098-1ea8-6647-9980-bb69b74dd1af
Multiattach volumes are only supported starting with compute API version 2.60. (HTTP 400) (Request-ID: req-a6XXXX-XXXX-XXXX-XXXX-XXXXXXXXccd)

Environment

  • Platform9 Managed OpenStack

Cause

  • The compute API versions prior to v2.60 does not support multi-attach volumes.

Resolution

  • Forcefully setting compute-api version using --os-compute-api-version to v2.60 helps to resolve this issue and add the volume to the instance.

# openstack --os-compute-api-version 2.60 server add volume b1bf70aa-8710-46f6-8c5e-23350c0cb072 da5f3098-4ea4-4766-9809-dd96b74dd1af

# openstack server show b1bf70aa-8710-46f6-8c5e-23350c0cb072 -cid -cvolumes_attached
+------------------+-------------------------------------------+
| Field            | Value                                     |
+------------------+-------------------------------------------+
| id               | b1bf70aa-8710-46f6-8c5e-23350c0cb072      |
| volumes_attached | id='12d7dd64-2a3f-442f-b45d-7348272c1329' |
|                  | id='da5f3098-4ea4-4766-9809-dd96b74dd1af' |
+------------------+-------------------------------------------+

Additional Information

  • Adding multi-attach volumes to the VM instance through PMO UI fails because the compute api version used there is v2.1 and hence multi-attach volumes can be added to the VM instances only through CLI

Last updated