https://bugs.openldap.org/show_bug.cgi?id=9727
Issue ID: 9727 Summary: slapd-watcher fails to start if any slapd instance is down Product: OpenLDAP Version: 2.6.0 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: client tools Assignee: bugs@openldap.org Reporter: gnoe@symas.com Target Milestone: ---
When starting slapd-watcher and slapd isn't running on one of the monitored servers, slapd-watcher fails to start:
Example w/host2 slapd not running:
[user@host]# slapd-watcher -xD dc=example,dc=com -w secret -b dc=example,dc=com -s 1,2 ldap://host1/ ldap://host2/ slapd-watcher PID=11892: ldap_sasl_bind_s: Can't contact LDAP server (-1)
I would expect that slapd-watcher would start up completely and indicate the host was down, like in the case where a host goes down while slapd-watcher is running. This would allow slapd-watcher to start when one or more replication node is down for maintenance.
https://bugs.openldap.org/show_bug.cgi?id=9727
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to gnoe@symas.com from comment #0)
When starting slapd-watcher and slapd isn't running on one of the monitored servers, slapd-watcher fails to start:
This is not a bug. The main reason to refuse to start is there is no way to distinguish between a correctly specified server that is down, vs a mis-typed server that doesn't exist.
https://bugs.openldap.org/show_bug.cgi?id=9727
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Then that's a user error, but there are often cases when we're working on live environments where it would be useful to have slapd-watcher running regardless of whether or not every provider in the cluster is online. There should be a way to do that.
https://bugs.openldap.org/show_bug.cgi?id=9727
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |---
https://bugs.openldap.org/show_bug.cgi?id=9727
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org Keywords|needs_review | Target Milestone|--- |2.6.1
https://bugs.openldap.org/show_bug.cgi?id=9727
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #3 from Howard Chu hyc@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/432
https://bugs.openldap.org/show_bug.cgi?id=9727
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |TEST
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- • cc876a21 by Howard Chu at 2021-11-01T19:51:29+00:00 ITS#9727 slapd-watcher: don't fail startup on bad URLs
https://bugs.openldap.org/show_bug.cgi?id=9727
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• 1cf89d94 by Howard Chu at 2021-11-02T16:25:19+00:00 ITS#9727 slapd-watcher: don't fail startup on bad URLs
https://bugs.openldap.org/show_bug.cgi?id=9727
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED