Open kenneth104 opened 5 years ago
cat /var/log/SMlog
Jan 6 15:13:48 xcp-ng-hpayspbf SMAPIv3: [25779] - INFO - called as: ['/usr/libexec/xapi-storage-script/volume/org.xen.xapi.storage.rbdsr/Plugin.Query', '--json']
Jan 6 15:13:48 xcp-ng-hpayspbf SMAPIv3: [25800] - 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 <module>#012 from xapi.storage.libs.librbd import utils, ceph_utils, rbd_utils, meta#012ImportError: No module named libs.librbd
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!
@rposudnevskiy
0,mimic.repo is't OK,i'm try luminous it's work
1,install.sh Line 115 not qemu-dp
in xcp-ng-extras_testing,will in xcp-ng-base
2,install.sh Line 116 not glibc-2.17-222.el7
,fix to glibe auto ver for install
3,install.sh Line 184 not /lib/python2.7/site-packages/xapi/storage/libs
,will fix
mkdir /lib/python2.7/site-packages/xapi/storage/libs
mkdir /lib/python2.7/site-packages/xapi/storage/libs/librbd
4,add touch /lib/python2.7/site-packages/xapi/storage/libs/__init__.py
after that
mkdir /lib/python2.7/site-packages/xapi/storage/libs/librbd
in install.sh
please fix this issues :D
At 1 I run this sh, but the "mimic" ver repo is not found in Centos-Base
sh <(curl -s https://raw.githubusercontent.com/rposudnevskiy/RBDSR/v3.0/netinstall.sh) mimic
So, run this, it's DEFAULT_CEPH_VERSION="luminous"
sh <(curl -s https://raw.githubusercontent.com/rposudnevskiy/RBDSR/v3.0/netinstall.sh)
At 2 Oh, the install.sh line 184 can't mkdir,manual operation
mkdir /lib/python2.7/site-packages/xapi/storage/libs
At 3 not found glibc-2.17-222.el7, manual yum install glibc-2.17-260.el7
ERROR