From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kip Macy Subject: Re: Error creating domain - int argument required Date: Wed, 21 Sep 2005 17:35:55 -0700 Message-ID: References: <1127263786.23958.170.camel@pluto.linsolutions.com> <1127332468.3724.32.camel@dbarrera_tp> <20050921230746.GA4105@linford.intra> Reply-To: Kip Macy Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0748489872==" Return-path: In-Reply-To: <20050921230746.GA4105@linford.intra> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: David F Barrera , xen-devel , Ignatia Suwarna List-Id: xen-devel@lists.xenproject.org --===============0748489872== Content-Type: multipart/alternative; boundary="----=_Part_4573_1185812.1127349355030" ------=_Part_4573_1185812.1127349355030 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D-= 1 to the command line made the complaints go away. On line 221 in XendDomainInfo.py you may want to change result['cpu'] =3D get_cfg('cpu', int) to result['cpu'] =3D get_cfg('cpu') and then change the current behaviour for -1 to handle None. -Kip On 9/21/05, Ewan Mellor 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=3D"/boot/vmlinuz-2.6.12-1.1447_FC4xenU" > > > memory=3D64 > > > name=3D"rawhide" > > > nics=3D1 > > > disk=3D['file:/root/fedora.img, sda1, w'] > > > root=3D"/dev/sda1" > > > extra=3D"rp selinux=3D0 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=3D246 > > > > 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@lists.xensource.com > http://lists.xensource.com/xen-devel > ------=_Part_4573_1185812.1127349355030 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D-1 to the command line made the complaints go away.

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

            &nb= sp; -Kip

On 9/21/05, Ewan Mellor <e= wan@xensource.com> 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:
> > He= re is my domU config:
> > kernel=3D"/boot/vmlinuz-2.6.12-1.14= 47_FC4xenU "
> > memory=3D64
> > name=3D"rawhide"
= > > nics=3D1
> > disk=3D['file:/root/fedora.img, sda1, w']> > root=3D"/dev/sda1"
> > extra=3D"rp seli= nux=3D0 3"
> >
> > I also started over with hda1, since there is /d= ev/hda1, but it gave
> > the same error:
> > Error creati= ng domain, int required.
> >
> > Is this a known issue? O= r 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 rep= ort on it, #246.
>
> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D246
>> 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/xe= nd-debug.log?  Type errors like this
usually appear there.
=
Ewan.

_______________________________________________
Xen-dev= el mailing list
Xen-devel@lists.xensou= rce.com
http://list= s.xensource.com/xen-devel

------=_Part_4573_1185812.1127349355030-- --===============0748489872== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0748489872==--