[openstack-dev] [nova] Plan to consolidate FS-style libvirt volume drivers under a common base class
Daniel P. Berrange
berrange at redhat.com
Wed Jun 17 17:31:11 UTC 2015
On Wed, Jun 17, 2015 at 11:37:04AM -0500, Matt Riedemann wrote:
> On 6/17/2015 4:46 AM, Daniel P. Berrange wrote:
> >On Tue, Jun 16, 2015 at 04:21:16PM -0500, Matt Riedemann wrote:
> >>The NFS, GlusterFS, SMBFS, and Quobyte libvirt volume drivers are all very
> >>I want to extract a common base class that abstracts some of the common code
> >>and then let the sub-classes provide overrides where necessary.
> >>As part of this, I'm wondering if we could just have a single
> >>'mount_point_base' config option rather than one per backend like we have
> >>With libvirt you can only have one of these drivers configured per compute
> >>host right? So it seems to make sense that we could have one option used
> >>for all 4 different driver implementations and reduce some of the config
> >>option noise.
> >Doesn't cinder support multiple different backends to be used ? I was always
> >under the belief that it did, and thus Nova had to be capable of using any
> >of its volume drivers concurrently.
> Yeah, I forgot about this and it was pointed out elsewhere in this thread so
> I'm going to drop the common mount_point_base option idea.
> >>Are there any concerns with this?
> >Not a concern, but since we removed the 'volume_drivers' config parameter,
> >we're now free to re-arrange the code too. I'd like use to create a subdir
> >nova/virt/libvirt/volume and create one file in that subdir per driver
> >that we have.
> Sure, I'll do that as part of this work, the remotefs and quobyte modules
> can probably also live in there. We could also arguably move the
> nova.virt.libvirt.lvm and nova.virt.libvirt.dmcrypt modules into
> nova/virt/libvirt/volume as well.
I'd actually prefer to keep separation of the volume driver impls,
from these storage management modules, as they can be used by both
the volume and image management code.
So perhaps use nova/virt/libvirt/storage for the things like lvm.py
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the OpenStack-dev