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

Config Policy controller may fail to reconcile because of incomplete list of server APIs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • GRC
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • GRC Sprint 2023-08
    • Important
    • No

      Description of problem:

      ConfigurationPolicies might not be reconciled if other components are causing problems on the cluster. New policies will not receive a compliance state. Existing policies will not be updated. 

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:

      1. Create a kind cluster
      2. Install a metrics server (https://kubernetes-sigs.github.io/metrics-server/)
      3. Install the config-policy-controller
      4. Create a configuration policy

      Actual results:

      No compliance state on the policy.

      Expected results:

      A compliance state on the policy.

      Additional info:

      The error in the config-policy-controller in the reproduced case described above is like:
      error    configuration-policy-controller    logr@v1.2.2/logr.go:270    Could not get the API resource list    

      {"error": "unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request"}

      In other places I've seen this, it's the same kind of error but on different APIs:
      error    configuration-policy-controller    logr@v1.2.2/logr.go:270    Could not get the API resource list    

      {"error": "unable to retrieve the complete list of server APIs: admission.cluster.open-cluster-management.io/v1: the server is currently unable to handle the request, admission.work.open-cluster-management.io/v1: the server is currently unable to handle the request"}

              jkulikau@redhat.com Justin Kulikauskas
              jkulikau@redhat.com Justin Kulikauskas
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: