Bug #41332
Check for iocage host release being less than jail release when creating regular jail
Description
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
To test/replicate:
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
History
#1
Updated by Dru Lavigne over 2 years ago
- Assignee changed from Release Council to William Grzybowski
#2
Updated by William Grzybowski over 2 years ago
- Assignee changed from William Grzybowski to Brandon Schneider
Brandon, what is your opinion on merging that change to 11.1?
#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.
#4
Updated by Dru Lavigne over 2 years ago
- Target version changed from Backlog to 11.1-U6
#6
Updated by Brandon Schneider over 2 years ago
- Status changed from Not Started to In Progress
PR: https://github.com/freenas/iocage/pull/19
DESC: Cherry pick commits backwards that check interactive fetch
RISK: Low
ACCEPTANCE: Try to fetch a RELEASE newer than the host
#7
Updated by Brandon Schneider over 2 years ago
- Status changed from In Progress to Ready for Testing
- Needs Merging changed from Yes to No
#8
Updated by Dru Lavigne over 2 years ago
- Needs Doc changed from Yes to No
#9
Updated by Bonnie Follweiler over 2 years ago
- Status changed from Ready for Testing to Passed Testing
- Needs QA changed from Yes to No
Test Passed in FreeNAS-11.1-U6-INTERNAL7
#10
Updated by Dru Lavigne over 2 years ago
- Status changed from Passed Testing to Done