Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-3233

Hosted mode config-policy-controller uninstalls fail with pruneObjectBehavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • ACM 2.7.0
    • GRC
    • None
    • 3
    • False
    • None
    • False
    • ACM Sprint 27, GRC Sprint 2023-01
    • Critical
    • No

      When a hosted cluster is removed from ACM, it triggers the hosted cluster instance of the config-policy-controller to be uninstalled on the hosting cluster.

      If any ConfigurationPolicy uses pruneObjectBehavior, they will have finalizers set on them. During an uninstall, the finalizers are immediately removed on the next evaluation of the ConfigurationPolicy with pruneObjectBehavior set so that the uninstall can proceed immediately.

      The issue is if the ConfigurationPolicy sets evaluationInterval to a long value, the finalizer won't be removed until the next evaluation time, which could be hours. SD's environment sets this to 2 hours as of now.

      This is not an issue when it's not deployed in hosted mode because the CRD is also deleted at the same time, which causes the ConfigurationPolicy to have a deletionTimestamp which then causes immediate evaluation for the finalizer to be removed.

      Another issue is that the config-policy-controller pod was deleted before the cleanup could occur. This happens because the controller would just exit as soon as the SIGINT signal was received.

              mprahl Matthew Prahl
              mprahl Matthew Prahl
              Justin Kulikauskas
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: