Ask Your Question

Cinder volume cant attach or detach

asked 2014-08-01 04:37:32 -0500

RichyHBM gravatar image

After a power failure of the host machine, the openstack cinder volumes have entered a state in which they can not be attached nor detached.

~$ nova volume-attach ### ###
ERROR: Invalid volume: already attached (HTTP 400) (Request-ID: req-###)
~$ nova volume-detach ### ###
ERROR: Invalid volume: already detached (HTTP 400) (Request-ID: req-###)

The status of the volume its self is listed as attached

cinder list
|  ID |   Status  |     Display Name    | Size | Volume Type | Bootable | Attached to |
| ### | available |     volume-data     | 690  |   Storage   |  false   |     ###     |

The volume is not found on the instance even though its listed as attached in the cli and in horizon (the device isnt found in /dev/ nor the mount point in /mnt/)

Trying to make a backup of the volume incase we just have to force delete it gives the following:

cinder backup-create ###
ERROR: Service cinder-backup could not be found. (HTTP 500) (Request-ID: req-###)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-01 08:10:43 -0500

RichyHBM gravatar image

After lots of trial and error, I managed to find the location that cinder was storing all its volume data, I thought it had been configured to use mysql but this isnt the case. It was using an sqlite file which I had to manually edit in order make the system think the volume was detached. Once done I could then re-attach the volume to the instance

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-08-01 04:37:32 -0500

Seen: 4,747 times

Last updated: Aug 01 '14