Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-395560 Log exception details when LUN refresh fails #701

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drivers/scsiutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import errno
import glob
import mpath_cli
import traceback

PREFIX_LEN = 4
SUFFIX_LEN = 12
Expand Down Expand Up @@ -601,8 +602,7 @@ def refresh_mapper_if_needed(primarydevice, SCSIid, currentcapacity):
"find any devices for the SCSIid." % SCSIid)
return True
except:
util.logException("Error in scsiutil.refresh_lun_size_by_SCSIid(%s)"
% SCSIid)
util.logException(f"Error in scsiutil.refresh_lun_size_by_SCSIid({SCSIid}: {traceback.format_exc()})")
return False


Expand Down
Loading