Bug 2132734

Summary: Missing reproducible steps how to setup slapd resource
Product: Red Hat Enterprise Linux 9 Reporter: Simon Foucek <sfoucek>
Component: resource-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: MODIFIED --- QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: agk, cfeist, cluster-maint, fdinitto
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Simon Foucek 2022-10-06 13:48:06 UTC
Description of problem:
I'm trying to set up ocf:heartbeat:slapd resource agent, but I can't find information about it at all. Tutorials for setup are really old, and the resource agent throws error when I try to run him. I found only this example command and it fails:

 https://www.mankier.com/7/ocf_heartbeat_slapd  
>Failed Resource Actions:
>  * p_slapd_start_0 on virt-488 'error' (1): call=36, status='complete', >exitreason='slapd returned error.', last-rc-change='Thu Oct  6 15:32:11 2022', ?>queued=0ms, exec=109ms

Can you verify that this resource agent is still viable in new RHEL versions and if there are described reproducible steps on how to set it up?



How reproducible:
Set up HA cluster, install all packages, and try to create slapd resource.

Steps to Reproduce:
1.yum install -y openldap*
2.yum install -y sendmail
3. pcs resource create p_slapd ocf:heartbeat:slapd   op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="60s"

Actual results:
>  * p_slapd_start_0 on virt-488 'error' (1): call=36, status='complete', >exitreason='slapd returned error.', last-rc-change='Thu Oct  6 15:32:11 2022', ?>queued=0ms, exec=109ms


Expected results:
Users can set up slapd resource agent successfully.

Comment 1 Oyvind Albrigtsen 2022-10-06 14:41:09 UTC
Seems like we dont provide openldap-servers anymore.

You can get it with EPEL on RHEL9: https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/o/

Comment 2 Simon Foucek 2022-10-17 09:33:53 UTC
So do I understand correctly that we don't support this resource agent officially anymore, and there is no tutorial on how to set it up?

Comment 3 Chris Feist 2022-10-17 15:22:02 UTC
Simon,

My understanding is that RHEL doesn't support slapd anymore (that's an EPEL only package), so we wouldn't provide any official support for configuration of slapd/openldap.