Project

General

Profile

Bug #37730

Fix traceback in Volume Status

Added by Bonnie Follweiler about 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
New
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

In FreeNAS-11.2-MASTER-201807110935
Please note that this works in the New GUI. I don't know if this makes a difference but the scrub is paused on the volume

Here is the error:
Request Method: GET
Request URL: http://10.231.3.50/legacy/admin/storage/volumestatus/datagrid/?id=1&dojo.preventCache=1531337970494
Software Version: FreeNAS-11.2-MASTER-201807110935 (c26be3b)
Exception Type: TemplateSyntaxError
Exception Value:

Unused 'pool.scrub.status' at end of if expression.

Exception Location: /usr/local/lib/python3.6/site-packages/django/template/smartif.py in parse, line 193
Server time: Wed, 11 Jul 2018 15:39:31 -0400

Traceback
Environment:

Software Version: FreeNAS-11.2-MASTER-201807110935 (c26be3b)
Request Method: GET
Request URL: http://10.231.3.50/legacy/admin/storage/volumestatus/datagrid/?id=1&dojo.preventCache=1531337970494

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
163. 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
216. 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 datagrid
973. get_template(template)
File "/usr/local/lib/python3.6/site-packages/django/template/loader.py" in get_template
21. return engine.get_template(template_name)
File "/usr/local/lib/python3.6/site-packages/django/template/backends/django.py" in get_template
39. return Template(self.engine.get_template(template_name), self)
File "/usr/local/lib/python3.6/site-packages/django/template/engine.py" in get_template
160. template, origin = self.find_template(template_name)
File "/usr/local/lib/python3.6/site-packages/django/template/engine.py" in find_template
134. name, template_dirs=dirs, skip=skip,
File "/usr/local/lib/python3.6/site-packages/django/template/loaders/base.py" in get_template
44. contents, origin, origin.template_name, self.engine,
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in init
191. self.nodelist = self.compile_nodelist()
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in compile_nodelist
233. return parser.parse()
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
518. raise self.error(token, e)
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
516. compiled_result = compile_func(self, token)
File "/usr/local/lib/python3.6/site-packages/django/template/loader_tags.py" in do_extends
299. nodelist = parser.parse()
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
518. raise self.error(token, e)
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
516. compiled_result = compile_func(self, token)
File "/usr/local/lib/python3.6/site-packages/django/template/loader_tags.py" in do_block
242. nodelist = parser.parse(('endblock',))
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
518. raise self.error(token, e)
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
516. compiled_result = compile_func(self, token)
File "/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py" in do_if
945. nodelist = parser.parse(('elif', 'else', 'endif'))
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
518. raise self.error(token, e)
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
516. compiled_result = compile_func(self, token)
File "/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py" in do_if
959. nodelist = parser.parse(('endif',))
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
518. raise self.error(token, e)
File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in parse
516. compiled_result = compile_func(self, token)
File "/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py" in do_if
944. condition = TemplateIfParser(parser, bits).parse()
File "/usr/local/lib/python3.6/site-packages/django/template/smartif.py" in parse
193. self.current_token.display())

Exception Type: TemplateSyntaxError at /legacy/admin/storage/volumestatus/datagrid/
Exception Value: Unused 'pool.scrub.status' at end of if expression.

Request information
GET
Variable Value
id '1'
dojo.preventCache '1531337970494'
POST

No POST data
FILES

No FILES data
COOKIES
Variable Value
fntreeSaveStateCookie 'root%2Croot%2F1%2Croot%2F1%2F6%2Croot%2F1%2F5'
csrftoken '********'
sessionid 'gs6g6a1g6n02tiyxjugmbwm6vq240nze'
META
Variable Value


Related issues

Related to FreeNAS - Feature #35011: Display paused scrub state as Paused in middlewareDone

Associated revisions

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

Fix traceback in Volume Status Ticket: #37730

History

#1 Updated by Bonnie Follweiler about 2 years ago

  • Related to Feature #35011: Display paused scrub state as Paused in middleware added

#2 Updated by Vladimir Vinogradenko about 2 years ago

  • Status changed from Unscreened to In Progress
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#3 Updated by Vladimir Vinogradenko about 2 years ago

#4 Updated by Vladimir Vinogradenko about 2 years ago

  • Status changed from In Progress to Ready for Testing

#5 Updated by Dru Lavigne about 2 years ago

  • Subject changed from Clicking on the Volume Status button produces a traceback error to Fix traceback in Volume Status
  • Target version changed from Backlog to 11.2-BETA2
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#6 Updated by Bonnie Follweiler about 2 years ago

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

Test Passes in FreeNAS-11.2-MASTER-201807120858

#7 Updated by Dru Lavigne about 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF