Can't create jail - release not found

jurny

Cadet
Joined
Mar 4, 2018
Messages
2
Hi!

I'm trying to create new Jail in 11.2 version by using new GUI. Unfortunately, FreeNas is not letting me to create one and showing error:

Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 267, in _create_jail
f"root@{jail_uuid}"], stderr=su.PIPE)
File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['zfs', 'snapshot', 'NAS_DOM/iocage/releases/11.2-RELEASE/root@webmin + bind']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 270, in _create_jail
snapshot = self.zfs.get_snapshot(dataset)
File "libzfs.pyx", line 605, in libzfs.ZFS.get_snapshot
libzfs.ZFSException: Snapshot NAS_DOM/iocage/releases/11.2-RELEASE/root@webmin + bind not found

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/plugins/jail.py", line 183, in create_job
empty=empty
File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 611, in create
clone=clone,
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 87, in create_jail
return self._create_jail(jail_uuid, location)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 283, in _create_jail
f"RELEASE: {self.release} not found!")
RuntimeError: RELEASE: 11.2-RELEASE not found!
"""

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/job.py", line 332, in run
await self.future
File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 356, in __run_body
rv = await self.middleware._call_worker(self.serviceobj, self.method_name, *self.args, job={'id': self.id})
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1073, in _call_worker
job,
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1004, 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 989, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
RuntimeError: RELEASE: 11.2-RELEASE not found!


I've checked available versions by using iocage list -r and it shows me, that 11.1 and 11.2 are fetched. Whole configuration of jail is set to default, only IPv4 address has been set to DHCP. This is happening on every release what I'm trying to select (11.0, 11.1, 11.2, etc.)

What is going on?
 
Last edited:

jurny

Cadet
Joined
Mar 4, 2018
Messages
2
Sorry for posting two messages in row, but I've found root cause - when DHCP for IPv4 is enabled - jail cannot be created. Once unchecked - jail has been created successfully... After that, I've simply changed settings of created jail and activated DHCP without issues...
 
Last edited:
Top