From tashi-commits-return-232-apmail-incubator-tashi-commits-archive=incubator.apache.org@incubator.apache.org Tue May 17 22:58:25 2011 Return-Path: X-Original-To: apmail-incubator-tashi-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-tashi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 435F54090 for ; Tue, 17 May 2011 22:58:25 +0000 (UTC) Received: (qmail 82246 invoked by uid 500); 17 May 2011 22:58:25 -0000 Delivered-To: apmail-incubator-tashi-commits-archive@incubator.apache.org Received: (qmail 82231 invoked by uid 500); 17 May 2011 22:58:25 -0000 Mailing-List: contact tashi-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tashi-dev@incubator.apache.org Delivered-To: mailing list tashi-commits@incubator.apache.org Received: (qmail 82223 invoked by uid 99); 17 May 2011 22:58:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 22:58:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 22:58:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 012F623888DD; Tue, 17 May 2011 22:58:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1104617 - /incubator/tashi/trunk/src/tashi/agents/primitive.py Date: Tue, 17 May 2011 22:58:01 -0000 To: tashi-commits@incubator.apache.org From: stroucki@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110517225802.012F623888DD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stroucki Date: Tue May 17 22:58:01 2011 New Revision: 1104617 URL: http://svn.apache.org/viewvc?rev=1104617&view=rev Log: primitive: Log something when a VM exits Modified: incubator/tashi/trunk/src/tashi/agents/primitive.py Modified: incubator/tashi/trunk/src/tashi/agents/primitive.py URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/agents/primitive.py?rev=1104617&r1=1104616&r2=1104617&view=diff ============================================================================== --- incubator/tashi/trunk/src/tashi/agents/primitive.py (original) +++ incubator/tashi/trunk/src/tashi/agents/primitive.py Tue May 17 22:58:01 2011 @@ -182,6 +182,7 @@ class Primitive(object): # XXXstroucki what about paused and saved VMs? # XXXstroucki: do we need to look at Held VMs here? if (i not in self.instances and oldInstances[i].state == InstanceState.Running): + self.log.info("VM exited: %s" % (oldInstances[i].name)) for hook in self.hooks: hook.postDestroy(oldInstances[i])