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 16:55:56 -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="===============0409715079==" 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 --===============0409715079== Content-Type: multipart/alternative; boundary="----=_Part_4412_14139502.1127346956312" ------=_Part_4412_14139502.1127346956312 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm seeing this now as well. It may be a new regression. Next time a changeset is hit where this config works without any issues let me know - I'm not having much luck. -bash-3.00# xm create -f builddomain.cfg -c Using config file "builddomain.cfg". Error: Error creating domain: int argument required # unremarkable config that worked yesterday -bash-3.00# cat builddomain.cfg kernel =3D "vmlinuz" memory =3D 512 name =3D "test" vcpus =3D 4 vif =3D [ 'mac=3Daa:00:00:00:00:00, bridge=3Dxen-br0' ] #disk =3D [ 'file:newfs.00.vbd,hda,w' ] disk =3D [ 'phy:loop2,hda1,w' ] dhcp=3D"dhcp" root =3D "/dev/hda1 ro" # the device is setup -bash-3.00# losetup /dev/loop2 /dev/loop2: [000c]:4383807 (newfs.01.vbd), offset 16384 # the device node name is readily available -bash-3.00# ls -l /dev/hda1 brw-rw-r-- 1 root root 3, 1 Sep 21 16:46 /dev/hda1 The backtrace from xend-debug.log: raceback (most recent call last): File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 78, in op_create dominfo =3D self.xd.domain_create(config) File "/usr/lib/python/xen/xend/XendDomain.py", line 273, in domain_create dominfo =3D XendDomainInfo.create(self.dbmap.getPath(), config) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 146, in create vm.construct() File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 719, in construct self.info['bootloader'])) File "/usr/lib/python/xen/xend/image.py", line 158, in initDomain log.debug("initDomain: cpu=3D%d mem_kb=3D%d ssidref=3D%d dom=3D%d", cpu, me= m_kb, ssidref, dom) File "/usr/lib/python2.3/logging/__init__.py", line 879, in debug apply(self._log, (DEBUG, msg, args), kwargs) File "/usr/lib/python2.3/logging/__init__.py", line 994, in _log self.handle(record) File "/usr/lib/python2.3/logging/__init__.py", line 1004, in handle self.callHandlers(record) File "/usr/lib/python2.3/logging/__init__.py", line 1037, in callHandlers hdlr.handle(record) File "/usr/lib/python2.3/logging/__init__.py", line 592, in handle self.emit(record) File "/usr/lib/python2.3/logging/handlers.py", line 102, in emit msg =3D "%s\n" % self.format(record) File "/usr/lib/python2.3/logging/__init__.py", line 567, in format return fmt.format(record) File "/usr/lib/python2.3/logging/__init__.py", line 362, in format record.message =3D record.getMessage() File "/usr/lib/python2.3/logging/__init__.py", line 233, in getMessage msg =3D msg % self.args TypeError: int argument required 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_4412_14139502.1127346956312 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm seeing this now as well. It may be a new regression. Next time a changeset is hit where this config works without any issues let me know - I'm not having much luck.

-bash-3.00# xm create -f builddomain.cfg -c
Using config file "builddomain.cfg".
Error: Error creating domain: int argument required

# unremarkable config that worked yesterday
-bash-3.00# cat builddomain.cfg
kernel =3D "vmlinuz"
memory =3D 512
name =3D "test"
vcpus =3D 4
vif =3D [ 'mac=3Daa:00:00:00:00:00, bridge=3Dxen-br0' ]
#disk =3D [ 'file:newfs.00.vbd,hda,w' ]
disk =3D [ 'phy:loop2,hda1,w' ]
dhcp=3D"dhcp"
root =3D "/dev/hda1 ro"

# the device is setup
-bash-3.00# losetup  /dev/loop2
/dev/loop2: [000c]:4383807 (newfs.01.vbd), offset 16384

# the device node name is readily available
-bash-3.00# ls -l /dev/hda1
brw-rw-r--  1 root root 3, 1 Sep 21 16:46 /dev/hda1

The backtrace from xend-debug.log:

raceback (most recent call last):
  File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", li= ne 78, in op_create
    dominfo =3D self.xd.domain_create(config)
  File "/usr/lib/python/xen/xend/XendDomain.py", line 273, i= n domain_create
    dominfo =3D XendDomainInfo.create(self.dbmap.getPath(), = config)
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 14= 6, in create
    vm.construct()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 71= 9, in construct
    self.info['bootloader']))
  File "/usr/lib/python/xen/xend/image.py", line 158, in ini= tDomain
    log.debug("initDomain: cpu=3D%d mem_kb=3D%d ssidref= =3D%d dom=3D%d", cpu, mem_kb, ssidref, dom)
  File "/usr/lib/python2.3/logging/__init__.py", line 879, i= n debug
    apply(self._log, (DEBUG, msg, args), kwargs)
  File "/usr/lib/python2.3/logging/__init__.py", line 994, i= n _log
    self.handle(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 1004, = in handle
    self.callHandlers(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 1037, = in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 592, i= n handle
    self.emit(record)
  File "/usr/lib/python2.3/logging/handlers.py", line 102, i= n emit
    msg =3D "%s\n" % self.format(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 567, i= n format
    return fmt.format(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 362, i= n format
    record.message =3D record.getMessage()
  File "/usr/lib/python2.3/logging/__init__.py", line 233, i= n getMessage
    msg =3D msg % self.args
TypeError: int argument required


On 9/21/05, Ewan Mellor <ewan@xensourc= e.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_4412_14139502.1127346956312-- --===============0409715079== 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 --===============0409715079==--