rposudnevskiy / RBDSR

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

Ansible + some fixes #5

Closed Emmenemoi closed 8 years ago

Emmenemoi commented 8 years ago

Add ansible playbook to deploy the plugin to xenserver hosts

Add the possibility to configure a specific cephx user to be used (using SR "other_config : user" variable).

Modify the image creation to use rbd image format 2 (If necessary, I could also add this as a config in SR other_config).

rposudnevskiy commented 8 years ago

Great idea to use cephx user, but as far as i know, rbd-fuse doesn't support --name option. It uses only client.admin user by default and this behaviour can't be changed. So that the string

util.pread2(["rbd-fuse", "-p", self.CEPH_POOL_NAME, self.SR_ROOT, "--name", self.CEPH_USER])

in SR.attach function in cephutils.py may cause an error.

Anyway, I think we can merge this request, but FUSE mode should be tested.

Emmenemoi commented 8 years ago

I'll post an update to fallback to default mode if the user is different than admin