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] blkdev_name_to_number issues while running xenU

To: Christian.Limpach@xxxxxxxxxxxx
Subject: Re: [Xen-devel] blkdev_name_to_number issues while running xenU
From: Arun Sharma <arun.sharma@xxxxxxxxx>
Date: Thu, 25 Aug 2005 16:51:51 -0700
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 25 Aug 2005 23:50:02 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <3d8eece20508250253735bc3af@xxxxxxxxxxxxxx>
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>
References: <430CEA90.3030608@xxxxxxxxx> <3d8eece20508250253735bc3af@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
Christian Limpach wrote:
On 8/24/05, Arun Sharma <arun.sharma@xxxxxxxxx> 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

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

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