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

Re: [Xen-API] Project KRONOS - SM drivers not detected anymore after upg

To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-API] Project KRONOS - SM drivers not detected anymore after upgrade from repo
From: Sébastien Riccio <sr@xxxxxxxxxxxxxxx>
Date: Tue, 30 Aug 2011 13:59:12 +0200
Cc: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Delivery-date: Tue, 30 Aug 2011 05:01:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E5CC164.3050200@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <4E5CC164.3050200@xxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
Hi again,

After doing a little more search, I found out that XenAPI.py was not
found anymore in python modules search path and that prevents the SM
drivers files to be executed.

kronosbox# locate XenAPI.py

/usr/lib/python2.6/site-packages/XenAPI.py
/usr/lib/xen-4.1/lib/python/xen/xm/XenAPI.py
/usr/lib/xen-4.1/lib/python/xen/xm/XenAPI.pyc

I used this little script:

#!/usr/bin/python
import sys
print sys.path

to check what search path are used by python.

It returns:
['/tmp', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6']

(seems site-packages search path has disappeard after the apt-get upgrade)


On a XCP 1.1 box :
['/root', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages']

Found this somewhere on the interweb:

The correct location of Python modules for Python >= 2.6 is
/usr/lib/pythonX.Y/dist-packages. In fact, packages shipping files in
/usr/lib/python2.6/site-packages will break installation of
python2.6-minimal.

So I've symlinked the files in /usr/lib/python2.6/site-packages to /usr/lib/python2.6/dist-packages,
rebooted and all came back to normal.

Maybe the files should be installed in dist-packages directly in the next versions of the packages?


Cheers,
Sébastien

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api