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

Configmap driver-config content frequently updating

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • Production
    • None
    • None
    • Done
    • Bug Fix
    • Hide
      Before this update, the `driver-config` parameter in the config map content was flapping due to the Go randomized map iteration order. As a consequence, storage classes and related components were appearing in different sequences on each reconcile loop even when the actual data did not change. The frequent and unnecessary config map updates in the hosted cluster namespace caused instability and potential performance issues. With this release, consistent alphabetical sorting is implemented for storage groups, storage classes within each group, volume snapshot classes within each group, and the `allowList` array to ensure deterministic output. As a result, the `driver-config` config map does not experience content flapping, which eliminates unnecessary updates and improves stability.
      Show
      Before this update, the `driver-config` parameter in the config map content was flapping due to the Go randomized map iteration order. As a consequence, storage classes and related components were appearing in different sequences on each reconcile loop even when the actual data did not change. The frequent and unnecessary config map updates in the hosted cluster namespace caused instability and potential performance issues. With this release, consistent alphabetical sorting is implemented for storage groups, storage classes within each group, volume snapshot classes within each group, and the `allowList` array to ensure deterministic output. As a result, the `driver-config` config map does not experience content flapping, which eliminates unnecessary updates and improves stability.
    • None
    • None
    • None
    • None

      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
              Martin Gencur Martin Gencur
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: