]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
solidfire: Add ability to override account prefix
authorMathieu Gagné <mgagne@iweb.com>
Mon, 13 May 2013 21:05:21 +0000 (17:05 -0400)
committerMathieu Gagné <mgagne@iweb.com>
Mon, 13 May 2013 23:40:24 +0000 (19:40 -0400)
commitf9fd91e05e7d8d4a7d3a4659ba3c0ebd483732e1
tree1ed190ea4fa7af706628d7889b18592f687d5a7e
parent5784a368b2a97d88cfd192f7b72bad5b50892200
solidfire: Add ability to override account prefix

The SolidFire account is created with a prefix based on the hostname
of the host running cinder-volume. This prevents cinder-volume from
being run in an active/active setup.

This patch introduces a new configuration option sf_account_prefix
to override the prefix used when a SolidFire account is created.

If sf_account_prefix is empty, no prefix will be added to
the SolidFire account name when created.

The default value is still the hostname.

Change-Id: I3b974789ea3e749cc8696b69754023ad76155179
Fixes: bug #1179671
cinder/tests/test_solidfire.py
cinder/volume/drivers/solidfire.py