Missing volume on Cinder list

Bug #1348119 reported by Stanisław Tuszyński
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

Cinder did not show volume on list (`cinder list`) even if --all-tenants parameter given but still can show it by `cinder show`

Comands output: https://gist.github.com/stuszynski/0a5dbb7dbbbe91a11914

All commands performed as owner tenant.

OS_PASSWORD=<password>
OS_AUTH_URL=http://localhost:5000/v2.0/
OS_VERSION=1.1
OS_USERNAME=winnx
OS_TENANT_NAME=winnx

Volume record exist in cinder database (postgresql) and its status is not deleted.

DB dump for this volume: https://gist.github.com/stuszynski/f90a5317492ef9a85fda

Also volume still exist in ceph (our storage backend)

Can't reproduce error. It was spotted for 2 instances after node hard restart. Other instances and their volumes (~20) was fine after re-deploy.

cinder version 1.0.8
ceph version 0.72.2 (a913ded2ff138aefb8cb84d347d72164099cfd60)
Icehouse 2014.1

description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
John Griffith (john-griffith) wrote :

Marked as invaid for now, if you can reproduce it it would be really helpful to dump the DB info for the volume in question. Open back up if you see it again and we have some data to actually go off of.

Changed in cinder:
status: New → Invalid
Revision history for this message
Stanisław Tuszyński (stanislaw-tuszynski) wrote :

I posted DB dump for this volume in previous gist. Extracted it to another one for clearance.

https://gist.github.com/stuszynski/f90a5317492ef9a85fda

I can't reproduce it but still have this missing volume to play with.

description: updated
description: updated
Revision history for this message
Szymon (szymon-szypulski-1) wrote :

@john-griffith We've found another volume which doesn't show on cinder list, but it's present in database and cinder show <id> returns proper data. I've checked it with backups, this volume record haven't changed since creation.

Revision history for this message
Szymon (szymon-szypulski-1) wrote :

curl -i http://<host>:8776/v1/<id>/volumes/detail -X GET -H "X-Auth-Project-Id: <id>" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: <token>"

Return same flawed list. I've managed to extract SQL query which used during this api call (see attachement). It returns proper list of volumes, all which are we missing are there.

Changed in cinder:
status: Invalid → New
Revision history for this message
Szymon (szymon-szypulski-1) wrote :

I've found one common denominator for all missing volumes have attach_status = '' (empty) however status = 'in-use', but they are attached to running instances. Changing attach_status by hand doesn't help.

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Cleanup

Closing stale bug. If this is still an issue please reopen.

Changed in cinder:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.