WARNING - OLD ARCHIVES

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

xen-devel

RE: [Xen-devel] Error while creating domains

To: <vatsa@xxxxxxxxxx>
Subject: RE: [Xen-devel] Error while creating domains
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 8 Jun 2005 09:50:31 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 08 Jun 2005 08:49:45 +0000
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcVsBcJ92GXCZbCaQgqSMXeuYyEUsQAATW/g
Thread-topic: [Xen-devel] Error while creating domains
> Turns out that it is a loop device issue. I was using files 
> as disks for the domains and the default max_loop device in 
> dom0 kernel is 8. Hence I couldn't create more than 8 domains!
> 
> After increasing max_loop to 200, I have been able to create 
> upto 20 domains now (which is enough for now!)
> 
> And yeah, the error was because name argument passed was NULL 
> (in python terms) in /usr/lib/python/xen/util:mount_mode()

It would be good to get the error handling path cleaned up if the block
device script returns an error. Volunteers?

Thanks,
Ian 

> 
> On Tue, Jun 07, 2005 at 11:53:23AM +0100, Ian Pratt wrote:
> > 
> > Add some debugging to print 'name' at the appropraite 
> place. What's the
> > configuration file for this domain.
> > 
> > You might want to use the 'dry run' option just to print 
> out the sxp the
> > domain config has been parsed in to. I suspect the block 
> device name is
> > messed up.
> > 
> > Ian 
> > 
> > > -----Original Message-----
> > > From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> > > [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> > > Srivatsa Vaddagiri
> > > Sent: 07 June 2005 10:40
> > > To: xen-devel@xxxxxxxxxxxxxxxxxxx
> > > Subject: [Xen-devel] Error while creating domains
> > > 
> > > I am trying to start a large number of SMP domains (> 50). 
> > > However, I am unable to create more than 7 domains. When I 
> > > try creating the 8th domain, I get this error:
> > > 
> > > Using config file "myconf7".
> > > VIRTUAL MEMORY ARRANGEMENT:
> > >  Loaded kernel: 0xc0100000->0xc0344c24
> > >  Init. ramdisk: 0xc0345000->0xc0345000
> > >  Phys-Mach map: 0xc0345000->0xc0347800
> > >  Page tables:   0xc0348000->0xc034a000
> > >  Start info:    0xc034a000->0xc034b000
> > >  Boot stack:    0xc034b000->0xc034c000
> > >  TOTAL:         0xc0000000->0xc0400000
> > >  ENTRY ADDRESS: 0xc0100000
> > >  VCPUS:         4
> > > Domain construction error: cannot concatenate 'str' and 
> > > 'NoneType' objects Traceback (most recent call last):
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 483, in construct
> > >     self.configure()
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 992, in configure
> > >     self.create_devices()
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 768, in create_devices
> > >     self.create_configured_devices()
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 757, in create_configured_devices
> > >     self.createDevice(ctrl_type, dev_config, recreate=recreate)
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 332, in createDevice
> > >     return ctrl.createDevice(devconfig, recreate=self.recreate)
> > >   File "/usr/lib/python/xen/xend/server/controller.py", line 
> > > 236, in createDevice
> > >     dev.attach(recreate=recreate, change=change)
> > >   File "/usr/lib/python/xen/xend/server/blkif.py", line 
> 221, in attach
> > >     self.setNode(node)
> > >   File "/usr/lib/python/xen/xend/server/blkif.py", line 247, 
> > > in setNode
> > >     mounted_mode = self.check_mounted(node)
> > >   File "/usr/lib/python/xen/xend/server/blkif.py", line 265, 
> > > in check_mounted
> > >     mode = blkif.mount_mode(name)
> > >   File "/usr/lib/python/xen/util/blkif.py", line 73, in mount_mode
> > >     exp = re.compile('^' + name + ' .*[\(,]r(?P<mode>[ow])[,\)]')
> > > TypeError: cannot concatenate 'str' and 'NoneType' objects 
> > > op_create> Exception creating domain:
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", 
> > > line 63, in op_create
> > >     dominfo = self.xd.domain_create(config)
> > >   File "/usr/lib/python/xen/xend/XendDomain.py", line 282, in 
> > > domain_create
> > >     dominfo = XendDomainInfo.vm_create(config)
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 153, in vm_create
> > >     vm.construct(config)
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 483, in construct
> > >     self.configure()
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 992, in configure
> > >     self.create_devices()
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 768, in create_devices
> > >     self.create_configured_devices()
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 757, in create_configured_devices
> > >     self.createDevice(ctrl_type, dev_config, recreate=recreate)
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 
> > > 332, in createDevice
> > >     return ctrl.createDevice(devconfig, recreate=self.recreate)
> > >   File "/usr/lib/python/xen/xend/server/controller.py", line 
> > > 236, in createDevice
> > >     dev.attach(recreate=recreate, change=change)
> > >   File "/usr/lib/python/xen/xend/server/blkif.py", line 
> 221, in attach
> > >     self.setNode(node)
> > >   File "/usr/lib/python/xen/xend/server/blkif.py", line 247, 
> > > in setNode
> > >     mounted_mode = self.check_mounted(node)
> > >   File "/usr/lib/python/xen/xend/server/blkif.py", line 265, 
> > > in check_mounted
> > >     mode = blkif.mount_mode(name)
> > >   File "/usr/lib/python/xen/util/blkif.py", line 73, in mount_mode
> > >     exp = re.compile('^' + name + ' .*[\(,]r(?P<mode>[ow])[,\)]')
> > > TypeError: cannot concatenate 'str' and 'NoneType' objects
> > > Error: Error creating domain: cannot concatenate 'str' and 
> > > 'NoneType' objects
> > > 
> > > 
> > > Is this a bug or a python compatibility issue? FYI, I am 
> > > running this on a 4way Intel box with RHEL4 installed on it. 
> > > I have installed latest (as of 7 June) xen-unstable-src.tgz.
> > > 
> > > 
> > > 
> > > -- 
> > > 
> > > 
> > > Thanks and Regards,
> > > Srivatsa Vaddagiri,
> > > Linux Technology Center,
> > > IBM Software Labs,
> > > Bangalore, INDIA - 560017
> > > 
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-devel
> > > 
> 
> -- 
> 
> 
> Thanks and Regards,
> Srivatsa Vaddagiri,
> Linux Technology Center,
> IBM Software Labs,
> Bangalore, INDIA - 560017
> 

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

<Prev in Thread] Current Thread [Next in Thread>