-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
rhel-9.7
-
None
-
Yes
-
None
-
rhel-idm-ipa
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
ipahealthcheck check is failing.
What is the impact of this issue to you?
Please provide the package NVR for which the bug is seen:
ipa-server-4.12.2-18.el9.x86_64
ipa-healthcheck-core-0.16-7.el9.noarch
How reproducible is this bug?:
Always
Steps to reproduce
Run ipa-healthcheck.
Expected results
Fix the error ''AttributeError: module 'datetime' has no attribute 'UTC'\n"
Actual results
ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['ipa-healthcheck', '--source', 'ipahealthcheck.ds.replication']
ipatests.pytest_ipa.integration.host.Host.master.cmd136:transport.py:513 RUN ['ipa-healthcheck', '--source', 'ipahealthcheck.ds.replication']
[
{
"source": "ipahealthcheck.ds.replication",
"check": "ReplicationCheck",
"result": "CRITICAL",
"uuid": "de6deebd-0595-40a6-9f19-00281fb65e2e",
"when": "20250707164351Z",
"duration": "1.043992",
"kw": {
"exception": "module 'datetime' has no attribute 'UTC'",
"traceback": "Traceback (most recent call last):\n File \"/usr/lib/python3.9/site-packages/ipahealthcheck/core/core.py\", line 56, in run_plugin\n for result in plugin.check():\n File \"/usr/lib/python3.9/site-packages/ipahealthcheck/core/plugin.py\", line 18, in wrapper\n for result in f(*args, **kwds):\n File \"/usr/lib/python3.9/site-packages/ipahealthcheck/ds/plugin.py\", line 108, in check\n results = self.doCheck(self.check_class, self.many)\n File \"/usr/lib/python3.9/site-packages/ipahealthcheck/ds/plugin.py\", line 97, in doCheck\n for result in results:\n File \"/usr/lib/python3.9/site-packages/lib389/_mapped_object_lint.py\", line 126, in lint\n yield from f()\n File \"/usr/lib/python3.9/site-packages/lib389/replica.py\", line 1325, in _lint_no_ruv\n ruv_dict = ruv.format_ruv()\n File \"/usr/lib/python3.9/site-packages/lib389/replica.py\", line 949, in format_ruv\n \"csn\": RUV().parse_csn(self._rid_csn.get(rid, '00000000000000000000')),\n File \"/usr/lib/python3.9/site-packages/lib389/replica.py\", line 920, in parse_csn\n time_str = datetime.datetime.fromtimestamp(timestamp, datetime.UTC).strftime('%Y-%m-%d %H:%M:%S')\nAttributeError: module 'datetime' has no attribute 'UTC'\n"