volume delete rejection message doesn't include awaiting-transfer state

Bug #1918932 reported by Eric Harney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Low
Tushar Trambak Gite

Bug Description

This volume can't be deleted because it's in "awaiting-transfer", the message sent back from the delete call indicates a handful of reasons but does not mention that one.

$ cinder show f91e84ba-2017-4e56-a7e2-e9d640ecbe2e
+------------------------------+--------------------------------------+
| Property | Value |
+------------------------------+--------------------------------------+
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-01-20T20:30:07.000000 |
| description | None |
| encrypted | False |
| id | f91e84ba-2017-4e56-a7e2-e9d640ecbe2e |
| metadata | |
| multiattach | False |
| name | None |
| os-vol-tenant-attr:tenant_id | 67cd89e0a35e43e2b8952eda350c3aa5 |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | awaiting-transfer |
| updated_at | 2020-01-20T20:30:30.000000 |
| user_id | 6b8dd33f92fc4e59aaf335b47ac656a2 |
| volume_type | nfs |
+------------------------------+--------------------------------------+

$ cinder delete f91e84ba-2017-4e56-a7e2-e9d640ecbe2e
Delete for volume f91e84ba-2017-4e56-a7e2-e9d640ecbe2e failed: Invalid volume: Volume status must be available or error or error_restoring or error_extending or error_managing and must not be migrating, attached, belong to a group, have snapshots or be disassociated from snapshots after volume transfer. (HTTP 400) (Request-ID: req-357a2eee-d46b-4b1d-bc3e-b463e3a2e4c7)
ERROR: Unable to delete any of the specified volumes.

tags: added: delete volume
Changed in cinder:
assignee: nobody → Tushar Trambak Gite (tushargite96)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/826608

Changed in cinder:
status: New → In Progress
tags: added: transfer
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/826608
Committed: https://opendev.org/openstack/cinder/commit/dc6388b6fd3d55490cb7b6b4bb5c1b52b9daf716
Submitter: "Zuul (22348)"
Branch: master

commit dc6388b6fd3d55490cb7b6b4bb5c1b52b9daf716
Author: tushargite96 <email address hidden>
Date: Thu Jan 27 12:57:52 2022 +0530

    Update volume delete api-ref

    This patch update volume delete section in api-ref
    to understand preconditions more correctly

    Partial-Bug: #1918932
    Change-Id: Icb5b4da3423555cd2ab0f5ee6d1dc881fc782484

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.