CLOS-3833: Fix mysqlclient and cl-MySQL/MariaDB packages not upgrading when repos disabled#43
Conversation
…g when repos disabled When MySQL Governor manages the database, both repos in cl-mysql.repo (cl-mysql-meta and mysqclient) may be disabled. The clmysql_process() method would skip adding "cloudlinux" to mysql_types and skip producing CustomTargetRepositoryFile, causing finalize() to never produce the target repos. DNF then silently drops the upgrades for mysqlclient and cl-MariaDB/cl-MySQL packages because no target repo provides them. To fix it, always register "cloudlinux" type and produce target repos when CL MySQL/MariaDB is detected, regardless of source repo enabled state. Also force-enable cl-mysql-meta target repo (in addition to mysqclient) so cl-MariaDB-meta and module packages can be resolved.
Thank you for contributing to the Leapp project!Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable.
Packit will automatically schedule regression tests for this PR's build and latest upstream leapp build. If you need a different version of leapp from PR#42, use It is possible to schedule specific on-demand tests as well. Currently 2 test sets are supported,
[Deprecated] To launch on-demand regression testing public members of oamg organization can leave the following comment:
Please open ticket in case you experience technical problem with the CI. (RH internal only) Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please contact leapp-infra. |
When MySQL Governor manages the database, both repos in cl-mysql.repo (cl-mysql-meta and mysqclient) may be disabled. The clmysql_process() method would skip adding "cloudlinux" to mysql_types and skip producing CustomTargetRepositoryFile, causing finalize() to never produce the target repos. DNF then silently drops the upgrades for mysqlclient and cl-MariaDB/cl-MySQL packages because no target repo provides them.
After the change, the actor will now always register "cloudlinux" type and produce target repos when CL MySQL/MariaDB is detected, regardless of source repo enabled state.
The cl-mysql-meta target repo (in addition to mysqclient) is also force-enabled so cl-MariaDB-meta and module packages can be resolved.