nova volumes are inappropriately clingy for ceph and similar drivers

Bug #1028718 reported by Paul Collins
38
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Wishlist
Unassigned
nova (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I've been doing a little work with nova-volume and ceph/RBD. In order to gain some fault-tolerance, I plan to run a nova-volume on each compute node. However, a problem arises, because a given nova-volume host only wants to deal with requests for volumes that it created.

This makes perfect sense in a world where nova-volume hosts create volumes in LVM and export them over iSCSI. It makes less sense in a Ceph world, since the volumes live in the ceph cluster, and their metadata live in the nova database. But if the wrong nova-volume goes away, some of my volumes become arbitrarily unusable.

I've hit upon a workaround that seems to work so far, although I'm not sure if it's supposed to. I am running each nova-volume on the various hosts with an identical --host flag. When running in this setup, rapid volume creation, deletion and attachment requests are splayed nicely across the nova-volume instances.

(A less brutal hack might be to teach nova-volume to call into the volume driver to check if it has its own notion of what the host flag ought to be -- the RBD driver, for example, could construct a string such as "ceph:67670443-07ad-4ce3-bdb8-75e9a14562f9:rbd" by probing the Ceph cluster for its fsid, which ought to be unique, and then appending the name of the RADOS pool in which it is creating RBDs.)

Tags: ceph drivers
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Paul. You might be interested to hear about Cinder, which is meant to be a better volume management tool. Ceph's developers feel that the approach being taken in Cinder will work better for ceph backed volumes.

This sounds like a legitmate issue with nova-volume, and since the bug has effectively been forwarded upstream, I'm going to mark this bug in Ubuntu as Triaged with a Medium importance. I'm also adding a task for cinder so the developers can assess whether this is solved or even a duplicate of something they're already working on.

Changed in nova (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in cinder:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Dave Spano (dspano) wrote :

Thank you Clint. I'm using ceph also, and was interested in a solution to this problem as well.

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Triaged
tags: added: volume
Revision history for this message
John Griffith (john-griffith) wrote :

This currently is by design, your case of an HA solution makes sense and it would be a good add (especially with external storage devices such as Ceph). If there was an "feature request" category this would be a perfect candidate, but alas :(

I'll see about getting a blue-print to address this.

Changed in cinder:
status: Triaged → Invalid
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 1028718] Re: nova volumes are inappropriately clingy for ceph

Excerpts from John Griffith's message of 2013-01-08 06:39:20 UTC:
> This currently is by design, your case of an HA solution makes sense and
> it would be a good add (especially with external storage devices such as
> Ceph). If there was an "feature request" category this would be a
> perfect candidate, but alas :(
>
> I'll see about getting a blue-print to address this.
>
> ** Changed in: cinder
> Status: Triaged => Invalid
>

Wouldn't Triaged + Wishlist be "feature requests" ?

Revision history for this message
John Griffith (john-griffith) wrote : Re: nova volumes are inappropriately clingy for ceph

Yes, thanks Clint.

Changed in cinder:
status: Invalid → Triaged
importance: Low → Wishlist
Sam Morrison (sorrison)
summary: - nova volumes are inappropriately clingy for ceph
+ nova volumes are inappropriately clingy for ceph and similar drivers
Revision history for this message
Michael Still (mikal) wrote :

nova-volumes is gone now, so this is just a cinder bug.

no longer affects: nova
Changed in nova (Ubuntu):
status: Triaged → Invalid
tags: added: ceph rbd
Mike Perez (thingee)
tags: added: drivers
removed: canonistack rbd volume
Revision history for this message
Jon Bernard (jbernard) wrote :

This is very similar to bug https://bugs.launchpad.net/cinder/+bug/1280367

A patch to allow backend hostname configuration was posted: https://review.openstack.org/#/c/95022/

I think this may address your concern here.

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

I believe this is no longer relevant. Please let me know if that is not the case.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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