I use the migration script in 11.1U6 and this left an "empty" string in the release field for me too. I was able to verify my jails versions by running freebsd-version
and copying that into the jail config.json
That advise is in the thread for the bug I reported and I have indeed done that.
I thought the command was slightly more complicated? Executing the .sh for each jail individually, to confirm the version of FreeBSD for jail /itself/ not just FreeNAS?
Regardless, it's been done.
(/mnt/iocage/jails/<jail_name>/config.json) from here I was even able to run iocage upgrade <jail_name> -r 11.1-RELEASE
to bring them all up to 11.1.
My jails section is broken though, there are no jails listed - despite being in /mnt/iocage/jails/ (about 10 folders) NONE are in the list, so, I think iocage can't 'talk' to the jails?
I just looked over the ticket listed in the other post. You may also need to use iocage fetch -r 11.1-RELEASE
or what ever versions your using. If I understand correctly, iocage as setup in FreeNAS tries to use ZFS clones of the -RELEASE datasets as the base for new jails. Though I'm not sure why a migrated jail (a full independent dataset) would complain about the missing -RELEASE dataset but I have no clue how the middleware handles things...
Bear in mind, I can't RUN any iocage commands, due to this.
Code:
root@freenas:~ # iocage list
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/iocage_cli/list.py", line 81, in cli
dataset_type, header, _long, _sort, plugin=plugins, quick=quick)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 1150, in list
quick=quick
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_list.py", line 75, in list_datasets
_all = self.list_all(ds)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_list.py", line 153, in list_all
conf = iocage_lib.ioc_json.IOCJson(mountpoint).json_load()
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_json.py", line 407, in json_load
conf = self.json_check_config(conf)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_json.py", line 910, in json_check_config
with open(freebsd_version, "r") as r:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/iocage/releases/10.3-RELEASE/root/bin/freebsd-version'
root@freenas:~ #