删除卷:
在openstack中创建一个卷后,如果把卷连接到一个虚拟机上,删除虚拟机后,卷还存在,horizon界面上显示 “连接到none作为/dev/vda”。这时在horizon界面上无法删除该卷。
执行命令 :
openstack volume delete <volume>
提示:
Failed to delete volume with name or ID <volume>: 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-8bfd9a27-ab41-4fa6-adc1-032a9ddadb26)