]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Sheepdog: Fix a problem about multi backend
authorMENJO, Takashi <menjo.takashi@lab.ntt.co.jp>
Fri, 30 Oct 2015 08:30:10 +0000 (17:30 +0900)
committerMENJO, Takashi <menjo.takashi@lab.ntt.co.jp>
Fri, 13 Nov 2015 07:57:42 +0000 (16:57 +0900)
commitedce19f6dffee337c19cc5c8d24cf93ae37ed1b4
treefafa56c3916409ac86838c03bfad4f7e6880defc
parent8e03c3b3358b59999b5727bb3d87c41eee563615
Sheepdog: Fix a problem about multi backend

Current Sheepdog driver does not support Cinder multi backend. It can
connect at most one Sheepdog cluster defined in the [DEFAULT] section
in the cinder.conf.

This patch makes Sheepdog driver support Cinder multi backend.
I think this should be treated as bug fix rather than enhancement
(i.e. adding a new feature) because Cinder itself has been supported
multi backend from Grizzly.

You can use multi Sheepdog clusters (for example, one of them has
low-performance SATA disk and another has high-performance SSD) with
cinder.conf like as below:

  [DEFAULT]
  enabled_backends=sheep0,sheep1
  [sheep0]
  volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver
  sheepdog_store_address=127.0.0.1
  sheepdog_store_port=7000
  volume_backend_name=sheep_SATA
  [sheep1]
  volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver
  sheepdog_store_address=127.0.0.1
  sheepdog_store_port=7001
  volume_backend_name=sheep_SSD

DocImpact

Closes-Bug: #1514353

Change-Id: I484430e52aa0661bf1cddf9939ad308e274317e2
cinder/tests/unit/test_sheepdog.py
cinder/volume/drivers/sheepdog.py