Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1651790

Summary: [RFE] Add a ctdb_max_open_files resource option to the ocf:heartbeat:CTDB resource
Product: Red Hat Enterprise Linux 7 Reporter: Chad Newsom <cnewsom>
Component: resource-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.7CC: agk, aherr, cluster-maint, fdinitto, mjuricek, mnovacek, nwahl, sbradley
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: resource-agents-4.1.1-19.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 12:01:38 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:

Description Chad Newsom 2018-11-20 20:30:14 UTC
Description of problem:

Currently the ocf:heartbeat:CTDB resource doesn't have a ctdb_max_open_files option. If this property is edited through /etc/ctdb/ctdb.conf it is eventually overwritten.

This could be resolved by either adding an option for ctdb_max_open_files, or by introducing an OPTIONAL, NON-DEFAULT way to make changes to CTDB_SYSCONFIG that won't be overwritten by generate_ctdb_sysconfig():



515 # Generate a new, minimal CTDB config file that's just enough
516 # to get CTDB running as configured by the RA parameters.
517 generate_ctdb_sysconfig() {
518         # Backup existing sysconfig if we're not already using an auto-generated one
519         grep -qa '# CTDB-RA: Auto-generated' $CTDB_SYSCONFIG || cp -p $CTDB_SYSCONFIG $CTDB_SYSCONFIG_BACKUP
520         if [ $? -ne 0 ]; then
521                 ocf_log warn "Unable to backup $CTDB_SYSCONFIG to $CTDB_SYSCONFIG_BACKUP"
522         fi
523 
524         ocf_log info "Generating new $CTDB_SYSCONFIG"
525 
526         # Note to maintainers and other random hackers:
527         # Parameters may need to be set here, for CTDB event
528         # scripts to pick up, or may need to be passed to ctdbd
529         # when starting, or both.  Be careful.  The CTDB source
530         # tree and manpages are your friends.  As a concrete
531         # example, setting CTDB_START_AS_DISABLED here is
532         # completely useless, as this is actually a command line
533         # argument for ctdbd; it's not used anywhere else.
534 
535         cat >$CTDB_SYSCONFIG <<EOF
536 # CTDB-RA: Auto-generated by ${0}, backup is at $CTDB_SYSCONFIG_BACKUP
537 CTDB_MONITOR_FREE_MEMORY=$OCF_RESKEY_ctdb_monitor_free_memory
538 CTDB_SAMBA_SKIP_SHARE_CHECK=$(ocf_is_true "$OCF_RESKEY_ctdb_samba_skip_share_check" && echo 'yes' || echo 'no')
539 CTDB_MANAGES_SAMBA=$(ocf_is_true "$OCF_RESKEY_ctdb_manages_samba" && echo 'yes' || echo 'no')
540 CTDB_MANAGES_WINBIND=$(ocf_is_true "$OCF_RESKEY_ctdb_manages_winbind" && echo 'yes' || echo 'no')
541 EOF
542         append_ctdb_sysconfig CTDB_SERVICE_SMB $OCF_RESKEY_ctdb_service_smb
543         append_ctdb_sysconfig CTDB_SERVICE_NMB $OCF_RESKEY_ctdb_service_nmb
544         append_ctdb_sysconfig CTDB_SERVICE_WINBIND $OCF_RESKEY_ctdb_service_winbind
545 }

Comment 8 Oyvind Albrigtsen 2019-02-20 10:26:56 UTC
https://github.com/ClusterLabs/resource-agents/pull/1301

Comment 13 errata-xmlrpc 2019-08-06 12:01:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2012