All of lore.kernel.org
 help / color / mirror / Atom feed
* blkdev_name_to_number issues while running xenU
@ 2005-08-24 21:45 Arun Sharma
  2005-08-25  9:53 ` Christian Limpach
  0 siblings, 1 reply; 3+ messages in thread
From: Arun Sharma @ 2005-08-24 21:45 UTC (permalink / raw)
  To: xen-devel


Anytime I try to start xenU, it fails the first time with the traces 
below. The second invocation is ok (but doesn't boot yet - still debugging).

blkdev_name_to_number() failures don't seem to be benign this time..

	-Arun

Traceback (most recent call last):
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 566, in construct
     self.configure()
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 967, in configure
     self.create_devices()
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 796, in 
create_devices
     self.create_configured_devices()
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 785, in 
create_configured_devices
     self.createDevice(ctrl_type, dev_config)
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 410, in 
createDevice
     backdb['physical-device'] = "%li" % blkdev_name_to_number(node)
   File "/usr/lib/python/xen/util/blkif.py", line 27, in 
blkdev_name_to_number
     if re.match( '/dev/sd[a-p]([1-9]|1[0-5])?', n):
   File "/usr/lib/python2.3/sre.py", line 132, in match
     return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
Traceback (most recent call last):
   File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 78, in 
op_create
     dominfo = self.xd.domain_create(config)
   File "/usr/lib/python/xen/xend/XendDomain.py", line 292, in domain_create
     dominfo = XendDomainInfo.create(self.dbmap, config)
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 161, in create
     vm.construct(config)
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 573, in construct
     self.destroy()
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 694, in destroy
     self.cleanup()
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 665, in cleanup
     self.release_devices()
   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 717, in 
release_devices
     Blkctl.block('unbind', devdb['type'].getData(),
   File "/usr/lib/python/xen/xend/xenstore/xsobj.py", line 425, in 
__getitem__
     v = self.readChildDB(k)
   File "/usr/lib/python/xen/xend/xenstore/xsobj.py", line 521, in 
readChildDB
     raise LookupError("invalid key '%s'" % k)
LookupError: invalid key 'type'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: blkdev_name_to_number issues while running xenU
  2005-08-24 21:45 blkdev_name_to_number issues while running xenU Arun Sharma
@ 2005-08-25  9:53 ` Christian Limpach
  2005-08-25 23:51   ` Arun Sharma
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Limpach @ 2005-08-25  9:53 UTC (permalink / raw)
  To: Arun Sharma; +Cc: xen-devel

On 8/24/05, Arun Sharma <arun.sharma@intel.com> wrote:
>   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 410, in
> createDevice
>     backdb['physical-device'] = "%li" % blkdev_name_to_number(node)
>   File "/usr/lib/python/xen/util/blkif.py", line 27, in
> blkdev_name_to_number
>     if re.match( '/dev/sd[a-p]([1-9]|1[0-5])?', n):

You might find it helpful to add something like log.error(node) in
XendDomainInfo.py before the line which calls blkdev_name_to_number
and see what's in node.

     christian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: blkdev_name_to_number issues while running xenU
  2005-08-25  9:53 ` Christian Limpach
@ 2005-08-25 23:51   ` Arun Sharma
  0 siblings, 0 replies; 3+ messages in thread
From: Arun Sharma @ 2005-08-25 23:51 UTC (permalink / raw)
  To: Christian.Limpach; +Cc: xen-devel

Christian Limpach wrote:
> On 8/24/05, Arun Sharma <arun.sharma@intel.com> wrote:
> 
>>  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 410, in
>>createDevice
>>    backdb['physical-device'] = "%li" % blkdev_name_to_number(node)
>>  File "/usr/lib/python/xen/util/blkif.py", line 27, in
>>blkdev_name_to_number
>>    if re.match( '/dev/sd[a-p]([1-9]|1[0-5])?', n):
> 
> 
> You might find it helpful to add something like log.error(node) in
> XendDomainInfo.py before the line which calls blkdev_name_to_number
> and see what's in node.
> 

The value of node was None (because I have no /dev/hda on the host).

[2005-08-25 18:30:11 xend] DEBUG (blkif:24) exception looking up device 
number for hda: [Errno 2] No such file or directory: '/dev/hda'
[2005-08-25 18:30:11 xend] INFO (XendDomainInfo:411) arun node: None
[2005-08-25 18:30:11 xend] DEBUG (blkif:24) exception looking up device 
number for None: coercing to Unicode: need string or buffer, NoneType found

	-Arun

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-25 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24 21:45 blkdev_name_to_number issues while running xenU Arun Sharma
2005-08-25  9:53 ` Christian Limpach
2005-08-25 23:51   ` Arun Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.