rposudnevskiy / RBDSR

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

Fork the plugin to different version for Xen6.5 Xen7.0 and Xen7.1 #29

Open maxcuttins opened 7 years ago

maxcuttins commented 7 years ago

New version of XenServer 7.1 is just here. I don't think is a good idea to have 1 plugin for all version. Probably is better to have 3 plugins to have a best specific support for every platform. I don't know really but maybe features can be differents across different XenServers.

What do you think?

chenull commented 7 years ago

i've just tried @maxcuttins fork (merged recently) on Xenserver 7.1. the netinstall script succeed, but the pbd-plug was failed. This can be fixed using old installation procedure (before #27 merge). The error was:

# xe pbd-plug uuid=f5e0c8c1-671e-9dd2-4763-770fb175c395
The SR could not be connected because the driver was not recognised.
driver: rbd

note that in xapi.conf, rbd is already whitelisted.

maxcuttins commented 7 years ago

Can you try this command:

grep "sm-plugins" /etc/xapi.conf

maxcuttins commented 7 years ago

Ok, i found what was missing. The installer use relative path to make the link. Can you execute this code?

ln -s /opt/xensource/sm/RBDSR.py /opt/xensource/sm/RBDSR

You'll need to restart the XenToolStack:

xe-toolstack-restart

And see if it works?

chenull commented 7 years ago

yeah that worked 👍

joseluisgg commented 6 years ago

Thanks for this project. I am experiencing the same issue with XenServer 7.1 CU1

The SR could not be connected because the driver was not recognised. driver: rdb

UNIX /var/lib/xcp/xapi|dispatch:PBD.plug D:58de9cf4e3da|backtrace] Raised Server_error(SR_UNKNOWN_DRIVER, [ rdb ])

RBDSR, and RBDSR.py exist. It also exists rbdsr_lock.py since it was mentioned some installers overlooked to copy that one. rdb is in the whitelist and this shows up too: |dbsync (update_env) R:0ceb599d3efe|xapi] Registering SM plugin rbd (version 1.0)

PBD created with default values.

Thanks and regards

rposudnevskiy commented 6 years ago

Hi, Which version of RBDSR did you use?

joseluisgg commented 6 years ago

Thanks. From the netinstall.sh , it seems 1.0 REPO="https://github.com/rposudnevskiy" PROJECT="RBDSR" BRANCH="1.0"

joseluisgg commented 6 years ago

After some investigation, this was a failure on my end since it's rbd and not rdb Thanks Roman!