Add option to export/import encrypted geli keys when saving/restoring config using legacy UI

Description

After fresh installing FreeNAS and uploading saved config, attempting to unlock an encrypted pool results in the GUI returning "Error Unlocking: [object Object]". Exporting the pool then attempting to reimport it results in the folling error:

" EFAULT] The following devices failed to attach: gptid/3bd6360c-33f7-11e9-b986-08626649c154, gptid/3a6e95bc-33f7-11e9-b986-08626649c154, gptid/3948e17e-33f7-11e9-b986-08626649c154, gptid/3834894c-33f7-11e9-b986-08626649c154, gptid/371776ef-33f7-11e9-b986-08626649c154, gptid/35feaee0-33f7-11e9-b986-08626649c154"

The traceback for this is:

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 332, in run
await self.future
File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 365, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1005, 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/disk.py", line 253, in decrypt
raise CallError(f'The following devices failed to attach: {", ".join(failed)}')
middlewared.service_exception.CallError: [EFAULT] The following devices failed to attach: gptid/3bd6360c-33f7-11e9-b986-08626649c154, gptid/3a6e95bc-33f7-11e9-b986-08626649c154, gptid/3948e17e-33f7-11e9-b986-08626649c154, gptid/3834894c-33f7-11e9-b986-08626649c154, gptid/371776ef-33f7-11e9-b986-08626649c154, gptid/35feaee0-33f7-11e9-b986-08626649c154

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Dru Lavigne July 24, 2019 at 9:01 PM

Docs verified in legacy UI version of Guide.

Aaron St. John [X] June 11, 2019 at 1:32 PM

Aaron St. John [X] June 11, 2019 at 12:49 PM

Test passes FreeNAS-11.3-MASTER-201906100622 (see screenshot).

Bug Clerk June 5, 2019 at 7:08 PM

William Gryzbowski May 23, 2019 at 5:04 PM
Edited

Glad you have sorted it out.

We will work on our end to be able to save config with the geli key.

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

More fields

Katalon Platform

Created May 17, 2019 at 4:11 PM
Updated July 1, 2022 at 4:31 PM
Resolved July 24, 2019 at 9:02 PM