Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1976878

Summary: IPATrustControllerServiceCheck doesn't handle HIDDEN_SERVICE
Product: Red Hat Enterprise Linux 9 Reporter: Rob Crittenden <rcritten>
Component: ipa-healthcheckAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: fcami, ksiddiqu, mpolovka, pvoborni, sumenon
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-healthcheck-0.9-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 13:01:12 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 Rob Crittenden 2021-06-28 12:56:01 UTC
Description of problem:

The source ipahealthcheck.ipa.trust check IPATrustControllerServiceCheck checks whether the ADTRUST service is an ENABLED_SERVICE.

It also needs to consider HIDDEN_SERVICE to be an acceptable state.

Version-Release number of selected component (if applicable):

ipa-healthcheck-0.9

Upstream issue https://github.com/freeipa/freeipa-healthcheck/issues/217

Comment 2 Rob Crittenden 2021-10-04 19:16:18 UTC
Fixed upstream:

master: de2032487c73151e13812db78866ddd85d0f541c

Comment 3 Rob Crittenden 2021-10-11 17:53:14 UTC
If trust was a hidden service ipa-healthcheck would flag it as an error:

ADTRUST service is not enabled.

Comment 4 Michal Polovka 2021-11-12 15:46:25 UTC
Pre-verified using ipa-healthcheck-0.9-3.el9.noarch

Main server:
1. install ipa-server-trust-ad and ipa-healthcheck
2. configure ipa-server
3.  ipa-healthcheck --source  ipahealthcheck.ipa.trust --all
...
  {
    "source": "ipahealthcheck.ipa.trust",
    "check": "IPATrustControllerServiceCheck",
    "result": "SUCCESS",
    "uuid": "fb2c8376-d303-4588-9d7c-535de883a8cf",
    "when": "20211112152551Z",
    "duration": "0.000012",
    "kw": {}
  },
...
4. set server to be hidden:
ipa server-state --state=hidden
Server name: <main server>
----------------------------------------------------------------------------
Changed server state of "<main server>".
----------------------------------------------------------------------------
5. ipa-healthcheck --source  ipahealthcheck.ipa.trust --all
...
  {
    "source": "ipahealthcheck.ipa.trust",
    "check": "IPATrustControllerServiceCheck",
    "result": "SUCCESS",
    "uuid": "c3b0c6ed-ecc7-4b3e-9966-b32f6944287e",
    "when": "20211112153801Z",
    "duration": "0.000016",
    "kw": {}
  },
...

Replica:
1. install ipa-server-trust-ad
2. configure ipa-server, certificate authority

ipa-healthcheck treats HIDDEN_SERVICE state as SUCCESS, therefore marking as verified tested.

Comment 8 Michal Polovka 2021-12-06 14:08:33 UTC
Verified using automation present in freeipa-healthcheck/tests/test_ipa_trust.py::::TestControllerService::test_service_enabled

System: RHEL9.0
Package version: ipa-healthcheck-0.9-3.el9.noarch


# pytest -vvv test_ipa_trust.py
...
test_ipa_trust.py::TestControllerService::test_service_enabled PASSED                                                                                                                  [ 71%]
...

Full test log is an attachment of this BZ.

Therefore marking as verified and covered by automation.

Comment 11 errata-xmlrpc 2022-05-17 13:01:12 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 (new packages: ipa-healthcheck), 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-2022:2437