Jail templates missing / in a inconsistent state

Status
Not open for further replies.

dlaflamme

Dabbler
Joined
Jan 17, 2016
Messages
16
Symptom: Jails -> View Jail Templates shows only one template, VirtualBox-4.3.12. This is strange as I have both plugin jails and standard jails that were created (and still exist) with those respective jail templates.

Data:
  • Build (from GUI): FreeNAS-9.10.1 (d989edd)
  • uname:
Code:
% uname -a
FreeBSD storage.lan 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946=5327704(9.10-STABLE): Wed Aug  3 12:13:26 PDT 2016     root@build.ixsystems.com:/tank/home/nightlies/build-freenas9/_BE/objs/tank/home/nightlies/build-freenas9/_BE/os/sys/FreeNAS.amd64  amd64
%

  • warden jail template zfs datasets:
Code:
% zfs list | grep warden
tank/jails/.warden-template-VirtualBox-4.3.12  742M  3.54T  742M  /mnt/tank/jails/.warden-template-VirtualBox-4.3.12
tank/jails/.warden-template-pluginjail  530M  3.54T  530M  /mnt/tank/jails/.warden-template-pluginjail
tank/jails/.warden-template-pluginjail-9.3-x64  508M  3.54T  508M  /mnt/tank/jails/.warden-template-pluginjail-9.3-x64
tank/jails/.warden-template-standard-9.3-x64  2.06G  3.54T  2.06G  /mnt/tank/jails/.warden-template-standard-9.3-x64
%

  • FreeNAS DB:
Code:
# sqlite3 /data/freenas-v1.db
SQLite version 3.11.1 2016-03-03 16:17:53
Enter ".help" for usage hints.
sqlite> select * from jails_jailtemplate;
0|FreeBSD|x64|1|http://download.freenas.org/jails/9.2/x64/freenas-virtualbox-4.3.12.tgz||13|VirtualBox-4.3.12
1|FreeBSD|x86|0|http://download.freenas.org/jails/10/x86/freenas-standard-x86-10.3-RELEASE.tgz|http://download.freenas.org/jails/10/x86/freenas-standard-x86-10.3-RELEASE.mtree|14|standard-x86
1|FreeBSD|x86|0|http://download.freenas.org/jails/10/x86/freenas-pluginjail-x86-10.3-RELEASE.tgz|http://download.freenas.org/jails/10/x86/freenas-pluginjail-x86-10.3-RELEASE.mtree|15|pluginjail-x86
1|FreeBSD|x64|0|http://download.freenas.org/jails/10/x64/freenas-standard-10.3-RELEASE.tgz|http://download.freenas.org/jails/10/x64/freenas-standard-10.3-RELEASE.mtree|16|standard
1|FreeBSD|x64|0|http://download.freenas.org/jails/10/x64/freenas-pluginjail-10.3-RELEASE.tgz|http://download.freenas.org/jails/10/x64/freenas-pluginjail-10.3-RELEASE.mtree|17|pluginjail
sqlite>


Other:
  • I can create a VirtualBox jail without issue
Questions:
  • How can I fix this?
  • Where did the 9.x jails (in the DB) go?
  • Why don't the 10.x jails (in the DB) show up in the GUI?
  • Is the 9.x vs 10.x inconsistency in some of the output expected?
  • Did I do something wrong to get it into this state?
Happy to file a bug/provide more info if appropriate.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Seems perfectly normal to me. 'no template' means a standard jail. Have you tried creating a jail to see your options?
 

dlaflamme

Dabbler
Joined
Jan 17, 2016
Messages
16
Hmm, interesting. So I was just able to create a standard jail by selecting the "-----" option in advanced mode in the Add Jail window. For some reason, when I did this last night I got an error message about the template not being found, which prompted by questions above.

At any rate, things still seem a bit off. For example:
- why do the 10.x jail templates not explicitly appear in the jail template list?
- what happened to the 9.3 jail templates? The behavior I would expect is for both the 10.x and 9.3 template to be available for new jail creation.

So, despite now being able to create a standard jail from the GUI, doing so by selecting "-----" is kind of bizzare.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
It's always been like that. ----- is standard jail and has been since..forever as long as I can remember.


If you're on 9.10.x you should not have 9.3 jails available to you because the base OS is now freebsd10
 

dlaflamme

Dabbler
Joined
Jan 17, 2016
Messages
16
OK, fair enough. I guess I don't remember that and its counter-intuitive. "warden template list", for example, does what I would expect and lists all templates.

Thanks for your help.
 
Status
Not open for further replies.
Top