Skip to content

Commit

Permalink
Fix a fs status error on nodes where the fs zpool is deported
Browse files Browse the repository at this point in the history
Catch zpool sub dev listing errors in the fs status evaluation, as this fails
when the zpool is deported.
  • Loading branch information
cvaroqui committed Dec 3, 2018
1 parent f9b5dd4 commit aead119
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/resFsLinux.py
Expand Up @@ -353,7 +353,11 @@ def sub_devs(self):
return set(btrfs_devs(self.mount_point))
if self.fs_type == "zfs":
from rcZfs import zpool_devs
return set(zpool_devs(self.device.split("/")[0], self.svc.node))
try:
return set(zpool_devs(self.device.split("/")[0], self.svc.node))
except Exception:
# deported zpool
return set()

dev = self.realdev()
if dev is None or dev.startswith("LABEL=") or dev.startswith("UUID="):
Expand Down

0 comments on commit aead119

Please sign in to comment.