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

[CAPI Azure] architecture for gallery image is still x64 when specifying controlPlane.architecture to arm64

XMLWordPrintable

      Description of problem:

      Specify controlPlane.architecture as arm64 in install-config
      ===
      controlPlane:
        architecture: arm64
        name: master
        platform:
          azure:
            type: null
      compute:
      - architecture: arm64
        name: worker
        replicas: 3
        platform:
          azure:
            type: Standard_D4ps_v5
      
      Launch installer to create cluster, installer exit with below error:
      
      time="2024-07-26T06:11:00Z" level=debug msg="\tfailed to reconcile AzureMachine: failed to reconcile AzureMachine service virtualmachine: failed to create or update resource ci-op-wtm3h6km-72f4b-fdwtz-rg/ci-op-wtm3h6km-72f4b-fdwtz-bootstrap (service: virtualmachine): PUT https://management.azure.com/subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/ci-op-wtm3h6km-72f4b-fdwtz-rg/providers/Microsoft.Compute/virtualMachines/ci-op-wtm3h6km-72f4b-fdwtz-bootstrap"
      time="2024-07-26T06:11:00Z" level=debug msg="\t--------------------------------------------------------------------------------"
      time="2024-07-26T06:11:00Z" level=debug msg="\tRESPONSE 400: 400 Bad Request"
      time="2024-07-26T06:11:00Z" level=debug msg="\tERROR CODE: BadRequest"
      time="2024-07-26T06:11:00Z" level=debug msg="\t--------------------------------------------------------------------------------"
      time="2024-07-26T06:11:00Z" level=debug msg="\t{"
      time="2024-07-26T06:11:00Z" level=debug msg="\t  \"error\": {"
      time="2024-07-26T06:11:00Z" level=debug msg="\t    \"code\": \"BadRequest\","
      time="2024-07-26T06:11:00Z" level=debug msg="\t    \"message\": \"Cannot create a VM of size 'Standard_D8ps_v5' because this VM size only supports a CPU Architecture of 'Arm64', but an image or disk with CPU Architecture 'x64' was given. Please check that the CPU Architecture of the image or disk is compatible with that of the VM size.\""
      time="2024-07-26T06:11:00Z" level=debug msg="\t  }"
      time="2024-07-26T06:11:00Z" level=debug msg="\t}"
      time="2024-07-26T06:11:00Z" level=debug msg="\t--------------------------------------------------------------------------------"
      time="2024-07-26T06:11:00Z" level=debug msg=" > controller=\"azuremachine\" controllerGroup=\"infrastructure.cluster.x-k8s.io\" controllerKind=\"AzureMachine\" AzureMachine=\"openshift-cluster-api-guests/ci-op-wtm3h6km-72f4b-fdwtz-bootstrap\" namespace=\"openshift-cluster-api-guests\" name=\"ci-op-wtm3h6km-72f4b-fdwtz-bootstrap\" reconcileID=\"60b1d513-07e4-4b34-ac90-d2a33ce156e1\""
      
      Checked that gallery image definitions (Gen1 & Gen2), the architecture is still x64.
      $ az sig image-definition show --gallery-image-definition ci-op-wtm3h6km-72f4b-fdwtz -g ci-op-wtm3h6km-72f4b-fdwtz-rg --gallery-name gallery_ci_op_wtm3h6km_72f4b_fdwtz
      {
        "architecture": "x64",
        "hyperVGeneration": "V1",
        "id": "/subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/ci-op-wtm3h6km-72f4b-fdwtz-rg/providers/Microsoft.Compute/galleries/gallery_ci_op_wtm3h6km_72f4b_fdwtz/images/ci-op-wtm3h6km-72f4b-fdwtz",
        "identifier": {
          "offer": "rhcos",
          "publisher": "RedHat",
          "sku": "basic"
        },
        "location": "southcentralus",
        "name": "ci-op-wtm3h6km-72f4b-fdwtz",
        "osState": "Generalized",
        "osType": "Linux",
        "provisioningState": "Succeeded",
        "resourceGroup": "ci-op-wtm3h6km-72f4b-fdwtz-rg",
        "tags": {
          "kubernetes.io_cluster.ci-op-wtm3h6km-72f4b-fdwtz": "owned"
        },
        "type": "Microsoft.Compute/galleries/images"
      }
      
      $ az sig image-definition show --gallery-image-definition ci-op-wtm3h6km-72f4b-fdwtz-gen2 -g ci-op-wtm3h6km-72f4b-fdwtz-rg --gallery-name gallery_ci_op_wtm3h6km_72f4b_fdwtz 
      {
        "architecture": "x64",
        "hyperVGeneration": "V2",
        "id": "/subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/ci-op-wtm3h6km-72f4b-fdwtz-rg/providers/Microsoft.Compute/galleries/gallery_ci_op_wtm3h6km_72f4b_fdwtz/images/ci-op-wtm3h6km-72f4b-fdwtz-gen2",
        "identifier": {
          "offer": "rhcos-gen2",
          "publisher": "RedHat-gen2",
          "sku": "gen2"
        },
        "location": "southcentralus",
        "name": "ci-op-wtm3h6km-72f4b-fdwtz-gen2",
        "osState": "Generalized",
        "osType": "Linux",
        "provisioningState": "Succeeded",
        "resourceGroup": "ci-op-wtm3h6km-72f4b-fdwtz-rg",
        "tags": {
          "kubernetes.io_cluster.ci-op-wtm3h6km-72f4b-fdwtz": "owned"
        },
        "type": "Microsoft.Compute/galleries/images"
      }   

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

      4.17 nightly build    

      How reproducible:

      Always

      Steps to Reproduce:

          1. Configure controlPlane.architecture as arm64
          2. Create cluster by using multi nightly build
          

      Actual results:

          Installation fails as unable to create bootstrap/master machines

      Expected results:

          Installation succeeds.

      Additional info:

          

            jhixson_redhat John Hixson
            jinyunma Jinyun Ma
            Jinyun Ma Jinyun Ma
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: