ceph/ceph — pull request #9 by fghaas (2012-03-05 20:41:51+00:00)
Title: OCF resource agents: add rbd

Another Pacemaker resource agent, to tie in with RBD this time.

This RA serves a very different purpose from the the ones I submitted a few weeks ago: it is meant to run on the RBD _client,_ not any host running a ceph daemon.

The RA uses `rbd map`, `rbd unmap` and `rbd showmapped` to start, stop and monitor the RBD resource. It is meant to allow Pacemaker users to use RBD as a near drop-in replacement for iSCSI storage, MD host-based mirroring, or DRBD.

It passes the `ocf-tester` resource agent test suite.

Example configuration (Pacemaker shell syntax):
```
primitive p_rbd_test_foo ocf:ceph:rbd \
params pool="rbd" name="test" snap="foo" \
user="admin" secret="/path/to/secret/file" \
op monitor interval=10
```

The `pool`, `snap`, `user` and `secret` parameters are optional. The default for `pool` is `rbd`.