Page MenuHomePhabricator

wmf-mariadb client package for bookworm
Closed, ResolvedPublic

Description

Would it be possible to add Bookworm support to profile::mariadb::packages_client? I'm not currently seeing any wmf-mariadb*-client packages in bookworm-wikimedia.

Event Timeline

ABran-WMF triaged this task as Medium priority.Nov 18 2024, 8:32 AM
ABran-WMF moved this task from Triage to Pending comment on the DBA board.
ABran-WMF added a subscriber: Marostegui.

@taavi is there anything specific you'd need? I can create the package, but I was wondering if the one shipped with debian wouldn't work for you?

@taavi is there anything specific you'd need? I can create the package, but I was wondering if the one shipped with debian wouldn't work for you?

If that makes profile::mariadb::packages_client compile on Bookworm, then I'm happy :-)

I am out for some time now, but I can test when I get back (if you don't get to it before I do). If it doesn't, I'll compile the package and push it to our repo.

I have compiled it and I am doing a quick test locallhy:

# mysql --version
mysql  Ver 15.1 Distrib 10.6.20-MariaDB, for Linux (x86_64) using readline 5.1

I have installed it on a host that will be decommissioned soon (and on db1125 -test host):

root@es2024:/home/marostegui# dpkg -i wmf-mariadb106-client_10.6.20+deb12u1_amd64.deb
Selecting previously unselected package wmf-mariadb106-client.
(Reading database ... 63482 files and directories currently installed.)
Preparing to unpack wmf-mariadb106-client_10.6.20+deb12u1_amd64.deb ...
Unpacking wmf-mariadb106-client (10.6.20+deb12u1) ...
Setting up wmf-mariadb106-client (10.6.20+deb12u1) ...
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysql to provide /usr/local/bin/mariadb (mariadb) in auto mode
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysqldump to provide /usr/local/bin/mariadbdump (mariadbdump) in auto mode
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysql to provide /usr/local/bin/mysql (mysql) in auto mode
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysqldump to provide /usr/local/bin/mysqldump (mysqldump) in auto mode
root@es2024:/home/marostegui# mysql --version
mysql  Ver 15.1 Distrib 10.6.20-MariaDB, for Linux (x86_64) using readline 5.1
Marostegui claimed this task.

Pushed to the repo

root@db1159:~# apt-get install wmf-mariadb106-client
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  python3-debconf
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  wmf-mariadb106-client
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 81.8 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://apt.wikimedia.org/wikimedia bookworm-wikimedia/main amd64 wmf-mariadb106-client amd64 10.6.20+deb12u1 [81.8 MB]
Fetched 81.8 MB in 1s (111 MB/s)
INFO:debmonitor:Got 1 updates from dpkg hook version 3
INFO:debmonitor:Successfully sent the dpkg_hook update to the DebMonitor server
Selecting previously unselected package wmf-mariadb106-client.
(Reading database ... 58556 files and directories currently installed.)
Preparing to unpack .../wmf-mariadb106-client_10.6.20+deb12u1_amd64.deb ...
Unpacking wmf-mariadb106-client (10.6.20+deb12u1) ...
Setting up wmf-mariadb106-client (10.6.20+deb12u1) ...
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysql to provide /usr/local/bin/mariadb (mariadb) in auto mode
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysqldump to provide /usr/local/bin/mariadbdump (mariadbdump) in auto mode
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysql to provide /usr/local/bin/mysql (mysql) in auto mode
update-alternatives: using /opt/wmf-mariadb106-client/bin/mysqldump to provide /usr/local/bin/mysqldump (mysqldump) in auto mode
root@db1159:~# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 1333242
Server version: 10.6.19-MariaDB-log MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql:root@localhost [(none)]> ^C
mysql:root@localhost [(none)]> Bye
root@db1159:~# mysql --version
mysql  Ver 15.1 Distrib 10.6.20-MariaDB, for Linux (x86_64) using readline 5.1

Change #1102215 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/software@master] control-mariadb-client-10.6-bookworm: Added to repo

https://gerrit.wikimedia.org/r/1102215

Change #1102215 merged by jenkins-bot:

[operations/software@master] control-mariadb-client-10.6-bookworm: Added to repo

https://gerrit.wikimedia.org/r/1102215

Change #1139817 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] P:mariadb: packages_client: Default to 10.6 on bookworm

https://gerrit.wikimedia.org/r/1139817

Change #1139817 merged by Majavah:

[operations/puppet@production] P:mariadb: packages_client: Default to 10.6 on bookworm

https://gerrit.wikimedia.org/r/1139817