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

NAS-134001 / 25.04-RC.1 / Sed unlock exitcode (by themylogin) #15584

Merged
merged 1 commit into from
Feb 4, 2025
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
6 changes: 4 additions & 2 deletions src/middlewared/middlewared/plugins/disk_/sed.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ async def parse_unlock_info(self, info):
# means disk supports SED and we failed to unlock
# the disk (either bad password or unhandled error)
if info.query_cp and info.query_cp.returncode:
errmsg += f' QUERY ERROR: {info.query_cp.stderr.decode(errors="ignore")!r}'
errmsg += f' QUERY ERROR {info.query_cp.returncode}: {info.query_cp.stderr.decode(errors="ignore")!r}'
if info.unlock_cp and info.unlock_cp.returncode:
errmsg += f' UNLOCK ERROR: {info.unlock_cp.stderr.decode(errors="ignore")!r}'
errmsg += (
f' UNLOCK ERROR {info.unlock_cp.returncode}: {info.unlock_cp.stderr.decode(errors="ignore")!r}'
)
self.logger.warning(errmsg)

if info.mbr_cp and info.mbr_cp.returncode:
Expand Down