rposudnevskiy / RBDSR

RBDSR - XenServer/XCP-ng Storage Manager plugin for CEPH
GNU Lesser General Public License v2.1
58 stars 24 forks source link

XCP 7.6 - Tried everything I can think of.. #96

Open fluiddmotion opened 5 years ago

fluiddmotion commented 5 years ago

Hi, Just wondered if I could get some pointers..

I have Installed everything I can think of but I can never get the SR.Create command to work it always errors with..

Nov 14 01:15:27 xcp-ng-tmiwayvx SMAPIv3: [22463] - ERROR - Unhandled exception#012Traceback (most recent call last):#012 File "/usr/libexec/xapi-storage-script/volume/org.xen.xapi.storage.rbdsr/SR.create", line 20, in #012 from xapi.storage.libs.librbd import utils, ceph_utils, rbd_utils, meta#012ImportError: No module named libs.librbd

I have installed every lib module I can find, to no avail,, Yet I can connect to the ceph cluster correctly from the host.

My next try is on 7.5 and see if i have the same problem.

kenneth104 commented 5 years ago

Oh,I have the same problem

https://github.com/rposudnevskiy/RBDSR/issues/97

kenneth104 commented 5 years ago

ok,i found the python error Because in /lib/python2.7/site-packages/xapi/storage/libs lack file__init__.py So SR.create Line 20 unable to import/lib/python2.7/site-packages/xapi/storage/libs/librbd *.py files

Solution

touch /lib/python2.7/site-packages/xapi/storage/libs/__init__.py

Have a nice day!