Check for iocage host release being less than plugin release when fetching plugin
This is a follow up issue to https://redmine.ixsystems.com/issues/36598#note-22, created as per Brandon's request.It is possible to create plugin jails with a release greater that the release of the FreeNAS host.
To replicate in a 11.1 system, e.g. 11.2-BETA1, run the following command:
sudo iocage fetch --plugins ip4_addr="em0|192.168.0.212/24"
- Pick no. 15 for plexmedia-server
- check that the jail is running
- stop the jail
- attempt to start the jail
The jail will refuse to start, due to the following exception:
Host: 11.1 is not greater than jail: 11.2 This is unsupported.
This check happens too late in the process; the exception should happen upfront and prevent the jail from being created in the first place.