Blame SOURCES/0022-Do-not-crash-if-dm_get_member_raid_sets-fails.patch
|
|
bda387 |
From 408da7ad8eaedf9edb8dfa240af35a222fa8b481 Mon Sep 17 00:00:00 2001
|
|
|
bda387 |
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
|
bda387 |
Date: Mon, 11 Mar 2019 13:29:04 +0100
|
|
|
bda387 |
Subject: [PATCH] Do not crash if 'dm.get_member_raid_sets' fails (#1684851)
|
|
|
bda387 |
|
|
|
bda387 |
---
|
|
|
bda387 |
blivet/populator/helpers/dmraid.py | 7 ++++++-
|
|
|
bda387 |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
bda387 |
|
|
|
bda387 |
diff --git a/blivet/populator/helpers/dmraid.py b/blivet/populator/helpers/dmraid.py
|
|
|
bda387 |
index c8cc3a8e..ed48bd66 100644
|
|
|
bda387 |
--- a/blivet/populator/helpers/dmraid.py
|
|
|
bda387 |
+++ b/blivet/populator/helpers/dmraid.py
|
|
|
bda387 |
@@ -53,7 +53,12 @@ def run(self):
|
|
|
bda387 |
minor = udev.device_get_minor(self.data)
|
|
|
bda387 |
|
|
|
bda387 |
# Have we already created the DMRaidArrayDevice?
|
|
|
bda387 |
- rs_names = blockdev.dm.get_member_raid_sets(name, uuid, major, minor)
|
|
|
bda387 |
+ try:
|
|
|
bda387 |
+ rs_names = blockdev.dm.get_member_raid_sets(name, uuid, major, minor)
|
|
|
bda387 |
+ except blockdev.DMError as e:
|
|
|
bda387 |
+ log.error("Failed to get RAID sets information for '%s': %s", name, str(e))
|
|
|
bda387 |
+ return
|
|
|
bda387 |
+
|
|
|
bda387 |
if len(rs_names) == 0:
|
|
|
bda387 |
log.warning("dmraid member %s does not appear to belong to any "
|
|
|
bda387 |
"array", self.device.name)
|