<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/ctdb/tools/onnode, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/'/>
<entry>
<title>ctdb-tools: Bracket IP addresses in onnode (for IPv6)</title>
<updated>2014-12-05T20:02:40+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2014-11-28T10:49:08+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=2d480792e7d0b3f6628186dc77f54b708e315dd1'/>
<id>2d480792e7d0b3f6628186dc77f54b708e315dd1</id>
<content type='text'>
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>
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-tools: Update onnode and ctdb-diagnostics to use ctdb -X</title>
<updated>2014-12-05T20:02:40+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2014-11-20T03:39:59+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=55df9c86c19e261a2a384ffc4b77c596c84e53a0'/>
<id>55df9c86c19e261a2a384ffc4b77c596c84e53a0</id>
<content type='text'>
Also update onnode unit tests.

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>
Also update onnode unit tests.

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-onnode: New -i option to stop stdin from being closed</title>
<updated>2013-11-27T17:46:16+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2013-11-13T03:04:17+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=297a4a640dbb48fae50d24c9d7aff397df9b988a'/>
<id>297a4a640dbb48fae50d24c9d7aff397df9b988a</id>
<content type='text'>
This can be useful for piping data to onnode in certain circumstances.

There are now also enough command-line options that they should
definitely be alphabetically ordered.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can be useful for piping data to onnode in certain circumstances.

There are now also enough command-line options that they should
definitely be alphabetically ordered.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Michael Adam &lt;obnox@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/onnode: Fix healthy/ok node handling</title>
<updated>2013-10-29T06:14:55+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2013-10-24T03:15:53+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=e8de58abd7fe7bec7752c6e33ea3e366d3c31a9d'/>
<id>e8de58abd7fe7bec7752c6e33ea3e366d3c31a9d</id>
<content type='text'>
This bit-rotted a long time ago when the "ThisNode" column was added
to "ctdb -Y status" output.  The fake "ctdb -Y status" output in the
test was never updated to reflect this change.

Instead of making sure that all columns are "0", just check that
they're not "1".  This implicitly ignores "Y" and "N" in this
"ThisNode" column without having to do anything else clever.

Also update associated tests.  The main "ctdb ok" test had a duplicate
opening line for a here document, which was tickled by this change.

This fixes samba bz#8122.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

onnode test fixup

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 01a46205c3a3d6609dc0b0324319b89667dffa32)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This bit-rotted a long time ago when the "ThisNode" column was added
to "ctdb -Y status" output.  The fake "ctdb -Y status" output in the
test was never updated to reflect this change.

Instead of making sure that all columns are "0", just check that
they're not "1".  This implicitly ignores "Y" and "N" in this
"ThisNode" column without having to do anything else clever.

Also update associated tests.  The main "ctdb ok" test had a duplicate
opening line for a here document, which was tickled by this change.

This fixes samba bz#8122.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

onnode test fixup

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 01a46205c3a3d6609dc0b0324319b89667dffa32)
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/onnode: Add -P option to push files to given nodes</title>
<updated>2012-07-30T05:34:41+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2012-07-17T06:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=f53b4f82f51ba89b04dfae26c6c9bd11a8e19495'/>
<id>f53b4f82f51ba89b04dfae26c6c9bd11a8e19495</id>
<content type='text'>
A list of files is given rather than a command.  These files are
pushed to the specified nodes.

Quoting is fragile/broken so filenames with spaces won't work - you
win some, you lose some.  :-)

All of the other onnode options should work together with this option.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit aed9b98ddbbf3e81de4f7257a10676565f7d7507)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A list of files is given rather than a command.  These files are
pushed to the specified nodes.

Quoting is fragile/broken so filenames with spaces won't work - you
win some, you lose some.  :-)

All of the other onnode options should work together with this option.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit aed9b98ddbbf3e81de4f7257a10676565f7d7507)
</pre>
</div>
</content>
</entry>
<entry>
<title>onnode: unset EXTRA_SSH_OPTS when using fakessh</title>
<updated>2011-10-18T00:51:06+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2011-10-07T03:59:46+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=2e3febe283f5d6f24a2527d0e221eb46d1ca3c22'/>
<id>2e3febe283f5d6f24a2527d0e221eb46d1ca3c22</id>
<content type='text'>
This case was never tested and fakessh obviously won't handle the
extra arguments.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 02184bd5b9ab94cdf2b9ff92e56a509f92f9e4aa)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This case was never tested and fakessh obviously won't handle the
extra arguments.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 02184bd5b9ab94cdf2b9ff92e56a509f92f9e4aa)
</pre>
</div>
</content>
</entry>
<entry>
<title>onnode: fix natgwlist nodespec</title>
<updated>2011-06-08T04:24:00+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2011-05-23T05:33:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=5ddc10128aaa78d4de85eda4b54f173b4cc88d39'/>
<id>5ddc10128aaa78d4de85eda4b54f173b4cc88d39</id>
<content type='text'>
This hasn't worked for a while if ever.

We treat this case specially because the output has 2 works on the 1st
line.  We also handle the error case where /etc/ctdb_natgw_nodes
exists but none of the other $NATGW_* configuration is done.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 66e89797c7866d207a5bbf1836f52d70dba7cea6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This hasn't worked for a while if ever.

We treat this case specially because the output has 2 works on the 1st
line.  We also handle the error case where /etc/ctdb_natgw_nodes
exists but none of the other $NATGW_* configuration is done.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 66e89797c7866d207a5bbf1836f52d70dba7cea6)
</pre>
</div>
</content>
</entry>
<entry>
<title>onnode: fix get_nodes_with_status()</title>
<updated>2011-06-08T04:23:40+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2011-05-23T05:24:52+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=1ef399e48d7370fb7e4870d52f86a0878f35b1e2'/>
<id>1ef399e48d7370fb7e4870d52f86a0878f35b1e2</id>
<content type='text'>
Setting IFS and looping though items with colons in them doesn't work.
Change this to read through the output line by line.  The header line
needs to be thrown away by throwing away everything up to the 1st
newline.

Keep stderr from the "ctdb status" command, otherwise debugging is
impossible.

On error, append any output from ctdb to onnode's error message.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit d60592cf99999f10344a05ef0571fb300bb9d97c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting IFS and looping though items with colons in them doesn't work.
Change this to read through the output line by line.  The header line
needs to be thrown away by throwing away everything up to the 1st
newline.

Keep stderr from the "ctdb status" command, otherwise debugging is
impossible.

On error, append any output from ctdb to onnode's error message.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit d60592cf99999f10344a05ef0571fb300bb9d97c)
</pre>
</div>
</content>
</entry>
<entry>
<title>onnode: Remove an unnecessary comment.</title>
<updated>2011-06-08T04:23:14+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2011-05-17T04:26:55+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=41436193ddcd4f83ceecbc3f23d78a9dec2875b3'/>
<id>41436193ddcd4f83ceecbc3f23d78a9dec2875b3</id>
<content type='text'>
The comment about $CTDB_NODES_SOCKETS is meaningless.  The code ti
refers to works just find with $CTDB_NODES_SOCKETS.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 74e69a564bac653dadfffe8b08145b9b3be16e61)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The comment about $CTDB_NODES_SOCKETS is meaningless.  The code ti
refers to works just find with $CTDB_NODES_SOCKETS.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit 74e69a564bac653dadfffe8b08145b9b3be16e61)
</pre>
</div>
</content>
</entry>
<entry>
<title>onnode: Future-proof get_nodes_with_status().</title>
<updated>2011-06-08T04:22:49+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>martin@meltin.net</email>
</author>
<published>2011-05-17T04:24:30+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/pviktori/public_git/samba.git/commit/?id=f730194f120520ddee3b6ebabbdcc49a0d98a385'/>
<id>f730194f120520ddee3b6ebabbdcc49a0d98a385</id>
<content type='text'>
The current code requires knowledge of the number of status bits
output by "ctdb status -Y".

This changes the code to be completely general.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit e1788f25fde3d1f26bf4831a331741aa280f6fbc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current code requires knowledge of the number of status bits
output by "ctdb status -Y".

This changes the code to be completely general.

Signed-off-by: Martin Schwenke &lt;martin@meltin.net&gt;

(This used to be ctdb commit e1788f25fde3d1f26bf4831a331741aa280f6fbc)
</pre>
</div>
</content>
</entry>
</feed>
