Bug 1763689 - Changes in configuring ctdb managed service with newer package
Summary: Changes in configuring ctdb managed service with newer package
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: doc-Administration_Guide
Version: rhgs-3.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: RHGS 3.5.z Batch Update 3
Assignee: Disha Walvekar
QA Contact: Aditya Ramteke
URL:
Whiteboard:
Depends On:
Blocks: 1822639
TreeView+ depends on / blocked
 
Reported: 2019-10-21 11:14 UTC by Deepu K S
Modified: 2023-09-15 00:19 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-11 08:53:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Deepu K S 2019-10-21 11:14:11 UTC
Document URL: 
https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.4/html-single/administration_guide/index#idm139885313023696

Section Number and Name: 
7.2.3. Verify/Test Active Directory and Services

Describe the issue: 
With latest ctdb-4.9.8-105.el7rhgs.x86_64, the paths of ctdb managed service scripts have changed.

The script files are now under /etc/ctdb/events/legacy/ after enabling them from
/usr/share/ctdb/events/legacy/ .

Earlier it used to be under '/etc/ctdb/events.d/'.

So the `ctdb event script enable` commands doesn't work;
# ctdb event script enable 49.winbind
Usage: ctdb-event [-h] [-h|--help] [-d|--debug ERROR|WARNING|NOTICE|INFO|DEBUG] <command> [<args>]

  script enable <component> <script>     Enable an event script

It is also noted that ‘CTDB_MANAGES_WINBIND=yes’ isn't read from  /etc/sysconfig/ctdb .

Suggestions for improvement:
* Add a note for changes.
# ctdb event script enable legacy 49.winbind

So for all nodes;
# onnode all ctdb event script enable legacy 49.winbind

* The variables are to be set under /etc/ctdb/script.options , and is being called from load_script_options () in the scripts.

For the newer ctdb version >4.8, "This is achieved by adding ‘CTDB_MANAGES_WINBIND=yes’ to the /etc/ctdb/script.options file on all nodes."

Example :
$ tail 2 /etc/ctdb/script.options
# 49.winbind.options
CTDB_MANAGES_WINBIND=yes

Additional information: 
# man ctdb-script.options

Comment 15 Red Hat Bugzilla 2023-09-15 00:19:16 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


Note You need to log in before you can comment on or make changes to this bug.