[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Error creating domain - int argument required


  • To: Ewan Mellor <ewan@xxxxxxxxxxxxx>
  • From: Kip Macy <kip.macy@xxxxxxxxx>
  • Date: Wed, 21 Sep 2005 17:35:55 -0700
  • Cc: David F Barrera <dfbp@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ignatia Suwarna <isuwarna@xxxxxxxxx>
  • Delivery-date: Thu, 22 Sep 2005 00:33:36 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=K3o5KLAQWBWdHlzDrYL+a7tBjVnWK3vey8dzv6sStEHjDy1pcdrAVvdGfzEkyCk2vgq0FybozdZCyLXACMAqDZQczMpAysZm6NXiB/jdB951knmN9CdrbzsHb53wzbCiWZaRkicZi4W3pXxXO0b1xUVx5a87QjXDxEcHxkN1K8k=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

I found the problem. Your changes to the parsing code earlier today made it less tolerant of unset values where you're expecting a type. Adding cpu=-1 to the command line made the complaints go away.

On line 221 in XendDomainInfo.py you may want to change
        result['cpu']          = get_cfg('cpu',        int)
to
        result['cpu']          = get_cfg('cpu')
and then change the current behaviour for -1 to handle None.

              -Kip

On 9/21/05, Ewan Mellor <ewan@xxxxxxxxxxxxx> wrote:
On Wed, Sep 21, 2005 at 02:54:27PM -0500, David F Barrera wrote:

> On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote:
> > Here is my domU config:
> > kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU "
> > memory=64
> > name="rawhide"
> > nics=1
> > disk=['file:/root/fedora.img, sda1, w']
> > root="/dev/sda1"
> > extra="rp selinux=0 3"
> >
> > I also started over with hda1, since there is /dev/hda1, but it gave
> > the same error:
> > Error creating domain, int required.
> >
> > Is this a known issue? Or something wrong with my config??
>
> I think it is a bug. I am seeing this problem, too, using the latest hg
> pull, changeset 6987. I have opened up a bugzilla report on it, #246.
>
> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=246
>
> x335b:/tmp/xen # xm create -c vm1.cfg
> Using config file "vm1.cfg".
> Error: Error creating domain: int argument required
> x335b:/tmp/xen #

Do you have anything useful in /var/log/xend-debug.log?  Type errors like this
usually appear there.

Ewan.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.