diff --git a/0003-Ensure-correct-type-of-mpath-cache-member-list.patch b/0003-Ensure-correct-type-of-mpath-cache-member-list.patch new file mode 100644 index 0000000..207c49b --- /dev/null +++ b/0003-Ensure-correct-type-of-mpath-cache-member-list.patch @@ -0,0 +1,28 @@ +From d01281a69e317d7bae4a7698edb6583b6310d5c1 Mon Sep 17 00:00:00 2001 +From: David Lehman +Date: Tue, 19 Mar 2019 11:51:47 -0400 +Subject: [PATCH] Ensure correct type of mpath cache member list. + +Related: rhbz#1672971 +--- + blivet/static_data/mpath_info.py | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/blivet/static_data/mpath_info.py b/blivet/static_data/mpath_info.py +index 49ba4709..64958ba8 100644 +--- a/blivet/static_data/mpath_info.py ++++ b/blivet/static_data/mpath_info.py +@@ -42,8 +42,11 @@ def is_mpath_member(self, device): + :param str device: path of the device to query + + """ +- if self._members is None and availability.BLOCKDEV_MPATH_PLUGIN.available: +- self._members = set(blockdev.mpath.get_mpath_members()) ++ if self._members is None: ++ if availability.BLOCKDEV_MPATH_PLUGIN.available: ++ self._members = set(blockdev.mpath.get_mpath_members()) ++ else: ++ self._members = set() + + device = os.path.realpath(device) + device = device[len("/dev/"):] diff --git a/python-blivet.spec b/python-blivet.spec index 8cf0f2e..9a191b2 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -23,7 +23,7 @@ Version: 3.1.3 #%%global prerelease .b2 # prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2 -Release: 2%{?prerelease}%{?dist} +Release: 3%{?prerelease}%{?dist} Epoch: 1 License: LGPLv2+ %global realname blivet @@ -31,6 +31,7 @@ License: LGPLv2+ Source0: http://github.com/storaged-project/blivet/archive/%{realname}-%{realversion}.tar.gz Patch0: 0001-force-lvm-plugin.patch Patch1: 0002-Support-legacy-MBR-as-part-of-UEFI.patch +Patch3: 0003-Ensure-correct-type-of-mpath-cache-member-list.patch # Versions of required components (done so we make sure the buildrequires # match the requires versions of things). @@ -191,6 +192,9 @@ configuration. %endif %changelog +* Thu Mar 21 2019 Vojtech Trefny - 3.1.3-3 +- Ensure correct type of mpath cache member list + * Mon Mar 11 2019 Vojtech Trefny - 3.1.3-2 - Support legacy MBR (msdos) as part of UEFI to enable hybrid builds