11.2-U3 - Cannot create jails: no is not a valid value for hostid_strict_check

ariejan

Cadet
Joined
Mar 29, 2019
Messages
3
I just upgraded a freshly installed 11.2-U2.1 installation to 11.2-U3. I'm now running into the issue that I cannot install plugins or create jails, as I get the following error message. It seems there is an issue with the on/off vs. yes/no boolean options here.

Code:
sudo iocage create -r 11.2-RELEASE -n myjail boot=on
works fine.

Should this be reported as a bug? Or is something wrong with my install?

Code:
Error: concurrent.futures.process._RemoteTraceback: 
"""
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 200, 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 412, in _create_jail
    raise RuntimeError(f"***\n{err}\n***\n")
RuntimeError: ***
no is not a valid value for hostid_strict_check.
Value must be off or on
***

"""

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 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))
RuntimeError: ***
no is not a valid value for hostid_strict_check.
Value must be off or on
***
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Can't reproduce your error on an upgraded test system:

[root@freenas ~]# iocage create -r 11.2-RELEASE -n myjail boot=on myjail successfully created! * Starting myjail + Started OK + Starting services OK [root@freenas ~]#
 

ariejan

Cadet
Joined
Mar 29, 2019
Messages
3
I think I wasn't entirely clear in my post. The iocage command works for me as well - so I can create jails from the command line. Creating jails or installing plugins from the GUI gives the error message on hostid_strict_check.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
What settings have you used? With the default dhcp + vnet, I can create both a plugin (e.g. transmission) and a jail via WebUI without error. Creating a jail via CLI produces expected entry in GUI which seems to function OK.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
After re-reading your 1st post, did you have any jails running on 11.2-U2.1 before upgrading? In my test setup there were pre-existing jails before upgrading from 11.2-U2.1 to U3 and they are all still functional. Did you clear your browser cache after upgrading and before logging into the webui?
 
Joined
Jul 10, 2016
Messages
521
I can confirm this issue; When you create a jail from the "Advanced Jail Creation" tab, it fails with an error: *** no is not a valid value for hostid_strict_check. Value must be off or on ***

Creating a jail from the command line and through the regular wizard work fine.
This was reported for one of the nightly releases: https://redmine.ixsystems.com/issues/70993?issue_count=29&issue_position=1&next_issue_id=59688

1553881701836.png
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Needs reporting if it's not already under FN11.2-U4 issues.
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Last edited:

Snow

Patron
Joined
Aug 1, 2014
Messages
309
<<<I also have said problem. :(
Is the fix planed to be included with the new update? Any one have a work around using the GUI?
I can Install plugins no problem, but when I go to make a Custom Jail It does this.

Code:
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 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))
RuntimeError: ***
no is not a valid value for hostid_strict_check.
Value must be off or on
***
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
<<<I also have said problem. :(
Is the fix planed to be included with the new update? Any one have a work around using the GUI?
I can Install plugins no problem, but when I go to make a Custom Jail It does this.

Code:
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 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))
RuntimeError: ***
no is not a valid value for hostid_strict_check.
Value must be off or on
***

The 11.2u4 has just been released. Ive updated but haven't had a chance to try it.
 

Snow

Patron
Joined
Aug 1, 2014
Messages
309
The 11.2u4 has just been released. I've updated but haven't had a chance to try it.
For some reason it is not showing a update for me.
 

Snow

Patron
Joined
Aug 1, 2014
Messages
309
Why have they made it so dam hard to download other Versions of FreeNas from their site!!!!
I swear I feel like I should start Handing out Darwinism Awards, I can not find old ver of FreeNas or newer trains. I spent about 15 to 20 Mins looking I am giving up.:mad::mad::rolleyes:
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Why have they made it so dam hard to download other Versions of FreeNas from their site!!!!
I swear I feel like I should start Handing out Darwinism Awards, I can not find old ver of FreeNas or newer trains. I spent about 15 to 20 Mins looking I am giving up.:mad::mad::rolleyes:

Try manually checking for updates. Double check you are on the 11.2 stable train.

If that's doesn't work. Save your config. Download the full FreeNAS file 11.2u4 from website, then reinstall and restore config.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925

Snow

Patron
Joined
Aug 1, 2014
Messages
309
11.2-U4 Fix's this Problem at lest for me.
 

Teeps

Dabbler
Joined
Sep 13, 2015
Messages
37
Very strange.. I saw this in 11.2-U2 just now so I updated to U7 to fix it but it's still happening. FWIW it didn't happen on U2 the first time I made a jail, but I accidentally made the jail 11.3 and I'm on 11.2 and it wouldn't start so I deleted it. When I tried making it again with 11.2 for the jail os is when I got this bug.


Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 405, in _create_jail
value, config = iocjson.json_check_prop(key, value, config)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_json.py", line 1410, in json_check_prop
silent=self.silent)
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)
RuntimeError: no is not a valid value for hostid_strict_check.
Value must be off or on

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 133, in main_worker
res = loop.run_until_complete(coro)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 93, in _run
return await self._call(name, serviceobj, methodobj, params=args, job=job)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 206, 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 412, in _create_jail
raise RuntimeError(f"***\n{err}\n***\n")
RuntimeError: ***
no is not a valid value for hostid_strict_check.
Value must be off or on
***

"""

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 333, in run
await self.future
File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 359, in __run_body
rv = await self.middleware._call_worker(self.method_name, *self.args, job={'id': self.id})
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1072, in _call_worker
return await self.run_in_proc(main_worker, name, args, job)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 995, 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 971, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
RuntimeError: ***
no is not a valid value for hostid_strict_check.
Value must be off or on
***
 
Top