Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcp-ng 7.6 can't create ceph SR #97

Open
kenneth104 opened this issue Jan 5, 2019 · 3 comments
Open

xcp-ng 7.6 can't create ceph SR #97

kenneth104 opened this issue Jan 5, 2019 · 3 comments

Comments

@kenneth104
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

kenneth104 commented Jan 7, 2019

@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

@kenneth104 kenneth104 reopened this Jan 7, 2019
minli1 pushed a commit to minli1/RBDSR that referenced this issue Feb 20, 2019
minli1 pushed a commit to minli1/RBDSR that referenced this issue Feb 20, 2019
minli1 pushed a commit to minli1/RBDSR that referenced this issue Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant