Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3309

Fix release issue on RHEL AArch64 architecture

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 100.7.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • TAR 2023-05-29
    • 1

      Problem Statement/Rationale

      Mongo Installation on RHEL ARM architecture need to declare two yum dependancies since the rpm packages are split between aarch64 and arm64

      Steps to Reproduce

      Follow the installation guide for RHEL and place inside 

      /etc/yum.repos.d/mongodb-org-6.0.repo 

      the yum repository targeting aarch64:

      [mongodb-org-6.0]
      name=MongoDB Repository
      baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/6.0/aarch64/
      gpgcheck=1
      enabled=1
      gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc

      And install mongod with the following command:

      sudo yum install -y mongodb-org 

      Expected Results

      Mongod installed with every dependancies resolved.

      Actual Results

      The mongodb-org-tools dependancy is not resolved since he is on his own repository on the arm64 (screen in the attachment).

      Additional Notes

      If we declare two yum repositories inside

      /etc/yum.repos.d/mongodb-org-6.0.repo  

      like this:

      [mongodb-org-6.0]
      name=MongoDB Repository
      baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/6.0/aarch64/
      gpgcheck=1
      enabled=1
      gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
      
      [mongodb-org-tools-6.0]
      name=MongoDB Repository
      baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/6.0/arm64/
      gpgcheck=1
      enabled=1
      gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc 

      The dependancies are resolved

      A discussion on the mongo forum community give more detail if needed.

      Proposed Solution

      All RHEL platform releases on ARM64 should use "aarch64" as the architecture name instead of "arm64". This looks to be broken for RHEL 8.2 as well as 9.0. See 6d9d341edd33b892a2ded7bae529b0e2a96aae01 for a past commit that does this for Amazon Linux.

      We should also fix the comment in release/platform/platform.go that incorrectly states that RHEL uses "arm64".

            Assignee:
            jian.guan@mongodb.com Jian Guan
            Reporter:
            chartrain.kyllian@gmail.com Kyllian Chartrain
            Dave Rolsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: