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-ng 7.6 can't create ceph SR #97

Open kenneth104 opened 5 years ago

kenneth104 commented 5 years ago

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

yum list installed qemu-dp.x86_64 2:2.12.0-1.10.0.1.xcp @xcp-ng-base
python-rbd.x86_64 2:13.2.4-0.el7 @ceph
rbd-nbd.x86_64 2:13.2.4-0.el7 @ceph
glibc.x86_64 2.17-260.el7 @base
glibc-common.x86_64 2.17-260.el7 @base

ERROR

xe sr-create host-uuid=ffa392f9-952b-4654-8b72-4b97e56735ca name-label="CEPH RBD Storage" shared=true type=rbdsr content-type=user device-config:cluster=ceph device-config:image-format=qcow2 device-config:datapath=qdisk
Error code: SCRIPT_FAILED
Error parameters: /usr/libexec/xapi-storage-script/volume/org.xen.xapi.storage.rbdsr/SR.create, non-zero exit and bad json on stdout, 1, , 
kenneth104 commented 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
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!

kenneth104 commented 5 years ago

@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