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

CPUArch is hardcoded to x86_64

XMLWordPrintable

    • 1
    • Metal Platform 228, Metal Platform 229, Metal Platform 230, Metal Platform 231
    • 4
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The cpu architecture is hardcoded in the code to x86_64, hence when provisioning aarch64 system, we see x86_64 being passed as properties through the provisioning.
      It is not clear whether this has an impact.

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

      4.12

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create an InfraEnv with aarch cpuArchitecture
      2. Create a BMH and attempt provisioning
      3.
       Check metal3/ironic logs and see the x86_64 property being set

      Actual results:

      {"level":"info","ts":1670258530.8945937,"logger":"provisioner.ironic","msg":"starting provisioning","host":"aarch64~aarch64","node properties":{"capabilities":"boot_mode:uefi","cpu_arch":"x86_64","local_gb":50,"root_device":{"name":"s== /dev/sda"},"vendor":" "}}

      Expected results:

      aarch64 set

      Additional info:

      Code where it is hardcoded: https://github.com/metal3-io/baremetal-operator/blob/main/pkg/hardware/profile.go#L36
      
      

            rpittau@redhat.com Riccardo Pittau
            adetalho@redhat.com Alexis de Talhouƫt
            Alessandro Di Stefano Alessandro Di Stefano
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: