chef-cookbooks
chef-cookbooks copied to clipboard
[cinder] cinder-volumes vg not being scanned correctly
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/.*/" ]