From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 6 19:10:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B87F237B401 for ; Sun, 6 Jul 2003 19:10:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C849443FBD for ; Sun, 6 Jul 2003 19:10:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h672AGUp088357 for ; Sun, 6 Jul 2003 19:10:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h672AGvK088356; Sun, 6 Jul 2003 19:10:16 -0700 (PDT) Resent-Date: Sun, 6 Jul 2003 19:10:16 -0700 (PDT) Resent-Message-Id: <200307070210.h672AGvK088356@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mário Freitas Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D189737B401 for ; 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 ; 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: Mário Freitas To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/54163: Non-existing Jails in jls?! X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mário Freitas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 02:10:18 -0000 >Number: 54163 >Category: kern >Synopsis: Non-existing Jails in jls?! >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 06 19:10:15 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mário 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: >Unformatted: