Check for iocage host release being less than jail release when creating regular jail
TLDR - This is a cherry-pick request to get an upstream fix in the freenas/iocage repo to prevent one from creating jails with a release newer of that of the FreeNAS host. This is a follow up to https://redmine.ixsystems.com/issues/39508
root@freenas:~ # cat /etc/version FreeNAS-11.1-U5 (8e2a858a1) root@freenas:~ # freebsd-version 11.1-STABLE root@freenas:~ # iocage create -n foo -r 11.2-RELEASE ip4_addr="em0|192.168.0.199/24" foo successfully created!
It should not allow the jail to be created.
Attempting to start the jail fails, as expected:
root@freenas:~ # iocage start foo Host: 11.1 is not greater than jail: 11.2 This is unsupported.
This was already fixed in iocage upstream via this PR: https://github.com/iocage/iocage/pull/589
#3 Updated by Brandon Schneider over 2 years ago
- Status changed from Unscreened to Not Started
I think there's strong merit. As they will run into this issue otherwise, but I'm not sure if the UI is prepared for a traceback if that happens? We should make sure with Erin/Lola that there aren't any additional things needed on their end if we do backport this commit.