Editing an old dataset (from zfs recv) throws an error

Description

When clicking on "Edit Dataset"
```
CallError
[ENOENT] "[]" not found.

Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 213, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1361, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/dataset_info.py", line 64, in recommended_zvol_blocksize
raise CallError(f'"{pool}" not found.', errno.ENOENT)
middlewared.service_exception.CallError: [ENOENT] "[]" not found.

```

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk September 18, 2023 at 9:34 AM

Automation for Jira September 18, 2023 at 9:34 AM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk September 18, 2023 at 9:16 AM

Rehan Yousaf September 18, 2023 at 12:09 AM

As mentioned by the reporter, the original issue was the missing pool for the user’s system. I think that’s what caused this bug as well. Because if I request pool.dataset.recommended_zvol_blocksize with a path/pool name that doesn’t exist, in the error by middleware, it says that [] was not found instead of the wrong pool name sent with the request. See the following request sent from UI and it’s response from middleware.

Rehan Yousaf September 17, 2023 at 11:28 PM

This helps a lot, thanks!

Complete

Details

Assignee

Reporter

Labels

Story Points

Original estimate

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created September 13, 2023 at 2:26 PM
Updated October 10, 2023 at 12:38 PM
Resolved September 18, 2023 at 11:17 AM