Project

General

Profile

Bug #45717

Fix traceback on pool.get_disks

Added by William Grzybowski almost 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

AttributeError: 'NoneType' object has no attribute 'items'
  File "middlewared/main.py", line 161, in call_method
    result = [i async for i in result]
  File "middlewared/main.py", line 161, in <listcomp>
    result = [i async for i in result]
  File "plugins/pool.py", line 297, in get_disks
    disk = {k[len("disk_"):]: v for k, v in encrypted_disk["encrypted_disk"].items()}

https://sentry.ixsystems.com/ixsystems/freenas-middleware/issues/14918/

Associated revisions

Revision 04ed68ae (diff)
Added by William Grzybowski almost 2 years ago

fix(middlewared/pool): `encrypted_disk` may be null Ticket: #45717

Revision 6f9aadb7 (diff)
Added by William Grzybowski almost 2 years ago

fix(middlewared/pool): `encrypted_disk` may be null Ticket: #45717

History

#1 Updated by William Grzybowski almost 2 years ago

  • Status changed from Unscreened to Not Started

#2 Updated by Bug Clerk almost 2 years ago

  • Status changed from Not Started to In Progress

#3 Updated by Bug Clerk almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#4 Updated by William Grzybowski almost 2 years ago

  • Status changed from Ready for Testing to Done

There is no sensible way for QA to test this.

It can be skipped from changelog.

#5 Updated by Dru Lavigne almost 2 years ago

  • Subject changed from Traceback on pool.get_disks to Fix traceback on pool.get_disks
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

Also available in: Atom PDF