The test test_ipahealthcheck.py::TestIpaHealthCheck::test_ipahealthcheck_dogtag_ca_connectivity_check started failing after the commit for #9738 During server installation don't use the PKI API directly to issue certificates
test_ipahealthcheck.py::TestIpaHealthCheck::test_ipahealthcheck_dogtag_ca_connectivity_check
ipa-healthcheck --source ipahealthcheck.dogtag.ca --check DogtagCertsConnectivityCheck
ipa healthcheck returns an error with a different message:
RUN ['ipa-healthcheck', '--source', 'ipahealthcheck.dogtag.ca', '--check', 'DogtagCertsConnectivityCheck', '--output-type', 'json'] /usr/lib/python3.14/site-packages/ipahealthcheck/core/core.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources ra.get_certificate(): Unable to communicate with CMS (Failed to retrieve certificate: 503 Server Error: Service Unavailable for url: https://master.ufreeipa.test:443/ca/rest/certs/310755924739360942035656774297205087608) [ { "source": "ipahealthcheck.dogtag.ca", "check": "DogtagCertsConnectivityCheck", "result": "ERROR", "uuid": "4abc507b-c81f-4317-b245-1c825c49dcd4", "when": "20251124094513Z", "duration": "0.110881", "kw": { "key": "cert_show_ra", "error": "Certificate operation cannot be completed: Unable to communicate with CMS (Failed to retrieve certificate: 503 Server Error: Service Unavailable for url: https://master.ufreeipa.test:443/ca/rest/certs/310755924739360942035656774297205087608)", "serial": "310755924739360942035656774297205087608", "msg": "Request for certificate failed: {error}" } } ]
The test should succeed
freeipa-server-4.13.0.dev202511211100+git0aced7392-0.fc44.x86_64
The test needs to be updated with the new expected error message. Right now it's expecting:
additional_msg = ( "Certificate operation cannot be completed: " "Request failed with status 503: " "Non-2xx response from CA REST API: 503. (503)" )
Metadata Update from @frenaud: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8035
master:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)