From mkh01@earthlink.net Sun Apr 8 12:53:22 2007 Received: from elasmtp-banded.atl.sa.earthlink.net (elasmtp-banded.atl.sa.earthlink.net [209.86.89.70]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l38JrGvV008986 for ; Sun, 8 Apr 2007 12:53:21 -0700 (PDT) Received: from [68.188.118.178] (helo=phoenix.sterno.shacknet.nu) by elasmtp-banded.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1HadRr-0002eB-Ov for users@conserver.com; Sun, 08 Apr 2007 15:53:15 -0400 Received: by phoenix.sterno.shacknet.nu (Postfix, from userid 1000) id B73533254D; Sun, 8 Apr 2007 14:53:14 -0500 (CDT) Date: Sun, 8 Apr 2007 14:53:14 -0500 From: Michael Heironimus To: users@conserver.com Subject: uds console FD leak Message-ID: <20070408195314.GA14152@phoenix.sterno.shacknet.nu> Mail-Followup-To: users@conserver.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline User-Agent: Mutt/1.4.2i X-ELNK-Trace: 178efa0cbe84efd874bf435c0eb9d47884d156a99949ad0999361b8410c182dce5547d13802c88e6350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 68.188.118.178 X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2007 19:53:24 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've been setting up conserver to provide console access and logging for VMware machines running Linux, using the uds console type and a virtual serial port. When the VM isn't running conserver uses another file descriptor every time it tries to open the socket. If it's configured to automatically reopen consoles that go down it eventually runs out of file descriptors. I added a few lines to consent.c to close the socket on failure and it seems to work (patch against 8.1.15 attached). I'm not sure that this is really the right way to handle it, but I haven't seen any problems in my testing and the number of open file descriptors holds steady. -- Michael Heironimus --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="conserver.udsclose.diff" *** conserver-8.1.15.orig/conserver/consent.c Fri Jun 16 21:03:15 2006 --- conserver-8.1.15/conserver/consent.c Sat Mar 17 12:15:25 2007 *************** *** 972,975 **** --- 972,978 ---- if (!SetFlags(cofile, O_NONBLOCK, 0)) { ConsDown(pCE, FLAGTRUE, FLAGTRUE); + if (cofile) { + close(cofile); + } return; } *************** *** 982,985 **** --- 985,991 ---- pCE->server, cofile, strerror(errno)); ConsDown(pCE, FLAGTRUE, FLAGTRUE); + if (cofile) { + close(cofile); + } return; } *************** *** 992,995 **** --- 998,1004 ---- pCE->server, cofile); ConsDown(pCE, FLAGTRUE, FLAGTRUE); + if (cofile) { + close(cofile); + } return; } --SUOF0GtieIMvvwua-- From bryan@stansell.org Mon Apr 9 08:57:49 2007 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l39FvnQ3022119 for ; Mon, 9 Apr 2007 08:57:49 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.14.1/8.14.1/Submit) id l39FvnYt022118 for users@conserver.com; Mon, 9 Apr 2007 08:57:49 -0700 (PDT) Date: Mon, 9 Apr 2007 08:57:49 -0700 From: Bryan Stansell To: users@conserver.com Subject: Re: uds console FD leak Message-ID: <20070409155749.GA22205@underdog.stansell.org> References: <20070408195314.GA14152@phoenix.sterno.shacknet.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070408195314.GA14152@phoenix.sterno.shacknet.nu> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2007 15:57:50 -0000 On Sun, Apr 08, 2007 at 02:53:14PM -0500, Michael Heironimus wrote: > When the VM isn't running conserver uses another file descriptor every > time it tries to open the socket. thanks for the patch! and thanks to this, i looked at the tcp code (for 'host' type consoles) and it too leaks file descriptors when failures happen early on...so i've patched both cases. 8.1.16 will be available in the very near future. Bryan From bryan@stansell.org Tue Apr 10 14:54:24 2007 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l3ALsOq4019457; Tue, 10 Apr 2007 14:54:24 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.14.1/8.14.1/Submit) id l3ALsOev019456; Tue, 10 Apr 2007 14:54:24 -0700 (PDT) Date: Tue, 10 Apr 2007 14:54:24 -0700 From: Bryan Stansell To: users@conserver.com, announce@conserver.com Subject: conserver-8.1.16 is available Message-ID: <20070410215424.GE22205@underdog.stansell.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 21:54:26 -0000 Not too many changes this time, but the bug fix is certainly important. Enjoy! version 8.1.16 (Apr 10, 2007): - added 'replstring' substitution option - inspired by conversation with Owen DeLong - added '^Ecn' option for writing a note to the logfile - patch by Bryan Schmersal - fixed leaking file descriptors when 'host' and 'uds' consoles fail to connect - based on patch by Michael Heironimus Bryan Stansell From fwernli@ccfw.in2p3.fr Tue Apr 17 03:29:37 2007 Received: from ccimap.in2p3.fr (ccimap.in2p3.fr [134.158.69.6]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l3HATTRF027279 for ; Tue, 17 Apr 2007 03:29:36 -0700 (PDT) Received: from ccfw.in2p3.fr ([134.158.71.67]) by ccimap.in2p3.fr (Netscape Messaging Server 4.15) with ESMTP id JGN14Z00.5QZ for ; Tue, 17 Apr 2007 12:29:23 +0200 Received: by ccfw.in2p3.fr (Postfix, from userid 1000) id 8CF0324101; Tue, 17 Apr 2007 12:29:14 +0200 (CEST) Date: Tue, 17 Apr 2007 12:29:14 +0200 From: Fabien Wernli To: users@conserver.com Subject: contrib area for exec scripts Message-ID: <20070417102914.GK3036@ccfw.in2p3.fr> Mail-Followup-To: users@conserver.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: CC-IN2P3 (CNRS) User-Agent: Mutt/1.5.13 (2006-08-11) X-Spam-Score: -0.74 () BAYES_20 X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: wernli@in2p3.fr List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2007 10:29:38 -0000 Hi, I have forged some exec scripts for conserver, e.g. for use with ipmitool SOL. I would like to make them available to the community. Is there some kind of contrib area I could submit these to? From bryan@stansell.org Tue Apr 24 12:01:27 2007 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l3OJ1RZZ001122 for ; Tue, 24 Apr 2007 12:01:27 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.14.1/8.14.1/Submit) id l3OJ1RrT001121 for users@conserver.com; Tue, 24 Apr 2007 12:01:27 -0700 (PDT) Date: Tue, 24 Apr 2007 12:01:27 -0700 From: Bryan Stansell To: users@conserver.com Subject: Re: contrib area for exec scripts Message-ID: <20070424190127.GG2741@underdog.stansell.org> References: <20070417102914.GK3036@ccfw.in2p3.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070417102914.GK3036@ccfw.in2p3.fr> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 19:01:28 -0000 On Tue, Apr 17, 2007 at 12:29:14PM +0200, Fabien Wernli wrote: > I have forged some exec scripts for conserver, e.g. for use with ipmitool > SOL. I would like to make them available to the community. > Is there some kind of contrib area I could submit these to? sorry i haven't responded to this - i meant to. for now, feel free to just send them to me. i can add them to the website. thanks for sharing! Bryan From john@iastate.edu Thu Apr 26 08:53:34 2007 Received: from mailhub-3.iastate.edu (mailhub-3.iastate.edu [129.186.140.13]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l3QFrRa9003665 for ; Thu, 26 Apr 2007 08:53:33 -0700 (PDT) Received: from mailout-1.iastate.edu (mailout-1.iastate.edu [129.186.140.1]) by mailhub-3.iastate.edu (8.12.11.20060614/8.12.10) with SMTP id l3QFrQEI021818 for ; Thu, 26 Apr 2007 10:53:27 -0500 Received: from (malison.ait.iastate.edu [129.186.145.229]) by mailout-1.iastate.edu with smtp id 39aa_fe6d9560_f40d_11db_9a05_00137253420a; Thu, 26 Apr 2007 10:51:27 -0500 Received: from localhost (john@localhost) by malison.ait.iastate.edu (8.8.8/8.8.5) with SMTP id KAA28777 for ; Thu, 26 Apr 2007 10:53:26 -0500 (CDT) To: users@conserver.com Subject: multiple master ports Date: Thu, 26 Apr 2007 10:53:26 CDT Message-ID: <26100.1177602806@malison.ait.iastate.edu> From: John Hascall X-Spam-Score: 0.001 () BAYES_50 X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 15:53:35 -0000 In looking through the conserver.cf man page I see you specify that certain consoles are mastered on another server with something like: console elsewhere { master some.other.machine; ... } but I'm not seeing where you can say what port that the conserver on 'some.other.machine' is listening on. Does this mean that they all need to be on the same port? For example, we have an existing conserver using the default of 782. Now if I want to install a new one, but I want to use a > 1024 port so that conserver does not have to run as root, and have it forward to the old server for the machines not moved to the new one yet, I'm not seeing how I can do this. Is it possible? Thanks, John From bryan@stansell.org Thu Apr 26 14:06:04 2007 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l3QL64qw005975 for ; Thu, 26 Apr 2007 14:06:04 -0700 (PDT) Received: (from bryan@localhost) by underdog.stansell.org (8.14.1/8.14.1/Submit) id l3QL646u005974 for users@conserver.com; Thu, 26 Apr 2007 14:06:04 -0700 (PDT) Date: Thu, 26 Apr 2007 14:06:04 -0700 From: Bryan Stansell To: users@conserver.com Subject: Re: multiple master ports Message-ID: <20070426210604.GH2741@underdog.stansell.org> References: <26100.1177602806@malison.ait.iastate.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26100.1177602806@malison.ait.iastate.edu> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 21:06:05 -0000 On Thu, Apr 26, 2007 at 10:53:26AM -0500, John Hascall wrote: > but I'm not seeing where you can say what port > that the conserver on 'some.other.machine' is > listening on. Does this mean that they all > need to be on the same port? you are correct...they all need to be talking on the same port. it's just not something that comes up very often (if at all? at least, i don't remember anyone asking for the capability). if you keep the two seperate, it's certainly easy to have a console.cf/.consolerc file that sets the port number appropriately, based on which master you talk to. but the user still needs to know the proper incantation to talk to either the old or new server (and when to). or rename the console command to console-old and let them talk to the old server that way. not ideal at all, but perhaps a good motivation for folks to make the move quicker? (only semi-serious there) Bryan From john@iastate.edu Thu Apr 26 21:25:13 2007 Received: from mailhub-3.iastate.edu (mailhub-3.iastate.edu [129.186.140.13]) by underdog.stansell.org (8.14.1/8.14.1) with ESMTP id l3R4P7eJ008637; Thu, 26 Apr 2007 21:25:12 -0700 (PDT) Received: from mailout-2.iastate.edu (mailout-2.iastate.edu [129.186.140.2]) by mailhub-3.iastate.edu (8.12.11.20060614/8.12.10) with SMTP id l3R4P6AE018351; Thu, 26 Apr 2007 23:25:06 -0500 Received: from (malison.ait.iastate.edu [129.186.145.229]) by mailout-2.iastate.edu with smtp id 2808_065591b0_f477_11db_847b_001372578af6; Thu, 26 Apr 2007 23:23:18 -0500 Received: from localhost (john@localhost) by malison.ait.iastate.edu (8.8.8/8.8.5) with SMTP id XAA25914; Thu, 26 Apr 2007 23:25:06 -0500 (CDT) To: Bryan Stansell Subject: Re: multiple master ports In-reply-to: Your message of Thu, 26 Apr 2007 14:06:04 -0700. <20070426210604.GH2741@underdog.stansell.org> Date: Thu, 26 Apr 2007 23:25:06 CDT Message-ID: <30079.1177647906@malison.ait.iastate.edu> From: John Hascall X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.57 on 209.182.219.30 Cc: users@conserver.com X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 04:25:15 -0000 > On Thu, Apr 26, 2007 at 10:53:26AM -0500, John Hascall wrote: > > but I'm not seeing where you can say what port > > that the conserver on 'some.other.machine' is > > listening on. Does this mean that they all > > need to be on the same port? > > you are correct...they all need to be talking on the same port. > it's just not something that comes up very often (if at all? at least, > i don't remember anyone asking for the capability). if you keep the two > seperate, it's certainly easy to have a console.cf/.consolerc file that > sets the port number appropriately, based on which master you talk to. > but the user still needs to know the proper incantation to talk to > either the old or new server (and when to). or rename the console > command to console-old and let them talk to the old server that way. > not ideal at all, but perhaps a good motivation for folks to make the > move quicker? (only semi-serious there) Well, it's really, really icky, but I found a perversion of the syntax that actually looks like it might work: console dummy { type exec; master -:1782@test.its.iastate.edu; } (Not that I'm recommending anyone depend on this) If I got ambitious and coded up a proper way to do this, say: console dummy { type exec; master test.its.iastate.edu; port 1782; } Would you be interested in it? As an aside, it looks to me like this would also provide a backdoor-way to get groups back because I think you could actually run multiple conservers on a single host, N of them each managing a "group" and the N+1th of them as the master with a config file of nothing but forwards to the consoles managed on the other N. John