RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1749788 - ipa host-find --pkey-only includes SSH keys in output
Summary: ipa host-find --pkey-only includes SSH keys in output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-06 12:55 UTC by Florence Blanc-Renaud
Modified: 2020-03-31 19:56 UTC (History)
5 users (show)

Fixed In Version: ipa-4.6.6-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 19:55:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1083 0 None None None 2020-03-31 19:56:20 UTC

Description Florence Blanc-Renaud 2019-09-06 12:55:57 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/8029

### Issue
When the --pkey-only option is used on the primary key should be returned. In the case of host-find it is also including the SSH keys.

#### Steps to Reproduce
1. ipa host-find --pkey-only

Reproducible in master branch. I think this was added in commit 14ee02dcbd6cbb6c221ac7526e471a9fc58fcc82 so applies pretty far back.

Propose fixing it back to ipa-4-6.

Comment 2 Florence Blanc-Renaud 2019-09-06 12:58:30 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/8029

Comment 5 Sumedh Sidhaye 2019-12-16 08:15:38 UTC
Build used for verification:
[root@master ~]# rpm -q ipa-server
ipa-server-4.6.6-11.el7.x86_64

Test Steps:

[root@master ~]# ipa host-find host98.testrealm.test --pkey-only
--------------
1 host matched
--------------
  Host name: host98.testrealm.test
----------------------------
Number of entries returned 1
----------------------------


[root@master ~]# ipa host-find --pkey-only
ipa: WARNING: Search result has been truncated: Configured size limit exceeded
-----------------
100 hosts matched
-----------------
  Host name: host0.testrealm.test

  Host name: host1.testrealm.test

  Host name: host10.testrealm.test

  Host name: host11.testrealm.test

  Host name: host12.testrealm.test

  Host name: host13.testrealm.test

  Host name: host14.testrealm.test

  Host name: host15.testrealm.test

  Host name: host16.testrealm.test

  Host name: host17.testrealm.test

  Host name: host18.testrealm.test

  Host name: host19.testrealm.test

  Host name: host2.testrealm.test

  Host name: host20.testrealm.test

  Host name: host21.testrealm.test

  Host name: host22.testrealm.test

  Host name: host23.testrealm.test

  Host name: host24.testrealm.test

  Host name: host25.testrealm.test

  Host name: host26.testrealm.test

  Host name: host27.testrealm.test

  Host name: host28.testrealm.test

  Host name: host29.testrealm.test

  Host name: host3.testrealm.test

  Host name: host30.testrealm.test

  Host name: host31.testrealm.test

  Host name: host32.testrealm.test

  Host name: host33.testrealm.test

  Host name: host34.testrealm.test

  Host name: host35.testrealm.test

  Host name: host36.testrealm.test

  Host name: host37.testrealm.test

  Host name: host38.testrealm.test

  Host name: host39.testrealm.test

  Host name: host4.testrealm.test

  Host name: host40.testrealm.test

  Host name: host41.testrealm.test

  Host name: host42.testrealm.test

  Host name: host43.testrealm.test

  Host name: host44.testrealm.test

  Host name: host45.testrealm.test

  Host name: host46.testrealm.test

  Host name: host47.testrealm.test

  Host name: host48.testrealm.test

  Host name: host49.testrealm.test

  Host name: host5.testrealm.test

  Host name: host50.testrealm.test

  Host name: host51.testrealm.test

  Host name: host52.testrealm.test

  Host name: host53.testrealm.test

  Host name: host54.testrealm.test

  Host name: host55.testrealm.test

  Host name: host56.testrealm.test

  Host name: host57.testrealm.test

  Host name: host58.testrealm.test

  Host name: host59.testrealm.test

  Host name: host6.testrealm.test

  Host name: host60.testrealm.test

  Host name: host61.testrealm.test

  Host name: host62.testrealm.test

  Host name: host63.testrealm.test

  Host name: host64.testrealm.test

  Host name: host65.testrealm.test

  Host name: host66.testrealm.test

  Host name: host67.testrealm.test

  Host name: host68.testrealm.test

  Host name: host69.testrealm.test

  Host name: host7.testrealm.test

  Host name: host70.testrealm.test

  Host name: host71.testrealm.test

  Host name: host72.testrealm.test

  Host name: host73.testrealm.test

  Host name: host74.testrealm.test

  Host name: host75.testrealm.test

  Host name: host76.testrealm.test

  Host name: host77.testrealm.test

  Host name: host78.testrealm.test

  Host name: host79.testrealm.test

  Host name: host8.testrealm.test

  Host name: host80.testrealm.test

  Host name: host81.testrealm.test

  Host name: host82.testrealm.test

  Host name: host83.testrealm.test

  Host name: host84.testrealm.test

  Host name: host85.testrealm.test

  Host name: host86.testrealm.test

  Host name: host87.testrealm.test

  Host name: host88.testrealm.test

  Host name: host89.testrealm.test

  Host name: host9.testrealm.test

  Host name: host90.testrealm.test

  Host name: host91.testrealm.test

  Host name: host92.testrealm.test

  Host name: host93.testrealm.test

  Host name: host94.testrealm.test

  Host name: host95.testrealm.test

  Host name: host96.testrealm.test

  Host name: host97.testrealm.test

  Host name: host98.testrealm.test

  Host name: master.testrealm.test
------------------------------
Number of entries returned 100
------------------------------
[root@master ~]#

Comment 6 Florence Blanc-Renaud 2020-02-11 16:26:42 UTC
Test case added upstream in ipatests/test_xmlrpc/test_host_plugin.py

master:
https://pagure.io/freeipa/c/f0f2c2645ef5aa0a065e2b5a2063d57d85f74d56

Comment 7 Armando Biagioni Neto 2020-02-13 12:16:59 UTC
Test case also backported to:

ipa-4-8:
https://pagure.io/freeipa/c/2cd67d5a9a22c009f050e493d4b3e2882dbfd81f

ipa-4-7:
https://pagure.io/freeipa/c/f4fdfaac3bea3b1301222f6362275f34b1b710e9

Comment 8 Florence Blanc-Renaud 2020-02-26 07:00:22 UTC
Test case backported:
ipa-4-6:
https://pagure.io/freeipa/c/189fc03a52c80dc675ea1015d97a4e4c357549b5

Comment 10 errata-xmlrpc 2020-03-31 19:55:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1083


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