[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] Project KRONOS - SM drivers not detected anymore after upgrade from repo
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |