エラー
1 2 3 |
[root@controller01 ~(keystone)]# openstack volume delete 5276ad10-332d-4b75-b6ad-980a92437b0a Failed to delete volume with name or ID '5276ad10-332d-4b75-b6ad-980a92437b0a': 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, awaiting a transfer, or be disassociated from snapshots after volume transfer. (HTTP 400) (Request-ID: req-e8d21f9e-aee4-401f-aa40-ac922e6c5c91) 1 of 1 volumes failed to delete. |
以下コマンドで強制削除できる
1 2 3 4 5 |
cinder reset-state --state available 5276ad10-332d-4b75-b6ad-980a92437b0a cinder reset-state --reset-migration-status 5276ad10-332d-4b75-b6ad-980a92437b0a cinder reset-state --attach-status detached 5276ad10-332d-4b75-b6ad-980a92437b0a cinder delete 5276ad10-332d-4b75-b6ad-980a92437b0a openstack volume delete 5276ad10-332d-4b75-b6ad-980a92437b0a --force |
参考
https://platform9.com/kb/openstack/openstack-volume-deletion-fails