[MXS-3935] mariadb_repo_setup script configures Maxscale repos in the wrong way for ARM Created: 2022-01-05  Updated: 2022-01-20  Resolved: 2022-01-20

Status: Closed
Project: MariaDB MaxScale
Component/s: Repositories
Affects Version/s: 2.5.17, 6.1.2, 6.2.0
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Timofey Turenko Assignee: Daniel Bartholomew
Resolution: Fixed Votes: 0
Labels: None


 Description   

script puts [arch=amd64] on ARM machine:

deb [arch=amd64] https://dlm.mariadb.com/repo/maxscale/2.5.17/apt stretch main

for RHEL 8:

[error] Only RHEL/CentOS 7 are supported for ARM64. Detected version: '8'

but Maxscale repo exists for RHEL 8 ARM!

same for SLES:

[error] SLES is not currently supported for ARM64



 Comments   
Comment by Daniel Bartholomew [ 2022-01-06 ]

Looks like the following is the current list of distributions + architectures for maxscale:

dbart@dl02:/home/mariadb-repos/mariadb-maxscale$ ls -d1 6.2.0/yum/[rs]*/+(7|8|12|15)/*
6.2.0/yum/rhel/7/x86_64
 
6.2.0/yum/rhel/8/aarch64
6.2.0/yum/rhel/8/x86_64
 
6.2.0/yum/sles/12/x86_64
 
6.2.0/yum/sles/15/aarch64
6.2.0/yum/sles/15/x86_64
 
 
dbart@dl02:/home/mariadb-repos/mariadb-maxscale$ ls -d1 6.2.0/apt/dists/*/main/binary-+(amd64|arm64)
6.2.0/apt/dists/bionic/main/binary-amd64
6.2.0/apt/dists/bionic/main/binary-arm64
 
6.2.0/apt/dists/bullseye/main/binary-amd64
6.2.0/apt/dists/bullseye/main/binary-arm64
 
6.2.0/apt/dists/buster/main/binary-amd64
6.2.0/apt/dists/buster/main/binary-arm64
 
6.2.0/apt/dists/focal/main/binary-amd64
6.2.0/apt/dists/focal/main/binary-arm64
 
6.2.0/apt/dists/stretch/main/binary-amd64
6.2.0/apt/dists/stretch/main/binary-arm64

So currently arm64/aarch64 packages only exist for RHEL-8, SLES-15 on the rpm side of things, but exist for all dists on the deb side. I'll get the script updated to support that.

Comment by Daniel Bartholomew [ 2022-01-12 ]

tturenko I've uploaded a new version of mariadb_repo_setup to staging here: https://dlm.mariadb.com/browse/enterprise_release_helpers_staging/159/953/

Can you test it to confirm that it solves the arm issue with MaxScale repositories?

You can also download it on the command line or from inside a script using the following URL:

https://dlm.mariadb.com/<token>/enterprise-release-helpers-staging/mariadb_repo_setup

Just replace <token> with your enterprise download token.

This isn't the final version as I still have a little bit of polishing and testing of my own to do, but the core of the fix is in place.

Thanks.

Comment by Timofey Turenko [ 2022-01-13 ]

SLES15 aarch64 packages are available, but script still can't configure it https://mdbe-buildbot.mariadb.net/#/builders/82/builds/4908/steps/9/logs/stdio

Comment by Daniel Bartholomew [ 2022-01-13 ]

Looks like the OS detection isn't working because MariaDB isn't supported for SLES 15 aarch64. Need to disable that error when --skip-server is given.

Comment by Daniel Bartholomew [ 2022-01-13 ]

Fixed version uploaded to staging

Comment by Daniel Bartholomew [ 2022-01-20 ]

pushed to production

Generated at Thu Feb 08 04:25:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.