cinder shows wrong device name for attached volume

Bug #1217874 reported by Isaac Hailperin
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Wishlist
Unassigned

Bug Description

Using grizzly on centos 6.4, attached volumes are shown with wrong device names in cinder. E.g. I have this volume wich I attach, cinder tells me its attached as /dev/vdb:
 | attachments | [{u'device': u'/dev/vdb', u'server_id': u'3318b373-8792-4109-b65c-ee138dcd525f', u'id': u'c424719d-1031-4e29-8086-8a62b385d99a', u'volume_id': u'c424719d-1031-4e29-8086-8a62b385d99a'}] |

 but on the machine (ubuntu 12.04 cloud image) the device is /dev/vdc:

root@u15:~# cat /proc/partitions
major minor #blocks name

 253 0 2097152 vda
 253 1 2088450 vda1
 253 16 400 vdb

-> attaching volume to instance:
root@u15:~# cat /proc/partitions
major minor #blocks name

 253 0 2097152 vda
 253 1 2088450 vda1
 253 16 400 vdb
 253 32 1048576 vdc
 253 33 1047552 vdc1

Maybe this is not cinders fault, as it the volume seems to be the second attached storage device? could be due to ubuntus image, but still, the device name is wrong.

Tags: volumes
Revision history for this message
John Griffith (john-griffith) wrote :

So this comes up a fair bit the post from the mail list [1] describes it pretty well.

This is more of an issue with how the hypervisors perform the mount than anything else.

http://lists.openstack.org/pipermail/openstack-dev/2013-April/007208.html

Changed in cinder:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Isaac Hailperin (isaac-hailperin) wrote :

I see.
Thanks for looking into this.

My humble suggestion would be to remove the device name from cinder, since it seems not possible to reliably predict the device name in the guest os.

Revision history for this message
Andres Buraschi (andres-buraschi) wrote :

Would you think that adding a comment in horizon and a warning when invoking the CLI is a valid first step to address this issue? This leads at least to check the attached device name instead of trusting the given name...

Revision history for this message
Isaac Hailperin (isaac-hailperin) wrote :

I think that would help.

Changed in cinder:
assignee: nobody → Verónica Musso (veronica-a-musso)
Revision history for this message
Andres Buraschi (andres-buraschi) wrote :
Revision history for this message
Verónica Musso (veronica-a-musso) wrote :

Partial fix for Horizon approved: https://review.openstack.org/#/c/60261/
Partial fix for Nova waiting for approval: https://review.openstack.org/#/c/60257/

affects: cinder → nova
Changed in nova:
status: Confirmed → In Progress
Matt Riedemann (mriedem)
Changed in nova:
status: In Progress → New
Tracy Jones (tjones-i)
tags: added: volumes
Andrew Laski (alaski)
Changed in nova:
status: New → Confirmed
Changed in nova:
assignee: Verónica Musso (veronica-a-musso) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

This is not fixable for libvirt.

Changed in nova:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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