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@lists.xensource.com http://lists.xensource.com/xen-devel
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@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > Srivatsa Vaddagiri > Sent: 07 June 2005 10:40 > To: xen-devel@lists.xensource.com > 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@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
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() 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@lists.xensource.com > > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > > Srivatsa Vaddagiri > > Sent: 07 June 2005 10:40 > > To: xen-devel@lists.xensource.com > > 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@lists.xensource.com > > 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@lists.xensource.com http://lists.xensource.com/xen-devel
> 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@lists.xensource.com > > > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > > > Srivatsa Vaddagiri > > > Sent: 07 June 2005 10:40 > > > To: xen-devel@lists.xensource.com > > > 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@lists.xensource.com > > > 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@lists.xensource.com http://lists.xensource.com/xen-devel
Reasonably Related Threads
- Xend fails to start on newly compiled xen dom0 kernel
- [PATCH] btrfs-progs: Check mount status of multidevice filesystems
- [PATCH] Btrfs-progs: check out if the swap device
- [PATCH] btrfs: add framework to read fs info from btrfs-control
- [Patch] Fix blktap to work with a bootloader