OpenStack删除卷提示Volume must not be migrating, attached, belong to a group, have snapshots or be disassociated from snapshots after volume transfer.

  • A+
所属分类:OpenStack  虚拟化/私有云
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# openstack volume list
+--------------------------------------+------------------------------------------------+-----------+------+---------------------------------------------------------------+
| ID                                   | Name                                           | Status    | Size | Attached to                                                   |
+--------------------------------------+------------------------------------------------+-----------+------+---------------------------------------------------------------+
| dd01c8c5-c1ab-45ec-b09c-837b597d0e4f | 1bd47be3-579c-41c9-8c1c-62e2c3c2d9aa-blank-vol | available |  100 |                                                               |
| 69c91155-9063-42a7-921c-237b8122207c |                                                | available |   20 |                                                               |
| 11490c0c-3bf5-46ae-ac3f-0efa8823bf96 |                                                | available |   20 | Attached to 6b07fd02-fda0-42d1-b870-25b0be2b9dbd on /dev/vda  |
+--------------------------------------+------------------------------------------------+-----------+------+---------------------------------------------------------------+
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# openstack volume delete --force dd01c8c5-c1ab-45ec-b09c-837b597d0e4f  69c91155-9063-42a7-921c-237b8122207c 11490c0c-3bf5-46ae-ac3f-0efa8823bf96
Failed to delete volume with name or ID '11490c0c-3bf5-46ae-ac3f-0efa8823bf96': 卷无效:  Volume  must not be migrating, attached, belong to a group, have snapshots or be disassociated from snapshots after volume transfer. (HTTP 400) (Request-ID: req-6ee1d3da-66d3-43c5-8966-475fca366485)
1 of 3 volumes failed to delete.
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# 

OpenStack删除卷提示Volume  must not be migrating, attached, belong to a group, have snapshots or be disassociated from snapshots after volume transfer.

[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# cinder list
+--------------------------------------+-----------+------+------+-------------+----------+--------------------------------------+
| ID                                   | Status    | Name | Size | Volume Type | Bootable | Attached to                          |
+--------------------------------------+-----------+------+------+-------------+----------+--------------------------------------+
| 11490c0c-3bf5-46ae-ac3f-0efa8823bf96 | available |      | 20   | -           | true     | 6b07fd02-fda0-42d1-b870-25b0be2b9dbd |
+--------------------------------------+-----------+------+------+-------------+----------+--------------------------------------+
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# cinder reset-state --attach-status detached 11490c0c-3bf5-46ae-ac3f-0efa8823bf96
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# cinder list
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| ID                                   | Status    | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| 11490c0c-3bf5-46ae-ac3f-0efa8823bf96 | available |      | 20   | -           | true     |             |
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# cinder delete 11490c0c-3bf5-46ae-ac3f-0efa8823bf96
Request to delete volume 11490c0c-3bf5-46ae-ac3f-0efa8823bf96 has been accepted.
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]# cinder list
+----+--------+------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+----+--------+------+------+-------------+----------+-------------+
+----+--------+------+------+-------------+----------+-------------+
[openstack-admin]-[root@DT_Node-172_17_5_12 /data]#  

OpenStack删除卷提示Volume  must not be migrating, attached, belong to a group, have snapshots or be disassociated from snapshots after volume transfer.

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: