Bug 1354626 - ipa hostgroup-find does not include member list
Summary: ipa hostgroup-find does not include member list
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-Linux_Domain_Identity_Management_Guide
Version: 7.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Marc Muehlfeld
QA Contact: Namita Soman
Marc Muehlfeld
Depends On:
TreeView+ depends on / blocked
Reported: 2016-07-11 19:06 UTC by Namita Soman
Modified: 2019-03-06 01:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
The "ipa *-find" commands no longer display member entries The new default setting in Identity Management (IdM) "ipa *-find" commands no longer displays member entries, such as for host groups. Resolving a large number of member entries is resource intensive and the output of the commands can get long and unreadable. As a result, the default was changed. To display members entries, use the "--all" option to the "ipa *-find" command. For example: # ipa hostgroup-find --all
Clone Of:
Last Closed: 2016-11-04 08:39:18 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1353602 0 unspecified CLOSED ipa group-find not displaying "Member groups", "Member of groups" and "Indirect Member of group" information 2021-02-22 00:41:40 UTC

Internal Links: 1353602

Description Namita Soman 2016-07-11 19:06:07 UTC
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):

How reproducible:

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:

Comment 3 Petr Vobornik 2016-07-12 15:39:14 UTC
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.

Comment 10 Aneta Šteflová Petrová 2016-11-04 08:39:18 UTC
The updated content is now available on the Customer Portal.

Note You need to log in before you can comment on or make changes to this bug.