ctdb -n all / -n 1,2 does not work anymore

Amitay Isaacs amitay at gmail.com
Wed Apr 5 13:53:41 UTC 2017


On Wed, Apr 5, 2017 at 9:14 PM, Bjoern Baumbach via samba-technical <
samba-technical at lists.samba.org> wrote:

> Hi!
>
> Since Samba 4.5.0 the ctdb -n option does only take numeric values.
>
> # ctdb ping -n all
> Invalid option all: invalid numeric value
>
> According to the ctdb(1) man page the -n option accepts 'PNN-LIST'
>
>    -n PNN-LIST
>        The nodes specified by PNN-LIST should be queried for the
>        requested information. Default is to query the daemon running
>        on the local host.
>
> and this is documented as
>
>    PNN-LIST
>        This is either a single PNN, a comma-separate list of PNNs or
>        "all".
>
> Also the release notes of Samba 4.5.0 do not include this specific
> behaviour change information. But it's mentioned that 'ctdb tool' has
> been completely rewritten using new client API.
>

Oops.  Looks like we forgot to update the documentation for -n option.
Please create a new defect.
"ctdb --help" does show the correct usage.


> Additionaly there is a Nagios plugin 'check_ctdb', which is also part of
> the Samba 4.6 source in ctdb/utils/nagios/check_ctdb. This does also use
> the '-n all' and is consequently broken.
>

This also requires to be fixed.  Please create a separate defect for this
one.  We need to add a test for the plugin to ensure there are no
regressions.


>
> Was this limitation to the -n option introduced accidentally during
> rewriting the ctdb command?
>

No. This is intentional.  This is to ensure that all the ctdb commands are
consistent with regards to -n option.  In the earlier version, not all
commands behaved in the same way with -n all.  Now -n takes only single PNN.


>
> Best regards,
> Björn
>

Amitay.


More information about the samba-technical mailing list