Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-62808

Configmap driver-config content frequently updating

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • Production
    • None
    • None
    • None
    • In Progress
    • Bug Fix
    • Hide
      Cause: The driver-config ConfigMap content was flapping due to Go's randomized map iteration order, causing storage classes and related components to appear in different sequences on each reconcile loop even when the actual data remained unchanged.
      Consequence: Frequent and unnecessary ConfigMap updates in the hosted cluster namespace, leading to instability and potential performance issues.
      Fix: Implements consistent alphabetical sorting for storage groups, storage classes within each group, volume snapshot classes within each group, and the allowList array to ensure deterministic output.
      Result: The driver-config ConfigMap no longer experiences content flapping, eliminating unnecessary updates and improving stability.
      Show
      Cause: The driver-config ConfigMap content was flapping due to Go's randomized map iteration order, causing storage classes and related components to appear in different sequences on each reconcile loop even when the actual data remained unchanged. Consequence: Frequent and unnecessary ConfigMap updates in the hosted cluster namespace, leading to instability and potential performance issues. Fix: Implements consistent alphabetical sorting for storage groups, storage classes within each group, volume snapshot classes within each group, and the allowList array to ensure deterministic output. Result: The driver-config ConfigMap no longer experiences content flapping, eliminating unnecessary updates and improving stability.
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-62807. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-62806. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-61245. The following is the description of the original issue:

      Description of problem:

      The configmap driver-config in the hosted cluster namespace is frequently getting update with random order of the storageclasses.
          

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

      OpenShift Container Platform 4.18.19
      multicluster-engine.v2.8.2
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1. Create OCP cluster
          2. Create HCP cluster with infra-volumesnapshot-class-mapping and infra-storage-class-mapping
          3. observe driver-config content in hosted-cluster namespace
          

      Actual results:

      Content of configMap is flapping every few seconds between:
      
        infraStorageClassEnforcement: "allowAll: false\nallowList: [block-gold, block-platinum]\nstorageSnapshotMapping:
          \n- storageClasses:\n  - block-gold\n  volumeSnapshotClasses:\n  - block-gold\n-
          storageClasses:\n  - block-platinum\n  volumeSnapshotClasses:\n  - block-platinum\n"
      
      and
        infraStorageClassEnforcement: "allowAll: false\nallowList: [block-gold, block-platinum]\nstorageSnapshotMapping:
          \n- storageClasses:\n  - block-platinum\n  volumeSnapshotClasses:\n  - block-platinum\n-
          storageClasses:\n  - block-gold\n  volumeSnapshotClasses:\n  - block-gold\n"
      
      
          

      Expected results:

      content should stay the same
          

      Additional info:

      
          

              jparrill@redhat.com Juan Manuel Parrilla Madrid
              rhn-support-anowak Andreas Nowak
              None
              None
              Yu Li Yu Li
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: