Skip to content

Commit bcd2ba4

Browse files
author
Dean Troyer
committed
Additional Cinder backend: solidfire
Change-Id: I465a77e9862a00885bdccc560404ffcbb26547f8
1 parent c6a5126 commit bcd2ba4

2 files changed

Lines changed: 47 additions & 48 deletions

File tree

lib/cinder_backends/solidfire

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# lib/cinder_backends/solidfire
2+
# Configure the solidfire driver
3+
4+
# Enable with:
5+
#
6+
# CINDER_ENABLED_BACKENDS+=,solidfire:<volume-type-name>
7+
8+
# Dependencies:
9+
#
10+
# - ``functions`` file
11+
# - ``cinder`` configurations
12+
13+
# CINDER_CONF
14+
15+
# configure_cinder_driver - make configuration changes, including those to other services
16+
17+
# Save trace setting
18+
MY_XTRACE=$(set +o | grep xtrace)
19+
set +o xtrace
20+
21+
22+
# Entry Points
23+
# ------------
24+
25+
# configure_cinder_backend_solidfire - Set config files, create data dirs, etc
26+
function configure_cinder_backend_solidfire {
27+
# To use SolidFire, set the following in local.conf:
28+
# CINDER_ENABLED_BACKENDS+=,solidfire:<volume-type-name>
29+
# SAN_IP=<mvip>
30+
# SAN_LOGIN=<cluster-admin-account>
31+
# SAN_PASSWORD=<cluster-admin-password>
32+
33+
local be_name=$1
34+
iniset $CINDER_CONF $be_name volume_backend_name $be_name
35+
iniset $CINDER_CONF $be_name volume_driver "cinder.volume.drivers.solidfire.SolidFireDriver"
36+
iniset $CINDER_CONF $be_name san_ip $SAN_IP
37+
iniset $CINDER_CONF $be_name san_login $SAN_LOGIN
38+
iniset $CINDER_CONF $be_name san_password $SAN_PASSWORD
39+
}
40+
41+
42+
# Restore xtrace
43+
$MY_XTRACE
44+
45+
# Local variables:
46+
# mode: shell-script
47+
# End:

lib/cinder_plugins/solidfire

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)