https://bugs.openldap.org/show_bug.cgi?id=9339
Issue ID: 9339 Summary: Add syncrepl status in cn=monitor Product: OpenLDAP Version: 2.5 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
Patch coming to expose some consumer state in cn=monitor
Sample entry:
# Consumer 001, database 2, databases, monitor dn: cn=Consumer 001,cn=database 2,cn=databases,cn=monitor objectClass: olmSyncReplInstance structuralObjectClass: olmSyncReplInstance cn: Consumer 001 creatorsName: modifiersName: createTimestamp: 20200906160447Z modifyTimestamp: 20200906160447Z olmSRProviderURIList: ldap://localhost:9011/ olmSRIsConnected: TRUE olmSRSyncPhase: Persist olmSRLastConnect: 20200906160448Z olmSRLastContact: 20200906160453Z olmSRLastCookieRcvd: rid=001,sid=001,csn=20200906160453.039573Z#000000#001#000 000 olmSRLastCookieSent: rid=001,sid=002,csn=20200906160447.723677Z#000000#001#000 000 entryDN: cn=Consumer 001,cn=database 2,cn=databases,cn=monitor subschemaSubentry: cn=Subschema hasSubordinates: FALSE
https://bugs.openldap.org/show_bug.cgi?id=9339
--- Comment #1 from Michael Ströder michael@stroeder.com --- (In reply to Howard Chu from comment #0)
Patch coming to expose some consumer state in cn=monitor
Great! I'm looking forward to this feature!
Sample entry: dn: cn=Consumer 001,cn=database 2,cn=databases,cn=monitor
^^^ Is this the configured rid in the syncrepl statement?
I'm asking because I'd like to be able track the state for a certain syncrepl statement in my monitoring.
olmSRProviderURIList: ldap://localhost:9011/
Is provider= in syncrepl statement really multi-valued? I read slapd.conf(5) that provider= contains only a single LDAP URI, not a space-separated list of LDAP URIs.
https://bugs.openldap.org/show_bug.cgi?id=9339
--- Comment #2 from Howard Chu hyc@openldap.org --- (In reply to Michael Ströder from comment #1)
(In reply to Howard Chu from comment #0)
Patch coming to expose some consumer state in cn=monitor
Great! I'm looking forward to this feature!
Sample entry: dn: cn=Consumer 001,cn=database 2,cn=databases,cn=monitor
^^^
Is this the configured rid in the syncrepl statement?
Yes, exactly.
I'm asking because I'd like to be able track the state for a certain syncrepl statement in my monitoring.
olmSRProviderURIList: ldap://localhost:9011/
Is provider= in syncrepl statement really multi-valued? I read slapd.conf(5) that provider= contains only a single LDAP URI, not a space-separated list of LDAP URIs.
The configured URI argument is passed directly to ldap_initialize(), which accepts a list of URIs.
https://bugs.openldap.org/show_bug.cgi?id=9339
--- Comment #3 from Howard Chu hyc@openldap.org --- (In reply to Michael Ströder from comment #1)
(In reply to Howard Chu from comment #0)
Patch coming to expose some consumer state in cn=monitor
Great! I'm looking forward to this feature!
If there's anything else to display, please give feedback on the merge request. https://git.openldap.org/openldap/openldap/-/merge_requests/144
https://bugs.openldap.org/show_bug.cgi?id=9339
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |replication
https://bugs.openldap.org/show_bug.cgi?id=9339
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |TEST Keywords|replication | Target Milestone|--- |2.5.0 Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • d1283f81 by Howard Chu at 2020-09-10T02:29:19+00:00 ITS#9339 slapd-monitor: Add schema arc for overlays
Not directly related to syncrepl, but adds a necessary schema arc. Also add a convenience function for obtaining an entry with known ndn. Also fix to ignore outbound connections.
• 1748ec59 by Howard Chu at 2020-09-10T02:29:19+00:00 ITS#9339 Add syncrepl status to cn=monitor
Shows connection address, refresh/persist state, time of last connect attempt and received data, and last sent and received cookies per consumer.
• 76ff2558 by Howard Chu at 2020-09-10T02:29:19+00:00 ITS#9339 Add cn=monitor to test063
Just for convenience
• c91d6df9 by Howard Chu at 2020-09-10T02:29:19+00:00 ITS#9339 fix test049 script
Was re-using rid=002, changed to unique rid
https://bugs.openldap.org/show_bug.cgi?id=9339
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- • 72bfa9d4 by Howard Chu at 2020-09-10T17:03:32+00:00 ITS#9339 fix connection address handling
https://bugs.openldap.org/show_bug.cgi?id=9339
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED Status|RESOLVED |VERIFIED
https://bugs.openldap.org/show_bug.cgi?id=9339
--- Comment #6 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 1942bc20 by Ondřej Kuzník at 2022-09-02T16:49:45+01:00 ITS#9339 Free remembered cookies on syncinfo free
• 16233d07 by Ondřej Kuzník at 2022-09-12T20:46:01+00:00 ITS#9339 Free remembered cookies on syncinfo free
https://bugs.openldap.org/show_bug.cgi?id=9339
--- Comment #7 from Quanah Gibson-Mount quanah@openldap.org --- RE25:
• 6dd392ce by Ondřej Kuzník at 2022-09-12T20:46:05+00:00 ITS#9339 Free remembered cookies on syncinfo free