[salt.sh] Armband extra repo for forked reclass
[fuel.git] / mcp / patches / 0012-linux.storage.lvm-Disable-filter.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 :
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
12
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.
17
18 [1] https://github.com/salt-formulas/salt-formula-linux/issues/127
19
20 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
21 ---
22
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
26 @@ -129,7 +129,8 @@
27          # Example
28          # Accept every block device:
29
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|.*|" ]
33
34          # filter = [ "a|.*/|" ]
35          # Reject the cdrom drive: