From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Sharma Subject: Re: blkdev_name_to_number issues while running xenU Date: Thu, 25 Aug 2005 16:51:51 -0700 Message-ID: <430E5997.7090101@intel.com> References: <430CEA90.3030608@intel.com> <3d8eece20508250253735bc3af@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3d8eece20508250253735bc3af@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christian.Limpach@cl.cam.ac.uk Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Christian Limpach wrote: > On 8/24/05, Arun Sharma 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