Project

General

Profile

Bug #52757

Fix "Device not configured" traceback

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

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Seen in:
Severity:
Low 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

future: <Task finished coro=<_event_ifnet() done, defined at /usr/local/lib/python3.6/site-packages/middlewared/plugins/network.py:1047> exception=OSError(6, 'Device not configured')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/network.py", line 1056, in _event_ifnet
    iface = await middleware.call('interfaces.query', [('name', '=', iface)])
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1047, in call
    return await self._call(name, serviceobj, methodobj, params, app=app, pipes=pipes, io_thread=True)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 997, in _call
    return await run_method(methodobj, *args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 943, in run_in_thread
    return await self.loop.run_in_executor(executor, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 668, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/network.py", line 282, in query
    data.append(self.iface_extend(iface.__getstate__()))
  File "netif.pyx", line 658, in netif.NetworkInterface.__getstate__
  File "netif.pyx", line 725, in netif.NetworkInterface.mtu.__get__
OSError: [Errno 6] Device not configured

Related issues

Copied to FreeNAS - Bug #53119: Fix "Device not configured" tracebackDone
Copied to FreeNAS - Bug #54288: Fix "Device not configured" tracebackClosed

Associated revisions

Revision 979a0eca (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/network): skip interface on OSError Interface state may raise OSError on certain situations (Device not configured). Skip them instead of failing the call. Ticket: #52757

Revision d1797c0a (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/network): skip interface on OSError Interface state may raise OSError on certain situations (Device not configured). Skip them instead of failing the call. Ticket: #52757

Revision 6e9bddff (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/network): skip interface on OSError Interface state may raise OSError on certain situations (Device not configured). Skip them instead of failing the call. Ticket: #52757

Revision 1adc3f7f (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/network): skip epair/tun/tap on attach event Ticket: #52757

Revision a88451b6 (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/network): skip epair/tun/tap on attach event Ticket: #52757

Revision 1336810b (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/network): skip epair/tun/tap on attach event Ticket: #52757 (cherry picked from commit 1adc3f7f34314473d3acea106bc59518893ea66b)

Revision 74057756 (diff)
Added by Bug Clerk about 2 years ago

fix(middlewared/network): skip epair/tun/tap on attach event (#1987) Ticket: #52757 (cherry picked from commit 1adc3f7f34314473d3acea106bc59518893ea66b)

History

#1 Updated by William Grzybowski about 2 years ago

  • Status changed from Unscreened to Not Started

#2 Updated by Bug Clerk about 2 years ago

  • Status changed from Not Started to In Progress

#3 Updated by Bug Clerk about 2 years ago

  • Status changed from In Progress to Ready for Testing

#4 Updated by Bug Clerk about 2 years ago

  • Target version changed from 11.2-RC2 to 11.3

#5 Updated by Bug Clerk about 2 years ago

  • Copied to Bug #53119: Fix "Device not configured" traceback added

#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 Bug Clerk about 2 years ago

  • Status changed from Ready for Testing to In Progress

#8 Updated by Bug Clerk about 2 years ago

  • Status changed from In Progress to Ready for Testing

#9 Updated by Bug Clerk about 2 years ago

  • Copied to Bug #54288: Fix "Device not configured" traceback added

#10 Updated by Dru Lavigne almost 2 years ago

  • Target version changed from 11.3 to Master - FreeNAS Nightlies
  • Needs QA changed from Yes to No

#12 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Ready for Testing to Done

Also available in: Atom PDF