VM resize fails with error "Invalid volume: Volume <volume_id> status must be available or downloading to reserve, but the current status is attaching"

Problem

  • VM reize fails with error below:

2023-01-11 23:56:57.602 ERROR nova.compute.manager [req-ee4a9f46-xxxx-4dfd-xxxx-3eb2f8e59329 Enrique Nieto Jira-Confluence] [instance: a69ee161-xxxx-xxxx-xxxx-xxxxxx] Set
ting instance vm_state to ERROR: nova.exception.InvalidInput: Invalid input received: Invalid volume: Volume b4aee31d-xxxx-xxxx-xxxx-2a1cbd1cae9b status must be available or do
wnloading to reserve, but the current status is attaching. (HTTP 400) (Request-ID: req-b5db192e-8b78-xxxx-a742-434fa02936fb)

Environment

  • Platform9 Managed OpenStack - v5.4.0 and Higher

Cause

  • The status of volume is attaching :

# openstack volume show b4aee31d-xxxx-xxxx-xxxx-2a1cbd1cae9b --fit|grep status
| status                         | attaching                                                           |

Resolution

Set the volume status to available if there is no task pending related to the volume:

# openstack volume set --state available b4aee31d-xxxx-xxxx-xxxx-2a1cbd1cae9b

Last updated