Project

General

Profile

Bug #45750

Fix traceback when listing plugins

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

Status:
Done
Priority:
No priority
Assignee:
Brandon Schneider
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

RuntimeError: Please specify a pool to activate with iocage activate POOL
  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 970, in _call
    return await self._call_worker(serviceobj, name, *args)
  File "middlewared/main.py", line 997, in _call_worker
    job,
  File "middlewared/main.py", line 928, in run_in_proc
    return await self.run_in_executor(self.__procpool, 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))

Traceback above happens when calling:

{
'id': '7479a34d-1573-5942-3c90-d62a5eedf9fd', 
'method': 'jail.list_resource', 
'msg': 'method', 
'params': [
'PLUGIN', 
True
]
}

We need to figure out why this method is being called if it should not be.
If not why do we need iocage configure while listing plugins.

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


Related issues

Copied to FreeNAS - Bug #46425: Alert if iocage pool is not activated before performing any plugin or jail operations in UIDone

Associated revisions

Revision 4f03dfe9 (diff)
Added by Brandon Schneider almost 2 years ago

Catch iocage not having a pool activated and reraise as CallError This is to avoid gratuitous exceptions later down the line. Ticket: #45750

Revision 5b935a54 (diff)
Added by Brandon Schneider almost 2 years ago

Catch iocage not having a pool activated and reraise as CallError (#1799) This is to avoid gratuitous exceptions later down the line. Ticket: #45750

History

#1 Updated by William Grzybowski almost 2 years ago

  • Description updated (diff)

#2 Updated by Brandon Schneider almost 2 years ago

  • Copied to Bug #46425: Alert if iocage pool is not activated before performing any plugin or jail operations in UI added

#3 Updated by Brandon Schneider almost 2 years ago

  • Status changed from Unscreened to In Progress

#4 Updated by Brandon Schneider almost 2 years ago

#5 Updated by Brandon Schneider almost 2 years ago

#6 Updated by Dru Lavigne almost 2 years ago

  • Subject changed from Traceback when listing plugins to Fix traceback when listing plugins
  • Needs Doc changed from Yes to No

#7 Updated by Bug Clerk almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#8 Updated by Dru Lavigne almost 2 years ago

  • Needs Merging changed from Yes to No

#9 Updated by Jeff Ervin almost 2 years ago

31816

Test Passed FreeNAS-11.2-MASTER-201809250855

#10 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF