1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 Mirantis Inc., Enea AB and others.
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Sat, 18 Nov 2017 22:03:01 +0200
11 Subject: [PATCH] linux.storage.lvm: Disable filter
13 Due to upstream bug [1], mixing OS-managed LVM volumes with Cinder
14 LVM volumes leads to a broken filter value in lvm.conf.
15 Temporarily disable the filter (whitelisting all devices, similar
16 to no-Cinder use-cases) until upstream bug is fixed.
18 [1] https://github.com/salt-formulas/salt-formula-linux/issues/127
20 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
23 diff --git a/linux/files/lvm.conf b/linux/files/lvm.conf
24 --- a/linux/files/lvm.conf
25 +++ b/linux/files/lvm.conf
28 # Accept every block device:
30 - filter = [ {%- for vgname, vg in storage.lvm.iteritems() %}{%- if vg.get('enabled', True) %}{%- for dev in vg.devices %}"a|{{ dev }}*|"{%- if not loop.last %},{%- endif %}{%- endfor %}{%- endif %}{%- endfor %}, "r|.*|" ]
31 + # NOTE(opnfv): https://github.com/salt-formulas/salt-formula-linux/issues/127
32 + # filter = [ {%- for vgname, vg in storage.lvm.iteritems() %}{%- if vg.get('enabled', True) %}{%- for dev in vg.devices %}"a|{{ dev }}*|"{%- if not loop.last %},{%- endif %}{%- endfor %}{%- endif %}{%- endfor %}, "r|.*|" ]
34 # filter = [ "a|.*/|" ]
35 # Reject the cdrom drive: