Uploaded image for project: 'Cert Manager support for Red Hat OpenShift'
  1. Cert Manager support for Red Hat OpenShift
  2. CM-396

Controller constantly updates Certificate object causing issues with renewing the cert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Security
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      The cert manager is constantly updating the Certificate causing issues with renewing the certs.
      The controller shows error:

      "the object has been modified; please apply your changes to the latest version and try again"
      

      Only option is to restart the cert manager controller to reissue the new certificate.

      Comment from the customer:

      cert-manager operator sometimes fails to complete ACME certificate generation for ingress cert. we have been able to reproduce this several times. destroying the cert-manager pod fixes the problem but this is not desirable. the inital failure seems to be a race condition where a secret is missing:

      "Certificate must be re-issued" logger="cert-manager.certificates-trigger" key="openshift-ingress/cert-manager-ingress-cert" reason="DoesNotExist" message="Issuing certificate as Secret does not exist"
      

      the cert-manager logs show that it tries to re-queue but it never tries again:

      "re-queuing item due to optimistic locking on resource" logger="cert-manager.certificates-readiness" key="openshift-ingress/cert-manager-ingress-cert" error="Operation cannot be fulfilled on certificates.cert-manager.io \"cert-manager-ingress-cert\": the object has been modified; please apply your changes to the latest version and try again"
      

      I see same errors on my reproducer lab. I see that the controller is constantly updating the status of the certificate.

              Unassigned Unassigned
              rhn-support-vwalek Vladislav Walek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: