Project

General

Profile

Bug #28594

renaming boot environment throws traceback

Added by Caleb St. John over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Expected
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
TrueNAS - TrueNAS 11.1-U2
Severity:
Medium
Reason for Closing:
Duplicate
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

On TrueNAS 11.1-U2-RC7 from the webUI, if you try to rename a boot environment it throws a traceback. Below is the traceback.

Environment:

Software Version: TrueNAS-11.1-U2-RC7 (c636d1f4b)
Request Method: POST
Request URL: http://10.20.20.54/system/bootenv/rename/default-20180215-205411/

Traceback:
File "./freenasUI/system/forms.py" in save
231. c.call('bootenv.update', self._name, {'name': new_name})
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
394. raise ClientException(c.error, c.errno, c.trace, c.extra)
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/system/views.py" in bootenv_rename
440. form.save()
File "./freenasUI/system/forms.py" in save
235. raise MiddlewareError(
('Failed to rename Boot Environment.'))
File "./freenasUI/system/forms.py" in save
235. raise MiddlewareError(_('Failed to rename Boot Environment.'))

Exception Type: MiddlewareError at /system/bootenv/rename/default-20180215-205411/
Exception Value: [MiddlewareError: Failed to rename Boot Environment.]


Related issues

Related to FreeNAS - Bug #28133: Fix error that prevented proper deletion of boot environmentDone2018-02-012018-02-14

History

#2 Updated by Caleb St. John over 1 year ago

If you refresh the webUI, the renamed boot environment appears in the webUI.

#3 Updated by Dru Lavigne over 1 year ago

  • Related to Bug #28133: Fix error that prevented proper deletion of boot environment added

#4 Updated by Dru Lavigne over 1 year ago

  • Status changed from Not Started to Closed
  • Target version changed from TrueNAS 11.1-U2 to N/A
  • Reason for Closing set to Duplicate

Also available in: Atom PDF