Red Hat Bugzilla – Bug 1354626
ipa hostgroup-find does not include member list
Last modified: 2016-11-04 04:39:18 EDT
Description of problem: Added a host in the hostgroup. Expected hostgroup-find to list the host as a member. But that info is missing in 7.3 It used to be available in 7.2 Version-Release number of selected component (if applicable): ipa-server-4.4.0-1.el7.x86_64 How reproducible: always Steps to Reproduce: 1. Add a hostgroup # ipa hostgroup-add --desc="hostgrp1" "hostgrp1" -------------------------- Added hostgroup "hostgrp1" -------------------------- Host-group: hostgrp1 Description: hostgrp1 2. Add a host # ipa host-add nightcrawler.testrelm.test --force --------------------------------------- Added host "nightcrawler.testrelm.test" --------------------------------------- Host name: nightcrawler.testrelm.test Principal name: host/nightcrawler.testrelm.test@TESTRELM.TEST Principal alias: host/nightcrawler.testrelm.test@TESTRELM.TEST Password: False Keytab: False Managed by: nightcrawler.testrelm.test 3. Add host as a member to the hostgroup # ipa hostgroup-add-member --hosts=nightcrawler.testrelm.test "hostgrp1" Host-group: hostgrp1 Description: hostgrp1 Member hosts: nightcrawler.testrelm.test ------------------------- Number of members added 1 ------------------------- 3. ipa hostgroup-find Actual results: # ipa hostgroup-find -------------------- 2 hostgroups matched -------------------- Host-group: hostgrp1 Description: hostgrp1 Host-group: ipaservers Description: IPA server hosts ---------------------------- Number of entries returned 2 ---------------------------- Expected results: member hosts as was listed in 7.2 is missing in 7.3: # ipa hostgroup-find ------------------- 1 hostgroup matched ------------------- Host-group: hostgrp1 Description: hostgrp1 Member hosts: nightcrawler.testrelm.test ---------------------------- Number of entries returned 1 ---------------------------- Additional info:
This is not a regression but actually a deliberate change. It was done in scope of upstream ticket: https://fedorahosted.org/freeipa/ticket/4995 all {object}-find commands were change in a way that they no longer return member information. Reason is that processing members is compute intensive task and with bigger setups the command became very slow. Another issue is that with many objects and members the CLI output becomes unreadable (too many information). Member can be still obtained if --all option is provided. Needs to be documented in release notes and also it may affect existing command output examples in documentation. Therefore changing component instead of closing the BZ.
The updated content is now available on the Customer Portal.