Project

General

Profile

Bug #26925

Fix error in volume import

Added by Stefan Code about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Important
Assignee:
William Grzybowski
Category:
GUI (new)
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Trying to import an encrypted pool on 11.1RC2 fails with:

Environment:

Software Version: FreeNAS-11.1-RC2 (f22406524)
Request Method: POST
Request URL: http://10.222.120.5/storage/auto-import/

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 "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in dispatch
  237.         response = super(WizardView, self).dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch
  88.         return handler(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in post
  300.                 return self.render_done(form, **kwargs)
File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in render_done
  357.                                   **kwargs)
File "./freenasUI/storage/forms.py" in done
  881.         self.volume = notifier().volume_import(vol['label'], vol['id'], key, passphrase, enc_disks)
File "./freenasUI/middleware/notifier.py" in volume_import
  2671.                 )[0]
File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in __getitem__
  295.         return list(qs)[0]

Exception Type: IndexError at /storage/auto-import/
Exception Value: list index out of range

The same import works for the current stable release.

Associated revisions

Revision e40383a3 (diff)
Added by William Grzybowski about 1 year ago

fix(notifier): make sure disk obj exists

Ticket: #26925

Revision 9e146fed (diff)
Added by William Grzybowski about 1 year ago

fix(notifier): make sure disk obj exists

Ticket: #26925
(cherry picked from commit e40383a316b3b078aa15b7a6dc31e028328bbd35)

Revision b3134927 (diff)
Added by William Grzybowski about 1 year ago

fix(notifier): make sure disk obj exists

Ticket: #26925

Revision 9733117f (diff)
Added by William Grzybowski about 1 year ago

fix(notifier): make sure disk obj exists

Ticket: #26925
(cherry picked from commit e40383a316b3b078aa15b7a6dc31e028328bbd35)

History

#1 Updated by Stefan Code about 1 year ago

  • Seen in changed from 11.1-RC2 to 11.1-RC1

#2 Updated by Stefan Code about 1 year ago

Happening too for FreeNAS-11.1-RC1

#3 Updated by Eric Loewenthal about 1 year ago

I hope the pool wasn't important, because it may have been destroyed when you tried to import it in 11.1-RC1. See #26834

#4 Updated by Stefan Code about 1 year ago

Great. Just great. I wonder what the rationale behind that was...

#5 Updated by Stefan Code about 1 year ago

Do you happen to know if Freenas backs up the GELI metadata somewhere by default?

#6 Updated by Dru Lavigne about 1 year ago

  • Assignee changed from Release Council to William Grzybowski

William: is there anything that can be done here?

#7 Updated by William Grzybowski about 1 year ago

  • Status changed from Unscreened to Screened
  • Priority changed from No priority to Important
  • Target version set to 11.1-RC3

#8 Updated by William Grzybowski about 1 year ago

  • Status changed from Screened to Ready For Release

#9 Updated by William Grzybowski about 1 year ago

#10 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Pool import fails with List index out of Range to Fix List index out of Range error

#11 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Fix List index out of Range error to Fix error in volume import

#12 Updated by Bonnie Follweiler about 1 year ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

#13 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Resolved

#14 Updated by Dru Lavigne about 1 year ago

  • File deleted (debug-freenas-20171129105540.tgz)

Also available in: Atom PDF