Volume fails to detach

Solution Unverified - Updated -

Issue

  • nova volume-detach <server> <volume> returns with an error of volume is already detached.

  • nova volume-attach <server> <volume> <device> returns with /dev/vdb is already in use.

[root@lpdcldiuctl01 ~(openstack_admin)]# nova volume-detach e5b63834-a805-4ccc-a6be-0f1e24917b2f c25bb63e-50d0-4a48-8895-4c599a50caae
ERROR: Invalid volume: already detached (HTTP 400) (Request-ID: req-80a1b333-6c6b-43d6-988a-35f11366074b)
[root@lpdcldiuctl01 ~(openstack_admin)]# nova volume-attach e5b63834-a805-4ccc-a6be-0f1e24917b2f c25bb63e-50d0-4a48-8895-4c599a50caae /dev/vdb
ERROR: The supplied device path (/dev/vdb) is in use. (HTTP 409) (Request-ID: req-8711ea85-5115-467f-8304-0fd65afb21cc)
  • The instance shows both volumes attached and the the volume itself shows as attached

+------------------+------------------------------------+----------+----------+-------+----------------------------+-----------------+ [root@lpdcldiuctl01 ~(openstack_admin)]# nova show LPQCLDUT00143 +--------------------------------------+--------------------------------------------------------------------------------------------------+ | Property | Value | +--------------------------------------+--------------------------------------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | host.example.com | | OS-EXT-SRV-ATTR:hypervisor_hostname | host.example.com | | OS-EXT-SRV-ATTR:instance_name | instance-0001221c | | OS-EXT-STS:power_state | 4 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | stopped | | OS-SRV-USG:launched_at | 2015-04-08T17:44:06.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2015-04-08T17:44:03Z | | flavor | 4x16 (f75330bf-2f26-4728-9ef4-eaf8508e9d24) | | hostId | 4d441537facae8ead7fc51eecb3d3b8743b9a040df7bc3e03d3ab4c2 | | id | e5b63834-a805-4ccc-a6be-0f1e24917b2f | | image | Attempt to boot from volume - no image supplied | | key_name | - | | metadata | {} | | name | LPQCLDUT00143 | | os-extended-volumes:volumes_attached | [{"id": "e2546451-2c05-43c5-aeb5-3fa5ed791a9c"}, {"id": "c25bb63e-50d0-4a48-8895-4c599a50caae"}] | | qa_app_2202_intranet_ipc1_1 network | 10.16.141.185 | | security_groups | default | | status | SHUTOFF | | tenant_id | e07cc4ae77dc4ac48ffffbbede98dbe7 | | updated | 2015-06-15T21:46:30Z | | user_id | b69398f579d64121b057c36764b3d315 | +--------------------------------------+--------------------------------------------------------------------------------------------------+ [root@lpdcldiuctl01 ~(openstack_admin)]# cinder show c25bb63e-50d0-4a48-8895-4c599a50caae +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Property | Value | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | attachments | [{u'device': u'/dev/vdb', u'server_id': u'e5b63834-a805-4ccc-a6be-0f1e24917b2f', u'id': u'c25bb63e-50d0-4a48-8895-4c599a50caae', u'host_name': None, u'volume_id': u'c25bb63e-50d0-4a48-8895-4c599a50caae'}] | | availability_zone | nova | | bootable | false | | created_at | 2015-04-08T17:41:44.000000 | | display_description | None | | display_name | LPQCLDUT00143 | | encrypted | False | | id | c25bb63e-50d0-4a48-8895-4c599a50caae | | metadata | {u'readonly': u'False', u'backup': u'DAILY_SNAPSHOT_MIGRATION', u'attached_mode': u'rw'} | | os-vol-host-attr:host | ha-controller@backend_netapp1 | | os-vol-mig-status-attr:migstat | None | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | e07cc4ae77dc4ac48ffffbbede98dbe7 | | size | 50 | | snapshot_id | None | | source_volid | None | | status | available | | volume_type | None | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Environment

  • Red Hat Open Stack

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In