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

ManagedCluster created without vendor label

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.16
    • GitOps ZTP
    • None
    • None
    • CNF RAN Sprint 258, CNF RAN Sprint 259
    • 2
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      In ZTP, when creating a cluster, a KlusterletAddonConfig CR is created to create a ManagedCluster with the labels:

        clusterLabels:
          cloud: auto-detect
          vendor: auto-detect    

      According to the doc, when importing with `auto-detect` this should be substitued, in our case, by Openshift. This is not happening, and the ManagedCluster CRs dont get the vendor label.

      More info here

       

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

          4.16

      How reproducible:

      In your usual ZTP Gitops deployment, you will observe that ManagedClusters dont have the vendor label:

       

      > oc get managedcluster vsno5 -o json | grep vendor
      
      > 

       

       

      Steps to Reproduce:

          1. Install ACM observability
          2. Install a cluster with ZTP
          3. No data being sent back to the hub + no "vendor" and "cloud" label in the generated managedcluster CR
          

      Actual results:

          

      Expected results:

      "vendor" and "cloud" label in the generated managedcluster CR with appropriate values and ACM observability should work without any user intervention (i.e managedcluster metrics should start flowing into hub right after cluster installed successfully)  

      Additional info:

          

              npathan@redhat.com Nahian Pathan
              jgato@redhat.com Jose Gato Luis
              Dwaine Gonyier Dwaine Gonyier
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: