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

[openstack-admin]-[[email protected]_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]-[[email protected]_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]-[[email protected]_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]-[[email protected]_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]-[[email protected]_Node-172_17_5_12 /data]# cinder reset-state --attach-status detached 11490c0c-3bf5-46ae-ac3f-0efa8823bf96
[openstack-admin]-[[email protected]_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]-[[email protected]_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]-[[email protected]_Node-172_17_5_12 /data]# cinder list
+----+--------+------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+----+--------+------+------+-------------+----------+-------------+
+----+--------+------+------+-------------+----------+-------------+
[openstack-admin]-[[email protected]_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.

  • 本文由 发表于 2018年10月8日11:19:58
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友 填写信息

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