Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-16903

IPACertfileExpirationCheck fails with error: 'can't compare offset-naive and offset-aware datetimes''

    •  ipa-healthcheck-0.16-2.el9
    • None
    • None
    • 1
    • rhel-sst-idm-ipa
    • ssg_idm
    • 13
    • 14
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • 2023-Q4-Alpha-S5
    • x86_64
    • None

      What were you trying to do that didn't work?

      ipa-healthcheck displays CRITICAL error

      Please provide the package NVR for which bug is seen:

      ipa-healthcheck-0.12-4.el9.noarch
      ipa-server-4.11.0-1.el9.x86_64
      idm-pki-ca-11.4.2-1.el9.noarch

      How reproducible: Always

      Steps to reproduce

      1. [root@server ~]# ipa-healthcheck
      2. [
      3. {
      4. "source": "ipahealthcheck.ipa.certs","check": "IPACertfileExpirationCheck",
      5. "result": "CRITICAL",
      6. "uuid": "bc813bc6-e9f4-4543-a770-8aba9b8c0bd2",
      7. "when": "20231120104620Z",
      8. "duration": "0.009114",
      9. "kw": {
      10. "exception": "can't compare offset-naive and offset-aware datetimes",
      11. "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/ipa/certs.py\", line 385, in check\n if now > notafter:\nTypeError: can't compare offset-naive and offset-aware datetimes\n"

      Expected results

      The error in the above check should be fixed.

      Actual results

      TypeError: can't compare offset-naive and offset-aware datetimes

              rhn-engineering-rcrit Rob Crittenden
              sumenon@redhat.com Sudhir Menon
              Rob Crittenden Rob Crittenden
              Sudhir Menon Sudhir Menon
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: