<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/ctdb/utils, branch v4-7-stable</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>ctdb: add expiry test for ctdb_mutex_ceph_rados_helper</title>
<updated>2018-08-21T09:47:26+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2018-07-20T15:20:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=cfcee58488410feb9901ba6e5e26efaeee847e1a'/>
<id>cfcee58488410feb9901ba6e5e26efaeee847e1a</id>
<content type='text'>
Kill the ctdb_mutex_ceph_rados_helper with SIGKILL and then confirm
that the lock is automatically released following expiry.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;

Autobuild-User(master): David Disseldorp &lt;ddiss@samba.org&gt;
Autobuild-Date(master): Thu Aug  9 16:26:36 CEST 2018 on sn-devel-144

(cherry picked from commit 4abf348ec4cbb78d3216d5e8c5f3020d4499f10a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Kill the ctdb_mutex_ceph_rados_helper with SIGKILL and then confirm
that the lock is automatically released following expiry.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;

Autobuild-User(master): David Disseldorp &lt;ddiss@samba.org&gt;
Autobuild-Date(master): Thu Aug  9 16:26:36 CEST 2018 on sn-devel-144

(cherry picked from commit 4abf348ec4cbb78d3216d5e8c5f3020d4499f10a)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb_mutex_ceph_rados_helper: fix deadlock via lock renewals</title>
<updated>2018-08-21T09:47:26+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2018-07-19T09:55:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0056094519166614c7c6d6f0851ea183d54f8721'/>
<id>0056094519166614c7c6d6f0851ea183d54f8721</id>
<content type='text'>
RADOS locks without expiry persist indefinitely. This results in CTDB
deadlock during failover if the recovery master dies unexpectedly, as
subsequently elected recovery master nodes can't obtain the recovery
lock.
Avoid deadlock by using a lock expiration time (10s by default), and
renewing it periodically.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13540

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit ce289e89e5c469cf2c5626dc7f2666b945dba3bd)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RADOS locks without expiry persist indefinitely. This results in CTDB
deadlock during failover if the recovery master dies unexpectedly, as
subsequently elected recovery master nodes can't obtain the recovery
lock.
Avoid deadlock by using a lock expiration time (10s by default), and
renewing it periodically.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13540

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit ce289e89e5c469cf2c5626dc7f2666b945dba3bd)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb_mutex_ceph_rados_helper: rename timer_ev to ppid_timer_ev</title>
<updated>2018-08-21T09:47:25+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2018-07-17T21:36:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=3ec4c73a53ec8a9d7d73aad3c88b86e73cbb07fc'/>
<id>3ec4c73a53ec8a9d7d73aad3c88b86e73cbb07fc</id>
<content type='text'>
In preparation for adding a lock refresh timer.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 91a89c146453ca203a83dc2ba555bb93276c4d7f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In preparation for adding a lock refresh timer.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 91a89c146453ca203a83dc2ba555bb93276c4d7f)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb_mutex_ceph_rados_helper: use talloc destructor for cleanup</title>
<updated>2018-08-21T09:47:25+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2018-07-19T16:46:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=05295db70482c35d58ef4a9d541b3ff508769af6'/>
<id>05295db70482c35d58ef4a9d541b3ff508769af6</id>
<content type='text'>
Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 8d30fd591600ac17c742cd78c7bc4056bba6b877)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 8d30fd591600ac17c742cd78c7bc4056bba6b877)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb_mutex_ceph_rados_helper: Set SIGINT signal handler</title>
<updated>2018-08-21T09:47:25+00:00</updated>
<author>
<name>Samuel Cabrero</name>
<email>scabrero@suse.de</email>
</author>
<published>2018-06-15T16:15:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8c16413f6497615e9deaff0199cc734b679e3b1d'/>
<id>8c16413f6497615e9deaff0199cc734b679e3b1d</id>
<content type='text'>
Set a handler for SIGINT to release the lock.

Signed-off-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 85706bd27535eaa4ec653f99b1910fbd8f2aab88)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Set a handler for SIGINT to release the lock.

Signed-off-by: Samuel Cabrero &lt;scabrero@suse.de&gt;
Reviewed-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 85706bd27535eaa4ec653f99b1910fbd8f2aab88)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-pmda: Use modified API in pcp library 4.0</title>
<updated>2018-07-09T10:55:26+00:00</updated>
<author>
<name>Amitay Isaacs</name>
<email>amitay@gmail.com</email>
</author>
<published>2018-03-01T01:32:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=5f0ba9c1d94681eb14636509702b720f50bb37ae'/>
<id>5f0ba9c1d94681eb14636509702b720f50bb37ae</id>
<content type='text'>
Support backward compatibility by checking for __pmID_int type, which
was previously in &lt;pcp/impl.h&gt;.  In the new version, this type is not
defined anymore and there is no need to include &lt;pcp/impl.h&gt;.

Signed-off-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;

Autobuild-User(master): Martin Schwenke &lt;martins@samba.org&gt;
Autobuild-Date(master): Fri Mar  2 00:38:52 CET 2018 on sn-devel-144

(cherry picked from commit 426e4a5a20cff73a80d80b46f15826deac3f934f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Support backward compatibility by checking for __pmID_int type, which
was previously in &lt;pcp/impl.h&gt;.  In the new version, this type is not
defined anymore and there is no need to include &lt;pcp/impl.h&gt;.

Signed-off-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;

Autobuild-User(master): Martin Schwenke &lt;martins@samba.org&gt;
Autobuild-Date(master): Fri Mar  2 00:38:52 CET 2018 on sn-devel-144

(cherry picked from commit 426e4a5a20cff73a80d80b46f15826deac3f934f)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-client: Move sync API to a separate header</title>
<updated>2017-06-07T14:05:27+00:00</updated>
<author>
<name>Amitay Isaacs</name>
<email>amitay@gmail.com</email>
</author>
<published>2017-05-06T10:01:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8ee7cc6bdbe822e644e42f9f4eaed5e725a67ec5'/>
<id>8ee7cc6bdbe822e644e42f9f4eaed5e725a67ec5</id>
<content type='text'>
Signed-off-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-utils: CID 1343331 Unchecked return value from library (CHECKED_RETURN)</title>
<updated>2017-02-24T06:47:09+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2017-02-23T02:14:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=42d05772174d4eb37ab4d3fdca796dbae5ca044b'/>
<id>42d05772174d4eb37ab4d3fdca796dbae5ca044b</id>
<content type='text'>
Explicitly ignore keyboard input in ping_pong.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Explicitly ignore keyboard input in ping_pong.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb: add test script for ctdb_mutex_ceph_rados_helper</title>
<updated>2016-12-09T06:59:33+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2016-12-06T12:03:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=f5536ce1f6ab4e0764e4e806fb0fca5c43051f86'/>
<id>f5536ce1f6ab4e0764e4e806fb0fca5c43051f86</id>
<content type='text'>
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 &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;

Autobuild-User(master): Amitay Isaacs &lt;amitay@samba.org&gt;
Autobuild-Date(master): Fri Dec  9 07:59:33 CET 2016 on sn-devel-144
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;

Autobuild-User(master): Amitay Isaacs &lt;amitay@samba.org&gt;
Autobuild-Date(master): Fri Dec  9 07:59:33 CET 2016 on sn-devel-144
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb: cluster mutex helper using Ceph RADOS</title>
<updated>2016-12-09T03:10:20+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2016-12-01T12:33:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d8b61863ece6c5c231ac3e5b783c725864cfdad0'/>
<id>d8b61863ece6c5c231ac3e5b783c725864cfdad0</id>
<content type='text'>
ctdb_mutex_ceph_rados_helper implements the cluster mutex helper API
atop Ceph using the librados rados_lock_exclusive()/rados_unlock()
functionality.

Once configured, split brain avoidance during CTDB recovery will be
handled using locks against an object located in a Ceph RADOS pool.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ctdb_mutex_ceph_rados_helper implements the cluster mutex helper API
atop Ceph using the librados rados_lock_exclusive()/rados_unlock()
functionality.

Once configured, split brain avoidance during CTDB recovery will be
handled using locks against an object located in a Ceph RADOS pool.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
