Details
-
Type:
Bug
-
Status: Done (View Workflow)
-
Priority:
Low
-
Resolution: Complete
-
Affects Version/s: 12.0-BETA2
-
Fix Version/s: SCALE-20.10-ALPHA, 12.0-RC1
-
Component/s: Middleware
-
Labels:
-
Impact:Medium
Description
Issue arised when trying to figure out why showing jails or plugins in the webgui is _TERRIBLY_ slow, it takes 3-5 minutes to list them, then when you try to edit it is 3-5 more minutes of waiting before editing is possible.
Tried cleaning up some test and old jails, and was not able to destroy jails
just get the following :
mirai% sudo iocage destroy Octoprint2
This will destroy jail Octoprint2
Are you sure? [y/N]: y
Destroying Octoprint2
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/iocage_cli/destroy.py", line 131, in cli
iocage.destroy_jail(force=force)
File "/usr/local/lib/python3.8/site-packages/iocage_lib/iocage.py", line 750, in destroy_jail
ioc_destroy.IOCDestroy().destroy_jail(path)
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_destroy.py", line 46, in __init__
self.iocroot_datasets = [
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_destroy.py", line 46, in <listcomp>
self.iocroot_datasets = [
File "/usr/local/lib/python3.8/site-packages/iocage_lib/dataset.py", line 84, in get_dependents
if ds.locked:
File "/usr/local/lib/python3.8/site-packages/iocage_lib/dataset.py", line 90, in locked
return not self.mounted or (
File "/usr/local/lib/python3.8/site-packages/iocage_lib/dataset.py", line 79, in mounted
return self.properties['mounted'] == 'yes'
KeyError: 'mounted'
mirai%
Same error from the webui, just less detailed.
Did a delete on the dataset of another jail, it then vanished fine from the webui and iocage list, however _ALL_ other jails became _DOWN_ and had to be started
Generated a debug log for this issue, then FreeNAS crashed hard upon creating it