From sub_0@unbreakable.homeunix.org  Sun Jul  6 19:06:26 2003
Return-Path: <sub_0@unbreakable.homeunix.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D189737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Jul 2003 19:06:26 -0700 (PDT)
Received: from unbreakable.homeunix.org (a213-22-54-110.netcabo.pt [213.22.54.110])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9FEE343FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Jul 2003 19:06:16 -0700 (PDT)
	(envelope-from sub_0@unbreakable.homeunix.org)
Message-Id: <20030707020601.E997E52@suzy.unbreakable.homeunix.org>
Date: Mon,  7 Jul 2003 03:06:01 +0100 (WEST)
From: Mrio Freitas <sub_0@netcabo.pt>
Reply-To: Mrio Freitas <sub_0@netcabo.pt>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Non-existing Jails in jls?!
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54163
>Category:       kern
>Synopsis:       Non-existing Jails in jls?!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 06 19:10:15 PDT 2003
>Closed-Date:    Fri Feb 20 04:01:27 PST 2004
>Last-Modified:  Fri Feb 20 04:01:27 PST 2004
>Originator:     Mrio Freitas
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD testmachinex.example.org 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Wed Jul 2 15:58:50 WEST 2003 sub_0@testmachinex.example.org:/usr/obj/usr/src/sys/TEST i386


	
>Description:
I folks
I've noticed a couple of days ago some problems(?) in jail implementation.
Sometimes(I'm not sure under what kind of circunstances this happens),
I can't kill jails which do not seem to exist. Below I wrote what happened
today(this is the second time the issue occurs):

root# jls
   JID  IP Address      Hostname                      Path
     8  192.168.1.44    testmachine.example.org       /usr/jail/192.168.1.44
     6  192.168.1.44    testmachine.example.org       /usr/jail/192.168.1.44
root#

root# killall -j 8
No matching processes were found
root# killall -j 6
No matching processes were found
root# killall -j 1 ( this does not exist but the output is different)
killall: jail_attach(): 1: Invalid argument

No jail ID processes running and jls lists 6,8?! :
root# ps -ax | grep J
root#

Also "sh /etc/rc.d/jail stop" does not work.

I always mount this at startup(fstab):
devfs                   /usr/jail/192.168.1.44/dev      devfs   rw
pocfs                   /usr/jail/192.168.1.44/proc     procfs  rw

host environment's rc.conf:

jail_enable="YES"
jail_list=testmachine
jail_testmachine_hostname="testmachine.example.org"
jail_testmachine_ip="192.168.1.44"
jail_testmachine_rootdir="/usr/jail/192.168.1.44"
jail_testmachine_exec="/bin/sh /etc/rc"
jail_set_hostname_allow="0"
jail_sysvipc_allow="0"

jail environment's rc.conf:
root# cat /usr/jail/192.168.1.44/etc/rc.conf
rpcbind_enable="NO"
network_interfaces=""
sshd_enable="YES"
sendmail_enable="NONE"
linux_enable="YES"
inetd_enable="YES"
inetd_flags="-wW -a 192.168.1.44"

I also binded sshd in address 192.168.1.44.

Do you know what's going on?

Thanks in advance.


>How-To-Repeat:
No idea.
>Fix:



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: Fri Feb 20 03:59:51 2004 PST 
State-Changed-Why:  
Fixed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54163 
>Unformatted:
