1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/utils
David Disseldorp f5536ce1f6 ctdb: add test script for ctdb_mutex_ceph_rados_helper
This standalone test script performs the following:
- using ctdb_mutex_ceph_rados_helper, take a lock on the Ceph RADOS
  object a CLUSTER/$POOL/$OBJECT using the Ceph keyring for $USER
  + confirm that lock is obtained, via ctdb_mutex_ceph_rados_helper "0"
    output
- check RADOS object lock state, using the "rados lock info" command
- attempt to obtain the lock again, using ctdb_mutex_ceph_rados_helper
  + confirm that the lock is not successfully taken
- tell the first locker to drop the lock and exit, via SIGTERM
- once the first locker has exited, attempt to get the lock again
  + confirm that this attempt succeeds

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Dec  9 07:59:33 CET 2016 on sn-devel-144
2016-12-09 07:59:33 +01:00
..
ceph ctdb: add test script for ctdb_mutex_ceph_rados_helper 2016-12-09 07:59:33 +01:00
etcd ctdb-build: move ctdb_etcd_lock to utils/etcd 2016-12-09 04:10:20 +01:00
nagios ctdb-utils: Update Nagios code to use ctdb -X 2014-12-05 21:02:40 +01:00
ping_pong ctdb-utils: Fix CID 1297451 Explicit null dereferenced (FORWARD_NULL) 2016-08-03 05:29:23 +02:00
pmda ctdb-pmda: Use 1s timeout for fetching statistics 2016-08-12 00:32:17 +02:00
scsi_io Clean up warnings: remove unused variable alen from scsi_io 2011-11-09 15:37:24 +11:00
smnotify ctdb: Add a required include 2016-10-17 22:34:20 +02:00