Hi, I don't know if this is a bug or if I'm doing something weird, but anyways I'm having problems exporting/disconnecting pools. Basically, I can't do it.
This is what I do:
1. Under Storage -> Pools I select Add and then "Create new pool" and click "CREATE POOL".
2. In the Pool Manager I give the new pool a unique name, add two disks (mirror raid), and add both disks as Data VDevs. I then click "CREATE".
3. The pool is created and I can see it under Storage -> Pools.
4. Under Storage -> Pools I click the settings icon for my new pool, and select "Export/Disconnect".
5. I get a pop-up message saying "Error exporting/disconnecting pool. no path specified" and when I click "More info..." I get this:
I guess this is a bug, or have I missed some step? Even if I've missed something I think the GUI should handle the situation with more grace.
I'm running 12.0-U1 and the release notes for 12.0-U1.1 doesn't mention a fix for this.
Should I try to reinstall some python lib? If so, which one?
	
		
			
		
		
	
			
			This is what I do:
1. Under Storage -> Pools I select Add and then "Create new pool" and click "CREATE POOL".
2. In the Pool Manager I give the new pool a unique name, add two disks (mirror raid), and add both disks as Data VDevs. I then click "CREATE".
3. The pool is created and I can see it under Storage -> Pools.
4. Under Storage -> Pools I click the settings icon for my new pool, and select "Export/Disconnect".
5. I get a pop-up message saying "Error exporting/disconnecting pool. no path specified" and when I click "More info..." I get this:
Code:
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 1634, in attachments
    return await self.middleware.call('pool.dataset.attachments_with_path', pool['path'])
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
    return await self._call(
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 3714, in attachments_with_path
    for attachment in await delegate.query(path, True):
  File "/usr/local/lib/python3.8/site-packages/middlewared/common/attachment/__init__.py", line 97, in query
    if await self.is_child_of_path(resource, path):
  File "/usr/local/lib/python3.8/site-packages/middlewared/common/attachment/__init__.py", line 132, in is_child_of_path
    return is_child(resource[self.path_field], path)
  File "/usr/local/lib/python3.8/site-packages/middlewared/utils/path.py", line 11, in is_child
    rel = os.path.relpath(child, parent)
  File "/usr/local/lib/python3.8/posixpath.py", line 453, in relpath
    raise ValueError("no path specified")
ValueError: no path specifiedI guess this is a bug, or have I missed some step? Even if I've missed something I think the GUI should handle the situation with more grace.
I'm running 12.0-U1 and the release notes for 12.0-U1.1 doesn't mention a fix for this.
Should I try to reinstall some python lib? If so, which one?