[MDEV-9176] dist-upgrade from 10.1 to 10.2 fails Created: 2015-11-24 Updated: 2016-11-25 Resolved: 2016-11-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Debian |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Otto Kekäläinen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | foundation | ||
| Attachments: |
|
| Sprint: | 10.2.2-2, 10.2.4-1 |
| Description |
|
I'm not even sure that major upgrade (10.0=>10.1, 10.1=>10.2 and such) is supposed to happen upon dist-upgrade, I would prefer it not to, but it does now. |
| Comments |
| Comment by Sergey Vojtovich [ 2016-09-08 ] | ||||||||||||||
|
otto, will you be interested to take over this task? I won't be able to fix it in reasonable time. The problem here is that "invoke-rc.d mysql stop" in preinst gets unexpected error becasue mariadb.service was removed, while broken mysql.service symlink is still there. I believe postrm should have something like:
We already call dh_systemd_enable in rules, but I believe these lines aren't emitted for some reason. | ||||||||||||||
| Comment by Otto Kekäläinen [ 2016-11-02 ] | ||||||||||||||
|
Do we have a buildbot step that tests this? Does the bug actually still exist or was it already fixed in 10.2 head? | ||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2016-11-04 ] | ||||||||||||||
|
No, buildbot doesn't run step with dist-upgrade currently. I can test that manually - But I fully agree with Elena that upgrade of mariadb-server should never happen as part of dist-upgrade | ||||||||||||||
| Comment by Otto Kekäläinen [ 2016-11-04 ] | ||||||||||||||
|
The intention is, that if you have 'mariadb-server' installed, then you will always have the latest version. If you have 'mariadb-server-10.1' installed (and not the mariadb-server package) then you will not update to the latest. The semantics of apt upgrade and apt dist-upgrade do not matter here. | ||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2016-11-04 ] | ||||||||||||||
|
Thank you for clarification (Side note: so it looks we should recommend installing package with version number to avoid roll upgrades to next major version). I've tried manually upgrade recent 10.1 to recent 10.2 on Ubuntu 16.04 and no issues were observed: Preparing to unpack .../mariadb-server_10.2.2+maria-1~xenial_all.deb ... | ||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2016-11-05 ] | ||||||||||||||
|
Problem occurs on Jessie with current official latest 10.1.18 and 10.2.2 . Not sure about easy way to try dist-upgrade to latest internal build. root@d86:/home/a# cat /etc/*release So I rebooted, made sure that no mysqld process was started, but dist-upgrade still complains the same error "invoke-rc.d returned 5. There is a MySQL server running". | ||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2016-11-07 ] | ||||||||||||||
|
Problem didn't happen on jessie with upgrade to internal 10.2.3 http://hasky.askmonty.org/archive/10.2/build-11855/kvm-deb-jessie-amd64/debs/binary/ (Reading database ... 151662 files and directories currently installed.) | ||||||||||||||
| Comment by Otto Kekäläinen [ 2016-11-08 ] | ||||||||||||||
|
anikitin If you've confirmed this is not an issue anymore with latest 10.2 dev tree, then please go ahead and close this issue so we can focus on the ones that are really still unsolved. Thanks! PS. Why don't we have in buildbot a test that updates from 10.1 to 10.2 so that this would be automatically tested? | ||||||||||||||
| Comment by Otto Kekäläinen [ 2016-11-25 ] | ||||||||||||||
|
This was fixed in https://github.com/MariaDB/server/commit/89236a8ad93bbfa39b935afc8eabdaab5a1e2474 |