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

Fix data race in ClusterInfo.GetVCenterHostnames in vsphere-problem-detector-operator

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.21, 4.22
    • Storage / Operators
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      The GetVCenterHostnames() method in pkg/util/cluster_info.go lacks proper synchronization and returns the internal slice reference directly. It may impact: 
        - Potential data race when SetVCenterVersion() modifies vcenterHostnames concurrently (called in CollectClusterInfo via goroutines)
        - External callers can modify the returned slice, affecting internal state

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

      4.21, 4.22 and earlier    

              wduan@redhat.com Wei Duan
              wduan@redhat.com Wei Duan
              None
              None
              Rahul Deore Rahul Deore
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: