<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/ctdb, 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/build: link ctdb_mutex_ceph_rados_helper against ceph-common</title>
<updated>2018-08-21T09:47:25+00:00</updated>
<author>
<name>David Disseldorp</name>
<email>ddiss@samba.org</email>
</author>
<published>2018-07-09T12:53:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a18bcf23a265b71fa88e1963ea23dfd26beaaec3'/>
<id>a18bcf23a265b71fa88e1963ea23dfd26beaaec3</id>
<content type='text'>
ceph-common linkage is needed with new versions of Ceph.
Also respect the --libcephfs_dir=&lt;path&gt; parameter when provided.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit bd64af6b8861f892e6ae2840a493f037d1e0a06c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ceph-common linkage is needed with new versions of Ceph.
Also respect the --libcephfs_dir=&lt;path&gt; parameter when provided.

Signed-off-by: David Disseldorp &lt;ddiss@samba.org&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit bd64af6b8861f892e6ae2840a493f037d1e0a06c)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tests: Avoid segfault by initializing logging</title>
<updated>2018-07-09T10:55:27+00:00</updated>
<author>
<name>Amitay Isaacs</name>
<email>amitay@gmail.com</email>
</author>
<published>2018-07-05T03:40:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=516448f203ea4fa721656fe7c92172ba9bdb44a9'/>
<id>516448f203ea4fa721656fe7c92172ba9bdb44a9</id>
<content type='text'>
This is in addition to af697008531.

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): Thu Jul  5 15:22:16 CEST 2018 on sn-devel-144

(cherry picked from commit a30ac853ff9bca023c53ad98775eabb23156c566)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is in addition to af697008531.

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): Thu Jul  5 15:22:16 CEST 2018 on sn-devel-144

(cherry picked from commit a30ac853ff9bca023c53ad98775eabb23156c566)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tests: Avoid segfault by initializing logging</title>
<updated>2018-07-09T10:55:26+00:00</updated>
<author>
<name>Amitay Isaacs</name>
<email>amitay@gmail.com</email>
</author>
<published>2018-06-21T10:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=bea8c194633dc0a9079c19ec213709663a6f5c46'/>
<id>bea8c194633dc0a9079c19ec213709663a6f5c46</id>
<content type='text'>
Setting DEBUGLEVEL before calling debug_init() causes segmentation
violation with gcc8.  DEBUGLEVEL_CLASS is statically initialized to
debug_class_list_initial which is defined as const.  Only after
debug_init() is called, DEBUGLEVEL_CLASS becomes a talloc'd array.

So before modifying DEBUGLEVEL, ensure debug_init() is called via
setup_logging().  (debug_init is a static function.)

Signed-off-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
(cherry picked from commit af697008531bd74546656841dd3a1ed92522fc57)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting DEBUGLEVEL before calling debug_init() causes segmentation
violation with gcc8.  DEBUGLEVEL_CLASS is statically initialized to
debug_class_list_initial which is defined as const.  Only after
debug_init() is called, DEBUGLEVEL_CLASS becomes a talloc'd array.

So before modifying DEBUGLEVEL, ensure debug_init() is called via
setup_logging().  (debug_init is a static function.)

Signed-off-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
(cherry picked from commit af697008531bd74546656841dd3a1ed92522fc57)
</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-daemon: Only consider client ID for local database attach</title>
<updated>2018-07-09T10:55:26+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2018-06-26T10:12:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=7fd58cbec458a353f8732c7becadb5fc2315695c'/>
<id>7fd58cbec458a353f8732c7becadb5fc2315695c</id>
<content type='text'>
The comment immediately above this code says "don't allow local
clients to attach" and then looks up the client ID regardless of
whether the request is local or remote.

This means that an intentional remote attach from a client will not
work correctly.  No real client should ever do that since clients
attach so they an access databases locally.  Perhaps some sanity
checks should be added.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13500

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 63255ef92552da92956c05160f33622d0bbc3a28)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The comment immediately above this code says "don't allow local
clients to attach" and then looks up the client ID regardless of
whether the request is local or remote.

This means that an intentional remote attach from a client will not
work correctly.  No real client should ever do that since clients
attach so they an access databases locally.  Perhaps some sanity
checks should be added.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13500

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Amitay Isaacs &lt;amitay@gmail.com&gt;
(cherry picked from commit 63255ef92552da92956c05160f33622d0bbc3a28)
</pre>
</div>
</content>
</entry>
</feed>
