Browse code

Additional Cinder backend: solidfire

Change-Id: I465a77e9862a00885bdccc560404ffcbb26547f8

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