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-users

Re: [Xen-devel] cannot concatenate 'str' and 'Nonetype' object with crea

Sorry, never mind, as I found out in this
/usr/lib/python/xen/util/blkif.py file, it is about the block devices.
I checked the whole thing and it couldn't find the valid block device,
this was due to a false location in my config file, that's where the
strange complain came from, as it turned out.
Not a very friendly err message, if a valid block device can't be
located. ;-)

I can proceed again :)

Greetz Blurg

Although very unlikely, it seems Jurgen Stroo stated on Jun 17 that :

> Hi, I get this strange error about string and nonetype concatenating, but
> I think I am not sure why it is complaining at having a Nonetype
> somewhere, as if I did not define some configuration option? I use the
> following command (below that, there is a dry-run
> result):
>
> FYI: I removed the loopback.o from the drivers/xen/netback/Makefile and
> recompiled the whole thing. This was because Xen unstable did not work,
> some strange behaviour with arp. Now it does work, the veth0 interface and
> the network.
>
> megalosaurus:/etc/xen# xm create -c xm-machine01 vmid=1
> Using config file "xm-machine01".
> VIRTUAL MEMORY ARRANGEMENT:
>  Loaded kernel: 0xc0100000->0xc0353f04
>  Init. ramdisk: 0xc0354000->0xc0354000
>  Phys-Mach map: 0xc0354000->0xc0374000
>  Page tables:   0xc0374000->0xc0376000
>  Start info:    0xc0376000->0xc0377000
>  Boot stack:    0xc0377000->0xc0378000
>  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
>
>
>
> megalosaurus:/etc/xen# xm create -cn xm-machine01 vmid=1
> Using config file "xm-machine01".
> (vm
>     (name machine01)
>     (memory 128)
>     (cpu 1)
>     (image
>         (linux
>             (kernel /boot/vmlinuz-2.6.11-xenU)
>             (root '/dev/hda1 ro')
>             (vcpus 4)
>         )
>     )
>     (device
>         (vbd
>             (uname file:/mnt/xenu/machine01/root_fs_machine01)
>             (dev hda1)
>             (mode w)
>         )
>     )
>     (device
>         (vbd
>             (uname file:/mnt/xenu/machine01/swap_fs_machine01)
>             (dev hda2)
>             (mode w)
>         )
>     )
>     (device (vif (mac aa:00:00:6a:60:02)))
>     (memmap )
>     (device_model )
>     (device_config )
>
> _______________________________________________
> 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

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