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/
Home Products Support Community News


[Xen-devel] [PATCH] Fix xapi xm-tests

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xapi xm-tests
From: Andreas Florath <xen@xxxxxxxxxxxx>
Date: Thu, 20 Aug 2009 11:17:39 +0200
Delivery-date: Thu, 20 Aug 2009 02:18:12 -0700
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) H3 (4.1.6)

The attached patch fixes xapi xm-test:
o outdated XenAPI calls were removed from testcase
o minor problem with XendLocalStorageRepository
  is fixed (missed list_images() function - which
  is moved from the XenQCoWStroageRepo to the common
  base class XendStorageRepository)
  which was detected running 02_xapi-vbd_basic.
o XenAPI session handling and connecting is fixed.
o 03_xapi-network_pos was rewritten and now uses

During execution of 02_xapi-vbd_basic it was detected, that the XendLocalStorageRepository is missing the list_images() method which is needed for vbd XenAPI calls. (see attached stack trace)

Attached you can also find the current xm-test report (with applied patches).

Kind regards


File "/usr/lib/python2.5/site-packages/xen/util/xmlrpclib2.py", line 131, in _marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/lib/python2.5/SimpleXMLRPCServer.py", line 415, in _dispatch
    return func(*params)
  File "/usr/lib/python2.5/site-packages/xen/xend/XendAPI.py", line 236, in f
    return func(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/xen/xend/XendAPI.py", line 271, in check_session
    return func(self, session, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/xen/xend/XendAPI.py", line 409, in <lambda>
    \047SR\047, func, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/xen/xend/XendAPI.py", line 283, in _check_ref
    return func(api, session, ref, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/xen/xend/XendAPI.py", line 2668, in SR_get_VDIs
    return self._get_SR_func(ref, \047list_images\047)
File "/usr/lib/python2.5/site-packages/xen/xend/XendAPI.py", line 2661, in _get_SR_func
AttributeError: XendLocalStorageRepo instance has no attribute \047list_images\047

Xm-test timing summary:
  Run Started : Thu, 20 Aug 2009 09:32:26 +0200
  Run Stoped  : Thu, 20 Aug 2009 10:18:50 +0200
Xm-test execution summary:
  PASS:  104
  FAIL:  8
  XPASS: 1
  XFAIL: 2


 FAIL: 02_block_attach_file_device_pos
         xm block-attach returned invalid 256 != 0

 FAIL: 05_block_attach_and_dettach_device_repeatedly_pos
         xm block-attach returned invalid 256 != 0

 FAIL: 09_block_attach_and_dettach_device_check_data_pos
         xm block-attach returned invalid 256 != 0

 FAIL: 10_block_attach_dettach_multiple_devices
         xm block-attach returned invalid 256 != 0

 FAIL: 11_block_attach_shared_dom0
         Unable to mount /dev/ram0 on ./mnt

 FAIL: 16_create_smallmem_neg
         Unable to start a domain with 16 MB

XFAIL: 02_network_local_ping_pos
         ping loopback failed for size 65507. ping eth0 failed for size 65507.

XFAIL: 11_network_domU_ping_pos
         Ping failed for size 65507.

Attachment: xu-xm-test-xapi-01.hg-export
Description: Binary data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix xapi xm-tests, Andreas Florath <=