Bug 2041995

Summary: ipa-healthcheck: Source 'pki.server.healthcheck.clones.connectivity_and_data' not found
Product: Red Hat Enterprise Linux 8 Reporter: Sudhir Menon <sumenon>
Component: ipa-healthcheckAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: fcami, frenaud, jobuckle, mpolovka, ndehadra, prisingh, rcritten, sigbjorn.lie
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-healthcheck-0.7-9.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 14:09:17 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 Sudhir Menon 2022-01-18 16:45:16 UTC
Description of problem: pki related checks are missing for ipa-healthcheck


Version-Release number of selected component (if applicable):
ipa-server-4.9.8-2.module+el8.6.0+13621+937b8cd9.x86_64
ipa-healthcheck-0.7-8.module+el8.6.0+13764+6ba37dc8.noarch

How reproducible: Always


Steps to Reproduce:

[root@server ~]# ipa-healthcheck --debug --source pki.server.healthcheck.clones.connectivity_and_data

Actual results:
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Source 'pki.server.healthcheck.clones.connectivity_and_data' not found

Expected results:
pki related checks should be available.

Additional info:

Comment 5 Michal Polovka 2022-02-08 15:22:51 UTC
Pre-verified using test compose http://artifacts.osci.redhat.com/comp/rhel-8.6.0-mbs/14113-672-idm with ipa-healthcheck-0.7-9.module+el8.6.0+14113+b87cb360.noarch


# ipa-healthcheck --debug --source pki.server.healthcheck.clones.connectivity_and_data
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
[]
# echo $?
0


Reported issue fixed, therefore marking as verified: tested.

Comment 10 Sudhir Menon 2022-02-25 10:59:33 UTC
Marking the bug as verified using latest nightly

ipa-healthcheck-0.7-10.module+el8.6.0+14292+18b36d36.noarch
ipa-healthcheck-core-0.7-10.module+el8.6.0+14292+18b36d36.noarch
ipa-server-4.9.8-6.module+el8.6.0+14224+4c38d4ea.x86_64
pki-ca-10.12.0-2.module+el8.6.0+14115+8b467244.noarch

[root@server ~]# ipa-healthcheck --source pki.server.healthcheck.clones.connectivity_and_data
[]

Replica without CA
[root@replica2 ~]# pki-healthcheck --source pki.server.healthcheck.clones.connectivity_and_data
[
  {
    "source": "pki.server.healthcheck.clones.connectivity_and_data",
    "check": "ClonesConnectivyAndDataCheck",
    "result": "CRITICAL",
    "uuid": "698c474e-1ec4-4ed3-8102-60fffa3217e1",
    "when": "20220225105622Z",
    "duration": "0.000190",
    "kw": {
      "status": "Invalid PKI instance: pki-tomcat"
    }
  }
]

Comment 11 Florence Blanc-Renaud 2022-03-22 07:41:11 UTC
Test added upstream in freeipa repo:
master:
https://pagure.io/freeipa/c/67488d2342577cd226539c72d2a79362d9736b30

The test is located in freeipa/ipatests/test_integration/test_ipahealthcheck.py::TestIpaHealthCheck::test_source_pki_server_clones_connectivity_and_data

Comment 12 Florence Blanc-Renaud 2022-03-22 12:52:08 UTC
Test added upstream in freeipa repo:
ipa-4-9:
https://pagure.io/freeipa/c/98eb661fd8eed87119e7b299379cba48bde0f387

Comment 15 errata-xmlrpc 2022-05-10 14:09:17 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 (idm:client and idm:DL1 bug fix and enhancement update), 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/RHEA-2022:1884