Project

General

Profile

Bug #45794

Fix traceback when trying to restore alert

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

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
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

KeyError: '["New feature flags are available for volume %s. Refer to the \\"Upgrading a ZFS Pool\\" section of the User Guide for instructions.", "Nas"]'
  File "middlewared/main.py", line 155, in call_method
    result = await self.middleware.call_method(self, message)
  File "middlewared/main.py", line 1033, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "middlewared/main.py", line 987, in _call
    return await run_method(methodobj, *args)
  File "middlewared/main.py", line 925, in _run_in_conn_threadpool
    return await self.run_in_executor(self.__threadpool, method, *args, **kwargs)
  File "middlewared/main.py", line 913, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "middlewared/schema.py", line 668, in nf
    return f(*args, **kwargs)
  File "plugins/alert.py", line 154, in restore
    alert = self.alerts[node][source][key]
{
'id': '804e623b-2528-6127-5c5c-e5179a97931e', 
'method': 'alert.restore', 
'msg': 'method', 
'params': [
'A;VolumeVersion;["New feature flags are available for volume %s. Refer to the \"Upgrading a ZFS Pool\" section of the User Guide for instructions.", "Nas"]'
]
}

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

Associated revisions

Revision f9e8289a (diff)
Added by Vladimir Vinogradenko about 2 years ago

Fix restoring gone alert Ticket: #45794

History

#1 Updated by Bug Clerk about 2 years ago

  • Status changed from Unscreened to In Progress

#2 Updated by Bug Clerk about 2 years ago

  • Status changed from In Progress to Ready for Testing

#3 Updated by Dru Lavigne about 2 years ago

  • Subject changed from Traceback when trying to restore alert to Fix traceback when trying to restore alert
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#4 Updated by Timothy Moore II about 2 years ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Testing with FreeNAS Mini updated to FreeNAS-11.2-MASTER-201809210904:

Go to Storage > Pools and create a simple mirrored pool. Go to Pool Status and Offline one disk. Wait for the alert to appear and attempt to clear and then restore it. Confirm closing and reopening alerts functions correctly, both with single alerts and the Clear All Alerts and Re-Open All Alerts buttons.

#5 Updated by Dru Lavigne about 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF