Bug 1007451
| Summary: | schema-compat plugin should ignore slapi task entries to avoid possible DS deadlock | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | mreynolds |
| Component: | slapi-nis | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Namita Soman <nsoman> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | abokovoy, akrivoka, nkinder, rcritten |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | slapi-nis-0.49-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 11:04:09 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
mreynolds
2013-09-12 14:06:38 UTC
Alexander or Nalin, will you be able to address this in slapi-nis? (In reply to Martin Kosek from comment #3) > Alexander or Nalin, will you be able to address this in slapi-nis? I'm working on it. I'm having trouble reproducing this bug in a VM with these packages: 389-ds-base-1.3.1.6-4.el7 ipa-server-3.3.1-3.el7 slapi-nis-0.48-1.el7 If you are still seeing this on your system with 0.48, can you check if 0.49 fixes it? For now, this scratch build is all I can offer: https://brewweb.devel.redhat.com//taskinfo?taskID=6305170 I was never able to reproduce the issue. Ana was able to reproduce this though(pretty consistently), maybe she still has a system setup that can be used? Alright, it looks like 0.49, which introduces additional run-time configuration options which default to excluding the cn=tasks,cn=config subtree from consideration by the plugins, avoids this for both Ana's and my testing. Starting from Ana's notes, we've been able to trigger the bug, but only with a freshly-installed system (not just a fresh IPA installation on an existing system, which is weird) the first time an "automember rebuild membership" task is run. That scenario seems to hit the locking problem fairly reliably. Verified using ipa-server-3.3.3-13.el7.x86_64, slapi-nis-0.52-2.el7.x86_64 Test automation output: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-automember-bugzilla-003: bz1007451 schema-compat plugin should ignore slapi task entries to avoid possible DS deadlock :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ---------------------------- Added hostgroup "webservers" ---------------------------- Host-group: webservers Description: Web Servers :: [ PASS ] :: Running 'ipa hostgroup-add --desc="Web Servers" webservers' (Expected 0, got 0) ------------------------------ Added host "web1.testrelm.com" ------------------------------ Host name: web1.testrelm.com Principal name: host/web1.testrelm.com Password: False Keytab: False Managed by: web1.testrelm.com :: [ PASS ] :: Running 'ipa host-add web1.testrelm.com --force' (Expected 0, got 0) ---------------------------------- Added automember rule "webservers" ---------------------------------- Automember Rule: webservers :: [ PASS ] :: Running 'ipa automember-add --type=hostgroup webservers' (Expected 0, got 0) ---------------------------------- Added condition(s) to "webservers" ---------------------------------- Automember Rule: webservers Inclusive Regex: fqdn=^web[1-9]+.testrelm.com ---------------------------- Number of conditions added 1 ---------------------------- :: [ PASS ] :: Running 'ipa automember-add-condition --key=fqdn --type=hostgroup --inclusive-regex=^web[1-9]+\.testrelm\.com webservers' (Expected 0, got 0) :: [ PASS ] :: Running 'ipa host-show web1.testrelm.com --all > /tmp/tmpout.ipaautomember_bz_1007451.out' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/tmpout.ipaautomember_bz_1007451.out' should not contain 'Member of host-groups: webservers' adding new entry "cn=rt,cn=automember rebuild membership,cn=tasks,cn=config" :: [ PASS ] :: Running 'ldapmodify -x -D 'cn=directory manager' -w Secret123 -f /tmp/rebuild.ldif' (Expected 0, got 0) :: [ PASS ] :: Running 'ipa host-show web1.testrelm.com --all > /tmp/tmpout.ipaautomember_bz_1007451.out' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/tmpout.ipaautomember_bz_1007451.out' should contain 'Member of host-groups: webservers' This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |