Project

General

Profile

Bug #53946

Fix traceback on pool resilver priority update

Added by Bug Clerk about 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Waqar Ahmed
Category:
Middleware
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

[2018/10/21 17:01:35] (WARNING) application.call_method():189 - Exception while calling pool.resilver.update(*[{'enabled': False, 'begin': '18:00', 'end': '09:00', 'weekday': []}])
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 161, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1043, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 983, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/service.py", line 201, in update
    f'{self._config.namespace}.update', self, self.do_update, [data]
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 983, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/pool.py", line 147, in do_update
    if len(set(original_config.items()) ^ set(new_config.items())) > 0:
TypeError: unhashable type: 'list'
config    
{
'begin': datetime.time(18, 0), 
'enabled': False, 
'end': datetime.time(9, 0), 
'id': 1, 
'weekday': []
}
data    
{
'begin': '18:00', 
'enabled': False, 
'end': '09:00', 
'weekday': []
}
new_config    
{
'begin': datetime.time(18, 0), 
'enabled': False, 
'end': datetime.time(9, 0), 
'id': 1, 
'weekday': []
}
original_config    
{
'begin': datetime.time(18, 0), 
'enabled': False, 
'end': datetime.time(9, 0), 
'id': 1, 
'weekday': '7'
}

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


Related issues

Has duplicate FreeNAS - Bug #53235: Fix traceback on pool resilver priority updateClosed
Copied from FreeNAS - Bug #53604: Fix traceback on pool resilver priority updateDone

History

#1 Updated by Bug Clerk about 2 years ago

  • Copied from Bug #53604: Fix traceback on pool resilver priority update added

#2 Updated by Bug Clerk about 2 years ago

  • Target version changed from Master - FreeNAS Nightlies to 11.3

#3 Updated by Bug Clerk about 2 years ago

  • Status changed from Unscreened to In Progress

#4 Updated by Waqar Ahmed about 2 years ago

  • Has duplicate Bug #53235: Fix traceback on pool resilver priority update added

#5 Updated by Bug Clerk about 2 years ago

  • Status changed from In Progress to Ready for Testing

#6 Updated by Dru Lavigne about 2 years ago

  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#7 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.3 to Master - FreeNAS Nightlies
  • Needs QA changed from Yes to No

Also available in: Atom PDF