rposudnevskiy / RBDSR

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

v3.0 cannot activate HA on xcp-cluster with ceph storage #94

Closed northbear closed 5 years ago

northbear commented 5 years ago

I cannot activate HA on xcp-ng 2 nodes cluster with ceph mimic by RBDSR v3.0. After trying It provides error notification: "This operation cannot be performed because VDI OpaqueRef: e95c4457-a241... could not be properly attached to the VM" Logs attached below: SMlog.ha-start-fails.log xensource.ha-start-fails.log

northbear commented 5 years ago

It looks like it's an issue of xapi. It tries to call SR.attach with incorrect set of configuration keys.

rposudnevskiy commented 5 years ago

Hi, It should work after commit d7f9a35 Just create new SR as described in README or if you want to use previously created SR use this method:

I am not sure that this is a bug of XAPI as you mentioned here xcp-ng/xcp#81. Maybe this is intended behavior of XAPI. So the plugin add sr_uuid to config on SR creating, but you should specify device-config:sr_uuid if you introduce the existing SR

northbear commented 3 years ago

Good job. Thanks... I supposed that the variable sr_uuid should be initialized in any case on that stage. At least I didn't find any reason why it cannot be initialized. The SR already exists anyway. Though they didn't use it at that time it may be used later in the next versions. Sorry, I'm not tracking the report. I've moved to another company and position and now I'm far away from Ceph and XCP. Anyway, I have to say that except of couple small bugs the plugin worked pretty well. Way to go!