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] Unexpected error: <type 'exceptions.TypeError'>

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Unexpected error: <type 'exceptions.TypeError'>
From: "Phil Winterfield (winterfi)" <winterfi@xxxxxxxxx>
Date: Mon, 9 Nov 2009 13:10:03 -0800
Authentication-results: sj-iport-2.cisco.com; dkim=neutral (message not signed) header.i=none
Delivery-date: Mon, 09 Nov 2009 13:10:39 -0800
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
Thread-index: AcphgQEppVS4CPEMTNSAsngwd2Bu1w==
Thread-topic: Unexpected error: <type 'exceptions.TypeError'>

I am running linux- + xen-3.4.1 c/s 19718.   Everything comes up fine, the xen daemon starts and I then try to create a guest and get the following exception in ‘xm create’:


GreenCity01:/home/ios# xm create -p vm1

Using config file "./vm1".

Unexpected error: <type 'exceptions.TypeError'>


Please report to xen-devel@xxxxxxxxxxxxxxxxxxx

Traceback (most recent call last):

  File "/usr/sbin/xm", line 7, in <module>


  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 3066, in main

    _, rc = _run_cmd(cmd, cmd_name, args)

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 3090, in _run_cmd

    return True, cmd(args)

  File "<string>", line 1, in <lambda>

  File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 1439, in xm_importcommand

    cmd.main([command] + args)

  File "/usr/lib64/python2.6/site-packages/xen/xm/create.py", line 1361, in main

    doc = sxp2xml_inst.convert_sxp_to_xml(config, transient=True)

  File "/usr/lib64/python2.6/site-packages/xen/xm/xenapi_create.py", line 638, in convert_sxp_to_xml


  File "/usr/lib64/python2.6/site-packages/xen/xm/xenapi_create.py", line 629, in conv_chk

    raise "Invalid value: " + val

TypeError: exceptions must be classes or instances, not str


GreenCity01:/home//ios # cat vm1

#  -*- mode: python; -*-


# Python configuration setup for 'xm create'.

# This script sets the parameters used when a domain is created using 'xm create'.

# You use a separate script for each domain you want to create, or

# you can set the parameters for the domain on the xm command line.




# Kernel image file.

kernel = "i86bi_xen-ipbase-ms"

#kernel = "i86linux-i-m"


# Initial memory allocation (in megabytes) for the new domain.

memory = 1024




#vif  = [ 'ip=,bridge=eth0','ip=,bridge=eth1' ]


pci = [ '03:00.0', '03:00.1' ]


# A name for your domain. All domains must have different names.

name = "IOSonXEN1"





The config script and image are the same as those running successfully on linux-2.6.27+xen-3.4.1 systems in my lab.  Not sure what this error is trying to tell me.





Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Unexpected error: <type 'exceptions.TypeError'>, Phil Winterfield (winterfi) <=