dsctl healthcheck bug - or bad at least a bad resolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Guys!

I think I found a bug in dsctl, and wanted to give some background and see what you guys thought.

I am setting up my ldaphub.. and I am getting an odd issue when running the dsctl $instance healthcheck on it, but the dsctl $instance get-nsstate shows that the missing part is right there. I have confirmed this by looking directly at the dse.ldif file and finding the "resolution" is already present.

Error and get-nsstate are below. It will be same the error 8 times in a row.

Hmm.. it seems to be related to maybe how I setup the replication agreement and consumer, so I added that at the bottom as well.

I found something interesting, if i set the replication ID for the hub, dsconf wont use the ID number I put in, dsconf puts in a number outside a valid range 65535. Have you guys seen this ?

Thanks guys for everything!

-Gary


Here is the error (8x):

Severity: MEDIUM
Check: backends:somesuffixroot:mappingtree
Affects:
 -- somesuffixroot

Details:
-----------
This backend may be missing the correct mapping tree references. Mapping Trees allow the directory server to determine which backend an operation is routed to in the abscence of other information. This is extremely important for correct functioning
of LDAP ADD for example.

A correct Mapping tree for this backend must contain the suffix name, the database name
and be a backend type. IE:

cn=o3Dexample,cn=mapping tree,cn=config
cn: o=example
nsslapd-backend: userRoot
nsslapd-state: backend
objectClass: top
objectClass: extensibleObject
objectClass: nsMappingTree

Resolution:
-----------
Either you need to create the mapping tree, or you need to repair the related mapping tree. You will need to do this by hand by editing cn=config, or stopping
the instance and editing dse.ldif.

dsctl ldaphub get-nsstate

Replica DN: cn=replica,cn=ou\3dsomesuffix\2co\3dcaltech\2cc\3dus,cn=mapping tree,cn=config
Replica Suffix:       ou=somesuffix,o=caltech,c=us
Replica ID:           65535
Gen Time:             1618442292
Gen Time String:      Wed Apr 14 16:18:12 2021
Gen as CSN:           607778340002655350000
Local Offset:         0
Local Offset String:  0 seconds
Remote Offset:        7
Remote Offset String: 7 seconds
Time Skew:            7
Time Skew String:     7 seconds
Seq Num:              2
System Time:          Wed Apr 14 17:30:50 2021
Diff in Seconds:      4358
Diff in days/secs:    0:4358
Endian:               Little Endian

Dse.ldif section that already has the resolution present:

dn: cn=ou\3Dsomesuffix\2Co\3Dcaltech\2Cc\3Dus,cn=mapping tree,cn=config
objectClass: top
objectClass: extensibleObject
objectClass: nsMappingTree
nsslapd-state: referral on update
nsslapd-backend: somesuffixRoot
cn: ou=somesuffix,o=caltech,c=us
creatorsName: cn=directory manager
modifiersName: cn=server,cn=plugins,cn=config
createTimestamp: 20210415004818Z
modifyTimestamp: 20210415005939Z
numSubordinates: 1
nsslapd-referral: ldap://supplier2:389/ou%3Dsomesuffix%2Co%3Dcaltech%2Cc%3Dus nsslapd-referral: ldap://supplier1:389/ou%3Dsomesuffix%2Co%3Dcaltech%2Cc%3Dus nsslapd-referral: ldap://supplier0:389/ou%3Dsomesuffix%2Co%3Dcaltech%2Cc%3Dus nsslapd-referral: ldap://supplier4.caltech.edu:389/ou%3Dsomesuffix%2Co%3Dcaltech%2
 Cc%3Dus
nsslapd-referral: ldap://supplier5.caltech.edu:389/ou%3Dsomesuffix%2Co%3Dcaltech%2
 Cc%3Dus
nsslapd-referral: ldap://supplier3.caltech.edu:389/ou%3Dsomesuffix%2Co%3Dcaltech%2
 Cc%3Dus

How I set it set up the hub and the agreement: (note the same commands i used to setup the suppliers and consumers worked great with only variance is really the role)

# how i setup the consumer
dsconf -D "cn=Directory Manager" -w XXX ldap://$consumer replication enable --suffix="ou=somesuffix,o=caltech,c=us" --role="hub" --replica-id=6001 --bind-dn="cn=replication manager,cn=config" --bind-passwd=XXX

# how i setup the agreement
dsconf -D "cn=Directory Manager" -w XXXX ldap://supplier repl-agmt create --suffix="ou=somesuffix,o=caltech,c=us" --host=consumer --port=389 \      --conn-protocol=StartTLS --bind-dn="cn=replication manager,cn=config" \
     --bind-passwd=XXXX --bind-method=SIMPLE --init \
     replication-agreement-name-super-awesome
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux