Project

General

Profile

Bug #60750

Restart smartd in background when creating a SMART Task

Added by Caleb St. John about 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Caleb St. John
Category:
Middleware
Target version:
Seen in:
TrueNAS - TrueNAS-11.1-U6.1
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

We have an M50-HA appliance that has 142 HDD's. During our configuration procedure, we configure SMART jobs for all appropriate disks.

During the process of creating SMART jobs, we receive this traceback.

Request Method:     POST
Request URL:    http://10.5.0.215/admin/tasks/smarttest/add/
Software Version:   TrueNAS-11.1-U6.1 (7a8664c1d)
Exception Type:     CallTimeout
Exception Value:    

Call timeout

Exception Location:     /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 429
Server time:    Thu, 29 Nov 2018 12:20:45 -0800
Traceback
Environment:

Software Version: TrueNAS-11.1-U6.1 (7a8664c1d)
Request Method: POST
Request URL: http://10.5.0.215/admin/tasks/smarttest/add/

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  42.             response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  178.             response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
  162.         return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
  210.                 return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
  142.             return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
  364.                     mf.save()
File "./freenasUI/tasks/forms.py" in save
  447.         notifier().restart("smartd")
File "./freenasUI/middleware/notifier.py" in restart
  237.                 **kwargs,
File "./freenasUI/middleware/notifier.py" in restart
  237.                 **kwargs,
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
  429.             raise CallTimeout("Call timeout")

Exception Type: CallTimeout at /admin/tasks/smarttest/add/
Exception Value: Call timeout

This ticket is to cause the creating of SMART tasks to be started in the background.

History

#1 Updated by Bug Clerk about 2 years ago

  • Status changed from Unscreened to In Progress

#2 Updated by Caleb St. John about 2 years ago

  • Subject changed from CallTimeout when creating SMART job in legacy webUI to restart SMARTd in background when creating SMART tasks
  • Status changed from In Progress to Ready for Testing
  • Needs Merging changed from Yes to No

#4 Updated by Dru Lavigne about 2 years ago

  • Subject changed from restart SMARTd in background when creating SMART tasks to Restart smartd in background when creating a SMART Task

#6 Updated by Caleb St. John almost 2 years ago

  • Status changed from Ready for Testing to Passed Testing

#8 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF