chef-cookbooks icon indicating copy to clipboard operation
chef-cookbooks copied to clipboard

[cinder] cinder-volumes vg not being scanned correctly

Open claco opened this issue 10 years ago • 0 comments

cinder-volumes vg wasn't scanned because the filter didn't include anything, just excluded cinder-volumes and everything else

diff --git a/templates/default/lvm.conf.erb b/templates/default/lvm.conf.erb
index e5e988c..3c5ae34 100644
--- a/templates/default/lvm.conf.erb
+++ b/templates/default/lvm.conf.erb
@@ -52,7 +52,7 @@ devices {
     # If it doesn't do what you expect, check the output of 'vgscan -vvvv'.

     # Don't scan the Cinder Volume Group
-    filter = [ "r/<%= @volume_group %>/" ]
+    filter = [ "a/.*/", "r/<%= @volume_group %>/" ]

     # By default we accept every block device:
     # filter = [ "a/.*/" ]
diff --git a/templates/rhel/lvm.conf.erb b/templates/rhel/lvm.conf.erb
index 83453a9..690ceea 100644
--- a/templates/rhel/lvm.conf.erb
+++ b/templates/rhel/lvm.conf.erb
@@ -68,7 +68,7 @@ devices {
     # If it doesn't do what you expect, check the output of 'vgscan -vvvv'.

     # Don't scan the Cinder Volume Group
-    filter = [ "r/<%= @volume_group %>/" ]
+    filter = [ "a/.*/", "r/<%= @volume_group %>/" ]

     # By default we accept every block device:
     # filter = [ "a/.*/" ]

claco avatar Mar 20 '14 17:03 claco