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

When authority is ClusterAPI mapi machineset template value should change based on the new awsmachinetempalte

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • Done
    • Bug Fix
    • Hide
      * Before this update, the two-way synchronization controller on clusters that support migrating Machine API resources to Cluster API resources did not correctly compare the machine specification when converting an authoritative Cluster API machine template to a Machine API machine set.
      As a consequence, changes to the Cluster API machine template specification were not synchronized to the Machine API machine set.
      With this release, the comparison logic is updated to resolve the issue.
      As a result, the Machine API machine set synchronizes correctly after the Cluster API machine set references the new Cluster API machine template.
      (link:https://issues.redhat.com/browse/OCPBUGS-56010[OCPBUGS-56010])
      Show
      * Before this update, the two-way synchronization controller on clusters that support migrating Machine API resources to Cluster API resources did not correctly compare the machine specification when converting an authoritative Cluster API machine template to a Machine API machine set. As a consequence, changes to the Cluster API machine template specification were not synchronized to the Machine API machine set. With this release, the comparison logic is updated to resolve the issue. As a result, the Machine API machine set synchronizes correctly after the Cluster API machine set references the new Cluster API machine template. (link: https://issues.redhat.com/browse/OCPBUGS-56010 [ OCPBUGS-56010 ])
    • None
    • None
    • None
    • None

      Description of problem:

      When authority is ClusterAPI, create a new awsmachinetemplate with instanceType: m5.xlarge and update capi machineset to refer the new awsmachinetemplate. mapi machineset instanceType should change to m5.xlarge.

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

      4.19.0-0.nightly-2025-05-11-153555

      How reproducible:

      always

      Steps to Reproduce:

      1. Create a new mapi machineset with authoritativeAPI: ClusterAPI 
      
      2. After the machine is created, create a new awsmachinetemplate zhsunaws-lwwcm-worker11 with instanceType: m5.xlarge 
      $ oc get awsmachinetemplate -n openshift-cluster-api  
      NAME                               AGE
      zhsunaws-lwwcm-worker1             4h28m
      zhsunaws-lwwcm-worker11            9s
      
      3. Update capi machineset to refer the new awsmachinetemplate zhsunaws-lwwcm-worker11
            infrastructureRef:
              apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
              kind: AWSMachineTemplate
              name: zhsunaws-lwwcm-worker11
              namespace: openshift-cluster-api
            nodeDeletionTimeout: 10s
      4. Check mapi machineset instanceType value      

      Actual results:

      Mapi machineset instanceType is still the original value m6i.xlarge
      
      $ oc get machineset -n openshift-cluster-api zhsunaws-lwwcm-worker1 -o yaml 
            infrastructureRef:
              apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
              kind: AWSMachineTemplate
              name: zhsunaws-lwwcm-worker11
      
      $ oc get awsmachinetemplate zhsunaws-lwwcm-worker11 -o yaml | grep instanceType
            instanceType: m5.xlarge
      
      $ $ oc get machineset.m zhsunaws-lwwcm-worker1 -o yaml  | grep instanceType
                instanceType: m6i.xlarge
      
      $ oc get awsmachinetemplate zhsunaws-lwwcm-worker1 -o yaml | grep instanceType
            instanceType: m6i.xlarge

      Expected results:

      Mapi machineset instanceType should change to m5.xlarge 

      Additional info:

          

              rmanak@redhat.com Radek Manak
              rhn-support-zhsun Zhaohua Sun
              None
              None
              Zhaohua Sun Zhaohua Sun
              None
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: