puppetlabs-mysql icon indicating copy to clipboard operation
puppetlabs-mysql copied to clipboard

(CAT-2124) Add support for Ubuntu 24

Open skyamgarp opened this issue 1 year ago • 2 comments

Summary

Provide a detailed description of all the changes present in this pull request.

Additional Context

Add any additional context about the problem here.

  • [ ] Root cause and the steps to reproduce. (If applicable)
  • [ ] Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • [ ] 🟢 Spec tests.
  • [ ] 🟢 Acceptance tests.
  • [ ] Manually verified. (For example puppet apply)

skyamgarp avatar Nov 06 '24 07:11 skyamgarp

@skyamgarp, @bastelfreak, @alexjfisher can we have some news?

When this PR was done the puppet-agent on Ubuntu 24.04 was not ready. What about now?

Tonguechaude avatar May 23 '25 14:05 Tonguechaude

@skyamgarp skyamgarp Can we have some news ?

After a quick review of code , it looks that only ruby driver should be updated. As possible diff :

 diff --git a/manifests/params.pp b/manifests/params.pp
index c53c4f6..2c6fe50 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -214,15 +214,8 @@ class mysql::params {
       }
 
       $ruby_package_name   =  $facts['os']['release']['major']  ? {
-        '9'     => 'ruby-mysql2', # stretch
-        '10'    => 'ruby-mysql2', # buster
-        '11'    => 'ruby-mysql2', # bullseye
-        '12'    => 'ruby-mysql2', # bookworm
         '16.04' => 'ruby-mysql', # xenial
-        '18.04' => 'ruby-mysql2', # bionic
-        '20.04' => 'ruby-mysql2', # focal
-        '22.04' => 'ruby-mysql2', # jammy
-        default => 'libmysql-ruby',
+        default => 'ruby-mysql2',
       }
     }

We are also impacted by this bug because systemd version is 255 with Ubuntu 24.04 : https://jira.mariadb.org/browse/MDEV-35904

A fix can be to add a drop-in systemd file with content:

[Service]
Environment="MYSQLD_OPTS="
Environment="_WSREP_NEW_CLUSTER="

Dan33l avatar Jul 02 '25 14:07 Dan33l