[MDEV-31561] MariaDB-server-compat complicates server upgrade from 10.x to 11.x on CentOS/RHEL 7 Created: 2023-06-27 Updated: 2023-06-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Documentation, Packaging, Platform RedHat |
| Affects Version/s: | 11.0, 11.1 |
| Fix Version/s: | 11.0, 11.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Let's have some 10.x server installed on CentOS 7:
If we are trying to upgrade to any higher 10.x, then as usual, server will refuse to upgrade because we explicitly forbid it to do so, while the rest will upgrade.
So, we need to remove MariaDB-server, as the error text demands, and install the new server instead. That works.
But if we are instead trying to upgrade to 11.x, it doesn't just refuse to upgrade the server and upgrades the other 3 packages; it also installs MariaDB-server-compat and MariaDB-client-compat for dependencies.
And now removal of MariaDB-server no longer works.
Instead, the user needs to remove explicitly 10.x server and 11.x server-compat, only then it works. This is odd, because even the error says that compat packages require server 11.x. They shouldn't have succeeded to install maybe, but if they got installed, they shouldn't mind removal of 10.x server which they have no relation to. As I understand, the problem only affects old distributions which don't distinguish requirements from recommendations (RHEL/CentOS 7 for sure, maybe old SLES too), so it may be acceptable just to document it. Maybe the error text about a manual upgrade could mention something as well. |