Bug 13064 - 'ctdb reloadnodes' ignores value of CTDB_NODES
'ctdb reloadnodes' ignores value of CTDB_NODES
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: CTDB
4.7.0
x64 Linux
: P5 minor
: ---
Assigned To: Amitay Isaacs
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-29 18:11 UTC by Rolf Anders
Modified: 2017-10-06 14:34 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Anders 2017-09-29 18:11:07 UTC
I've set CTDB_NODES in /etc/default/sernet-samba-ctdb to a non-default
path. ctdbd works fine, but 'ctdb reloadnodes' seems to ignore the
setting of CTDB_NODES and uses the default instead.  It fails with
'Failed to read nodes file "/etc/ctdb/nodes"'.

I'm using sernet-samba version 99:4.7.0-1 on Ubuntu 14.04 (ctdb version
4.7.0.SerNet.Ubuntu.1.trusty).
Comment 1 Amitay Isaacs 2017-10-06 01:35:20 UTC
We are aware of this problem.  The main issue is that the ctdb tool does not read the configuration file.

However, you can work around this problem by setting an environment variable CTDB_NODES before running "ctdb reloadnodes".

If you run ctdb command as follows, it should do the right thing.

  # CTDB_NODES=/path/to/nodes/file ctdb reloadnodes
Comment 2 Rolf Anders 2017-10-06 14:34:39 UTC
I worked around it by making a symlink from /etc/ctdb/nodes to the actual
file. I just found it confusing that the path can be configured but the
ctdb command ignores it.