[Trac-bugs] [PC-BSD Trac] #1183: Warden incorrectly reports jails as Running

PC-BSD trac at pcbsd.org
Mon Jun 16 10:57:50 PDT 2014


#1183: Warden incorrectly reports jails as Running
---------------------------+--------------------------
 Reporter:  rpoyner@…      |      Owner:
     Type:  System Defect  |     Status:  new
 Priority:  minor          |  Milestone:
Component:  System Tool    |    Version:  10.0-RELEASE
 Keywords:  warden jails   |
---------------------------+--------------------------
 Warden reports jails as running even when jls does not show them.

 This seems to be an issue warden/scripts/backend/checkstatus.sh

 This script returns 0 aka "Running" on either of 2 conditions.

 1. The jail shows up as running in jls

 2. mount | grep -e ${JAILDIR}/ is true.

 The problem is that if there are additional zfs datasets under ${JAILDIR}
 then the second condition is always true.

 I don't understand the warden code well enough at this point to know the
 reason for the second check, but it seems like the mount check should be
 separated from checkstatus.sh. That would make checkstatus a clean
 running/not running check. The status of the mounts could be tested
 separately as needed.

 Russ Poyner

--
Ticket URL: <http://trac.pcbsd.org/ticket/1183>
PC-BSD <http://trac.pcbsd.org>
PC-BSD Project Management


More information about the Trac-bugs mailing list