Can't remove jail's mount point from GUI if the dataset was renamed/removed

Description

FreeNAS 11.2-U3

I did a zfs rename for a dataset

zfs rename dvgmar/shared/BTSync dvgmar/shared/resilio

I then went into a jail that had a mount point to dvgmar/shared/BTSync. Two things happened

The GUI wouldn't let me simply redirect to the new dvgmar/shared/resilio path - got an error that dvgmar/shared/BTSync couldn't be found. No kidding, that' not what I was telling you do to...
I then tried to delete the mount point from the GUI and got the same error that dvgmar/shared/BTSync couldn't be found.

I had to edit the fstab file manually. Here is the error output

Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 707, in fstab
dump, _pass, index=index
File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 1037, in fstab
index=index
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fstab.py", line 69, in _init_
self.dests = self._validate_fstab_(self.fstab, 'all')
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fstab.py", line 212, in _validate_fstab_
exception=iocage_lib.ioc_exceptions.ValidationFailed
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 90, in logit
_callback(content, exception)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 64, in callback
raise callback_exception(message)
iocage_lib.ioc_exceptions.ValidationFailed: ['Source: /mnt/dvgmar/shared/BTSync does not exist!']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 128, in main_worker
res = loop.run_until_complete(coro)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 88, in _run
return await self._call(f'{service_name}.{method}', serviceobj, methodobj, params=args, job=job)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, in _call
return methodobj(*params)
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/jail.py", line 719, in fstab
raise CallError(e.message)
middlewared.service_exception.CallError: [EFAULT] Source: /mnt/dvgmar/shared/BTSync does not exist!
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 165, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1141, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1078, in _call
return await self._call_worker(serviceobj, name, *args)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1105, in _call_worker
job,
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1036, in run_in_proc
return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1021, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
middlewared.service_exception.CallError: [EFAULT] Source: /mnt/dvgmar/shared/BTSync does not exist!

Problem/Justification

None

Impact

None

is duplicated by

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

William Gryzbowski May 29, 2019 at 6:31 PM

This will be handled as part of

wblock May 29, 2019 at 5:51 PM

Does not affect user docs.

Bug Clerk May 6, 2019 at 9:51 PM

Diedrich Guenther April 24, 2019 at 1:31 PM

My debug is 1.07GB in size! Is this normal?

[Debug file|https://drive.google.com/file/d/1SieCpL44HFYP_80OgzsHw_3ejjpzJxrL/view?usp=sharing]

Jeff Ervin April 24, 2019 at 12:32 PM

Hello Diedrich,

Could you attach a debug to the document vault, please... (System>Advanced>Save Debug).  Thank you.

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

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created April 24, 2019 at 2:35 AM
Updated July 1, 2022 at 4:32 PM
Resolved May 29, 2019 at 6:31 PM