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

[Xen-devel] Re: [Xen-changelog] [PATCH] Make non-native python path hand

To: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [Xen-changelog] [PATCH] Make non-native python path handling a
From: Ryan Harper <ryanh@xxxxxxxxxx>
Date: Mon, 18 Apr 2005 17:19:28 -0500
Delivery-date: Mon, 18 Apr 2005 22:21:55 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E1DMZpO-0005ip-5Q@xxxxxxxxxxxxxxxxx>
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: <E1DMZpO-0005ip-5Q@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
* BitKeeper Bot <riel@xxxxxxxxxxx> [2005-04-16 10:29]:
> ChangeSet 1.1159.256.97, 2005/04/15 23:00:50+01:00, katzj@xxxxxxxxxx
> 
>       [PATCH] Make non-native python path handling a
<snip>
> --- a/tools/misc/xend 2005-04-15 19:02:35 -04:00
> +++ b/tools/misc/xend 2005-04-15 19:02:35 -04:00
> @@ -22,8 +22,8 @@
>  import os
>  import sys
>  
> -# Default install path for Xen binary packages.
> -sys.path = [ '/usr/lib/python' ] + sys.path
> +# add fallback path for non-native python path installs if needed
> +sys.path.append('/usr/lib/python')
>  from xen.xend.server import SrvDaemon
>  
>  class CheckError(ValueError):

This patch breaks xend in unstable for me.  With the above patch
applied, xend fails to start and dumps the following in
/var/log/xend-debug.log:

xu_notifier_new()
error connecting to xcs(ctrl)! (111)
Traceback (most recent call last):
  File "/usr/sbin/xend", line 180, in ?
    sys.exit(main())
  File "/usr/sbin/xend", line 162, in main
    return daemon.start()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 
524, in start
    self.run()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 
612, in run
    self.listenNotifier()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 
632, in listenNotifier
    p.startListening()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 
91, in startListening
    self._connectToProtocol()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 
109, in _connectToProtocol
    self.startReading()
  File "/usr/lib/python2.3/site-packages/twisted/internet/abstract.py", line 
205, in startReading
    self.reactor.addReader(self)
  File "/usr/lib/python2.3/site-packages/twisted/internet/pollreactor.py", line 
89, in addReader
    self._updateRegistration(fd)
  File "/usr/lib/python2.3/site-packages/twisted/internet/pollreactor.py", line 
52, in _updateRegistration
    poller.unregister(fd)
ValueError: file descriptor cannot be a negative integer (-1)


--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@xxxxxxxxxx

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: [Xen-changelog] [PATCH] Make non-native python path handling a, Ryan Harper <=