Bug 1354626

Summary: ipa hostgroup-find does not include member list
Product: Red Hat Enterprise Linux 7 Reporter: Namita Soman <nsoman>
Component: doc-Linux_Domain_Identity_Management_GuideAssignee: Marc Muehlfeld <mmuehlfe>
Status: CLOSED CURRENTRELEASE QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: unspecified    
Version: 7.3CC: pvoborni, rcritten, rhel-docs
Target Milestone: rcKeywords: Documentation, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 08:39:18 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 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):
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
  Principal alias: host/nightcrawler.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.