CLOS-3468: Add support for upgrades cl8 -> cl9 with cl-mysql#38
CLOS-3468: Add support for upgrades cl8 -> cl9 with cl-mysql#38prilr merged 2 commits intocloudlinuxfrom
Conversation
Replace hardcoded "7" and "8" in the actor code with dynamically detected get_source_major_version which makes code work both with CloudLinux 8 and CloudLinux 9 upgrades.
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. |
| target_repo.repoid = "{}-{}".format(target_repo.repoid, target_major) | ||
| # Replace the first occurrence of source_major with target_major after 'yum' | ||
| url_parts = target_repo.baseurl.split("yum", 1) | ||
| if len(url_parts) == 2: |
There was a problem hiding this comment.
Should we report an error or a warning message here if split didn't go as expected? For example, in case of URL change.
This PR adds support for cl-mysql and cl-mariadb upgrades during elevation from CloudLinux 8 to CloudLinux 9.