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

Node labels and taints not getting applied to a machine pool using ROSA CLI

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • No
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      In an hcp cluster, the node labels and taints are not getting applied to a machine pool using ROSA CLI.
      We also observed that nodes and taints do exist on nodepools, but they don't get synced down to the worker nodes

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

      ocm describe cluster rosa-sasviya
      ID:                     29glkgp83eut7jvmcp0ntfvqhum5p07h
      External ID:            477a8eba-69e7-450a-be9e-54c4f56b40c6
      Name:                   rosa-sasviya
      State:                  ready
      API URL:                https://api.rosa-sasviya.x3uc.p3.openshiftapps.com:443
      API Listening:          external
      Console URL:            https://console-openshift-console.apps.rosa.rosa-sasviya.x3uc.p3.openshiftapps.com
      Masters:                0
      Infra:                  0
      Computes:               3
      Product:                rosa
      Provider:               aws
      Version:                4.14.16
      Region:                 us-east-2
      Multi-az:               true
      CCS:                    true
      Subnet IDs:             [subnet-0dfeff8ef81ead03b subnet-074424179474a07d9]
      PrivateLink:            false
      STS:                    true
      Existing VPC:           true
      Channel Group:          stable
      Cluster Admin:          true    

      How reproducible:

      %100    

      Steps to Reproduce:

      1. rosa create machinepool --cluster=rosa-sasviya --name=stateless-pool --replicas=1 --instance-type=r5.xlarge \
      --labels=workload.sas.com/class=stateless \
      --taints=workload.sas.com/class=stateless:NoSchedule,workload.sas.com/class=stateful:NoSchedule     
      2. oc get nodepool -n ocm-production-29glkgp83eut7jvmcp0ntfvqhum5p07h rosa-sasviya-stateless-pool -o json | jq .spec.nodeLabels
      {
        "workload.sas.com/class": "stateless"
      } 
      3. oc get node ip-10-0-0-10.us-east-2.compute.internal -o json | jq '. | .spec.taints, .metadata.labels' | grep stateless
      
      null    

      Expected results:

          There should be the labels and taints applied

      Additional info:

      In CAPI logs, I don't see our labels is being mentioned
      
      I0328 11:58:45.049812       1 logger.go:71] "done reconciling instance" instance={"id":"i-0f4b2423313b29793","instanceState":"running","type":"r5.xlarge","subnetId":"subnet-074424179474a07d9","imageId":"ami-0f736c64d5751d7d3","securityGroupIds":["sg-0644f575ac060ecf3"],"iamProfile":"rosa-service-managed-production-29glkgp83eut7jvmcp0ntfvqhum5p07h-rosa-sasviya-worker","addresses":[{"type":"InternalDNS","address":"ip-10-0-0-10.us-east-2.compute.internal"},{"type":"InternalIP","address":"10.0.0.10"}],"privateIp":"10.0.0.10","enaSupport":true,"ebsOptimized":false,"tags":{"MachineName":"ocm-production-29glkgp83eut7jvmcp0ntfvqhum5p07h-rosa-sasviya/rosa-sasviya-stateless-pool-d9877796bxq5cwq-ssm88","Name":"rosa-sasviya-stateless-pool-f9865c54-fr6rv","api.openshift.com/environment":"production","api.openshift.com/id":"29glkgp83eut7jvmcp0ntfvqhum5p07h","api.openshift.com/legal-entity-id":"1H1PQMDtwzAUsjPxgoWRjhSpNGD","api.openshift.com/name":"rosa-sasviya","api.openshift.com/nodepool-hypershift":"rosa-sasviya-stateless-pool","api.openshift.com/nodepool-ocm":"stateless-pool","kubernetes.io/cluster/29glkgp83eut7jvmcp0ntfvqhum5p07h":"owned","red-hat-clustertype":"rosa","red-hat-managed":"true","sigs.k8s.io/cluster-api-provider-aws/cluster/29glkgp83eut7jvmcp0ntfvqhum5p07h":"owned","sigs.k8s.io/cluster-api-provider-aws/role":"node"},"availabilityZone":"us-east-2a","volumeIDs":["vol-03eb2ce5c152f5346"],"instanceMetadataOptions":{"httpEndpoint":"enabled","httpPutResponseHopLimit":1,"httpTokens":"optional","instanceMetadataTags":"disabled"}}    

              Unassigned Unassigned
              bseref Boran Seref
              None
              None
              Jie Zhao Jie Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: