#6476 automember-rebuild crashes
Closed: fixed Opened by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1390757

Please note that this Bug is private and may not be accessible as it contains confidential Red Hat customer information.

Description of problem:
ipa automember-rebuild --type=hostgroup
ipa: ERROR: Automember rebuild task aborted.  Error (-1): Task DN =
'cn=517567e-a0ec-424d-b987-ba4108b84d1b,cn=automember rebuild
membership,cn=tasks,cn=config'
[root@ipa-utils-vm-01 roles]# rpm -qa | grep -i ipa-server
ipa-server-4.2.0-15.el7_2.6.x86_64
ipa-server-dns-4.2.0-15.el7_2.6.x86_64
[root@ipa-utils-vm-01 roles]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
Version-Release number of selected component (if applicable):
How reproducible:
every time
There is a bug in the software. If the hostgroup is deleted the corresponding automember rule should have been
deleted but it did not.
I have manually removed the automember hostgroup rule, then the automember
rebuild process has started working.

Causes also host add operation to fail if the host matches the incorrect automember rule.


Metadata Update from @pvoborni:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

Here is the pull request: https://github.com/freeipa/freeipa/pull/2413

Metadata Update from @twoerner:
- Issue close_status updated to: None

Changing the milestone to 4.6.5 as the fix needs to be included in RHEL 7.

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.6.5 (was: FreeIPA 4.5 backlog)

master:

  • 7f507519d4acb85c1e8e98bb29e26039751db8ff Find orphan automember rules

ipa-4-6:

  • 890b8aa474c4b2248b2b1bcc97412300d5e7bd82 Find orphan automember rules

ipa-4-7:

  • 67875c3b75ad1af493ff5930f9c5fd5e9797b775 Find orphan automember rules

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata