Bug 1763689

Summary: Changes in configuring ctdb managed service with newer package
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Deepu K S <dkochuka>
Component: doc-Administration_GuideAssignee: Disha Walvekar <dwalveka>
doc-Administration_Guide sub component: Default QA Contact: Aditya Ramteke <aramteke>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: unspecified CC: aramteke, asriram, dwalveka, gdeschner, pprakash, puebele, rhs-bugs, storage-doc, storage-qa-internal
Version: rhgs-3.4Keywords: ZStream
Target Milestone: ---   
Target Release: RHGS 3.5.z Batch Update 3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-11 08:53:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1822639    

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