Created
April 1, 2014 18:27
-
-
Save breu/9920058 to your computer and use it in GitHub Desktop.
cinder fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/attributes/default.rb b/attributes/default.rb | |
index 06bae01..fb943ff 100644 | |
--- a/attributes/default.rb | |
+++ b/attributes/default.rb | |
@@ -60,6 +60,7 @@ default["cinder"]["storage"]["lvm"]["mirrors"] = 0 | |
default["cinder"]["storage"]["lvm"]["config"] = "/etc/lvm/lvm.conf" # Path of LVM config file | |
default["cinder"]["storage"]["lvm"]["pool_size"] = "None" | |
default["cinder"]["storage"]["lvm"]["volume_driver"] = "cinder.volume.drivers.lvm.LVMISCSIDriver" | |
+default["cinder"]["storage"]["lvm"]["volume_backend_name"] = "cinder" | |
# solidfire settings - set these if you are using solidfire | |
# as the storage provider above | |
diff --git a/providers/conf.rb b/providers/conf.rb | |
index 94b5f56..fa60c56 100644 | |
--- a/providers/conf.rb | |
+++ b/providers/conf.rb | |
@@ -63,6 +63,7 @@ action :create do | |
storage_options["volume_clear"] = node["cinder"]["storage"]["lvm"]["volume_clear"] | |
storage_options["volume_clear_size"] = node["cinder"]["storage"]["lvm"]["volume_clear_size"] | |
storage_options["volume_pool_size"] = node["cinder"]["storage"]["lvm"]["pool_size"] | |
+ storage_options["volume_backend_name"] = node["cinder"]["storage"]["lvm"]["volume_backend_name"] | |
when "rbd" | |
storage_options["volume_driver"] = "cinder.volume.drivers.rbd.RBDDriver" | |
storage_options["rbd_pool"] = node["cinder"]["storage"]["rbd"]["rbd_pool"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment