WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][XM-TEST] Test for bug #533

To: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XM-TEST] Test for bug #533
From: Dan Smith <danms@xxxxxxxxxx>
Date: Tue, 14 Feb 2006 07:34:24 -0800
Delivery-date: Tue, 14 Feb 2006 15:46:15 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)
This patch adds a test that attempts to create and destroy a domain
1025 times.  Currently, this causes xm to crash after the 1014th cycle
with the following stack trace:

> Traceback (most recent call last):
>   File "/usr/sbin/xm", line 8, in ?
>     from xen.xm import main
>   File "/usr/lib/python/xen/xm/main.py", line 34, in ?
>     import xen.xend.XendProtocol
>   File "/usr/lib/python/xen/xend/XendProtocol.py", line 20, in ?
>     import httplib
>   File "/usr/lib/python2.4/httplib.py", line 70, in ?
>     import mimetools
>   File "/usr/lib/python2.4/mimetools.py", line 6, in ?
>     import tempfile
>   File "/usr/lib/python2.4/tempfile.py", line 33, in ?
>     from random import Random as _Random
>   File "/usr/lib/python2.4/random.py", line 44, in ?
>     from math import log as _log, exp as _exp, pi as _pi, e as _e
> ImportError: /usr/lib/python2.4/lib-dynload/mathmodule.so: cannot open
> shared object file: Too many open files

Since this test takes a long time to run, I have not enabled it by
default, but it should be included in the tree to make bug #533 easily
reproducible.

Perhaps xm-test should have a configure option that enables long,
exhaustive tests?

# HG changeset patch
# User dan@xxxxxxxxxxxxxxxxxxxxx
# Node ID 3e84a0ac070b4c85c81d593b70ee9a23e0c9b2cb
# Parent  fcc833cbaf827327ad9e9348c93aaf7f99f0253f
Add a test for ~1000 create/destroy cycles.  Currently, this causes
xm to crash.

Signed-off-by: Dan Smith <danms@xxxxxxxxxx>

diff -r fcc833cbaf82 -r 3e84a0ac070b 
tools/xm-test/tests/create/16_create_massive.py
--- /dev/null   Thu Jan  1 00:00:00 1970 +0000
+++ b/tools/xm-test/tests/create/16_create_massive.py   Tue Feb 14 07:31:03 
2006 -0800
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+
+# Copyright (C) International Business Machines Corp., 2005
+# Author: Dan Smith <danms@xxxxxxxxxx>
+
+from XmTestLib import *
+
+COUNT=1025
+
+for i in range(0,COUNT):
+       print "Creating %i of %i..." % (i, COUNT)
+       try:
+               dom = XmTestDomain(name="massive-%i" % i)
+               dom.start()
+               console = XmConsole(dom.getName())
+       except DomainError, e1:
+               FAIL("Failed to start domain %i" % i)
+       except ConsoleError, e2:
+               FAIL("Failed to attach console to domain %i" % i)
+       
+       dom.destroy()
-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>