Upgrade to Mageia 9 using dnf-system-upgrade

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

Upgrade to Mageia 9 using dnf-system-upgrade

Postby Bequimao » Jul 12th, '23, 21:33

I tested an upgrade to Mageia 9 with dnf. The system had KDE Plasma and Gnome installed.

I had to invoke
Code: Select all
# dnf system-upgrade download --releasever=cauldron --allowerasing


After release the call would be with --releasever=9, of course. The upgrade itself started after
Code: Select all
# dnf system-upgrade reboot

the upgrade counter stalled at [865/6103] lib64plymouth5. The transaction however continued and ended successfully. This is an irritating bug, but I would not try to reproduce it, and I do not expect that it would be resolved by Mageia.

You have to reconfigure the repos manually with
Code: Select all
# dnf repo-manager --set-enabled ( or --set-disabled)

The result should look like
Code: Select all
# dnf repolist
repo id                                                                       
repo name
cauldron-x86_64                                                                 
Mageia Cauldron - x86_64
cauldron-x86_64-nonfree                                                         
Mageia Cauldron - x86_64 - Nonfree
cauldron-x86_64-tainted                                                         
Mageia Cauldron - x86_64 - Tainted

One has further to invoke
Code: Select all
# rpmdb --rebuilddb

This was already mentioned elsewhere and also valid for urpmi.

Best regards,
Bequimão

NB: I intended to send this text to the Mageia mailing list, but it didn't work for me.
Bequimao
 
Posts: 111
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby sturmvogel » Jul 12th, '23, 22:50

The procedure how to upgrade from MGA8 to MGA9 is described in the release notes...
https://wiki.mageia.org/en/Mageia_9_Rel ... _.28CLI.29

The procedure how to upgrade to cauldron is described in the wiki:
https://wiki.mageia.org/en/Cauldron#Upg ... _using_DNF
sturmvogel
 
Posts: 744
Joined: Jul 30th, '12, 00:39

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby doktor5000 » Jul 13th, '23, 17:35

Bequimao wrote:One has further to invoke
Code: Select all
# rpmdb --rebuilddb

This was already mentioned elsewhere and also valid for urpmi.

Why did you have to do that in particular?
This should be fixed according to https://bugs.mageia.org/show_bug.cgi?id=29364 and https://bugs.mageia.org/show_bug.cgi?id=31024
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby Bequimao » Jul 13th, '23, 21:17

doktor5000 wrote:Why did you have to do that in particular?
This should be fixed according to https://bugs.mageia.org/show_bug.cgi?id=29364 and https://bugs.mageia.org/show_bug.cgi?id=31024


There was a warning everytime when I invoked dnf. Something about converting database to sqlite.
It looks as if only fixed for urpmi.
Bequimao
 
Posts: 111
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby doktor5000 » Jul 13th, '23, 23:25

Well, then you should probably report that. I don't see any open bugreport regarding sqlite and dnf, and nothing in errata.
Also check https://wiki.mageia.org/en/Mageia_9_Rel ... _to_SQLite
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby morgano » Jul 17th, '23, 12:13

Thank you for testing :)
To make your work really help,

1) If valid, it is important to get the database hickup fixed and/or noted in errata/release notes.
I see from https://bugs.mageia.org/show_bug.cgi?id=31024#c9 that for online upgrade urpmi handle it. So in your case DNF should, but maybe it need that upgrade script. Can you test again on your setup, but following the instructions in release notes (using the script) and report back here. If still problems, please make a bug report get it more investigated.


2) did you note if https://bugs.mageia.org/show_bug.cgi?id=28272 is still valid?
if not, we can remove that note from https://wiki.mageia.org/en/Mageia_9_Err ... _using_DNF
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1494
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby Bequimao » Jul 17th, '23, 17:34

1) I saw the message as output of # dnf config-manager or # dnf repolist, as I recall. It was marked explicitly as a warning. When I started the next upgrade, I had already converted the rpm database. I think a note in errata would be sufficient.

2) libsolv is indeed the great advantage of dnf. When the situation arises, dnf gives a detailed description, finds a valid subset of packages to upgrade, and gives a hint to a solution.
As an example see https://bugs.mageia.org/show_bug.cgi?id=32057.

I also tested # dnf system-upgrade form Mga 7 to Cauldron before the release of Mga 8. I don't recall to have two kernel flavours installed. I also checked my comments and reports in bugzilla. I will do another test in a VM, which takes less time, but not this week. After the release I always start with a fresh install.

Greetings, Bequimão

NB: I never upgrade with the installer, as I exclusively use dnf.
Bequimao
 
Posts: 111
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby morgano » Jul 18th, '23, 14:28

morgano wrote:(using the script)
I used wrong word, I meant plugin;
# dnf install 'dnf-command(system-upgrade)'
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1494
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby morgano » Jul 19th, '23, 11:36

https://bugs.mageia.org/show_bug.cgi?id=29364#c8
For DNF users, we already recommend the "system-upgrade" method, which transparently handles this correctly.
Described here.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1494
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby Bequimao » Jul 28th, '23, 20:42

I just finished another test in a VM. The whole transaction was successful, and the package upgrade counter did not stall.

Code: Select all
# dnf install 'dnf-command(system-upgrade)'
Last metadata expiration check: 0:00:34 ago on Wed 26 Jul 2023 11:15:22 AM -03.
Package python3-dnf-plugin-system-upgrade-4.0.13-1.mga8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

# dnf system-upgrade download --releasever=cauldron --allowerasing


The previous installation of mageia-repos-cauldron is not necessary, as the version no. is not hardcoded in /etc/yum.d/mageia*.repo. You'll find $releasever there. I won't mix the command and options, though it looks, as if the exact order is irrelevant.

@ Sturmvogel: I started my tests based on the dnf documentation from Fedora. The wiki article didn't exist then.

https://bugs.mageia.org/show_bug.cgi?id=28272 does not occur, as there is no crda. You may close the bug as fixed (old). I forgot that this bug report was based on my tests. Seems that I am getting old ...

The database migration is missing, see
Code: Select all
[root@mga8-kde-vm ~]# dnf repolist
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
repo id                               repo name
cauldron-updates-x86_64               Mageia Cauldron - x86_64 - Updates
cauldron-x86_64                       Mageia Cauldron - x86_64
mageia-x86_64                         Mageia 9 - x86_64
mageia-x86_64-nonfree                 Mageia 9 - x86_64 - Nonfree
mageia-x86_64-tainted                 Mageia 9 - x86_64 - Tainted
updates-x86_64                        Mageia 9 - x86_64 - Updates
updates-x86_64-nonfree                Mageia 9 - x86_64 - Nonfree - Updates
updates-x86_64-tainted                Mageia 9 - x86_64 - Tainted - Updates


One has to align the repo configuration
Code: Select all
[root@mga8-kde-vm ~]# rpmdb --rebuilddb
warning: Converting database from bdb_ro to sqlite backend
[root@mga8-kde-vm ~]#
[root@mga8-kde-vm ~]# dnf config-manager --set-disabled cauldron-updates-x86_64
[root@mga8-kde-vm ~]# dnf config-manager --set-disabled mageia-x86_64 mageia-x86_64-nonfree mageia-x86_64-tainted
[root@mga8-kde-vm ~]# dnf config-manager --set-disabled updates-x86_64 updates-x86_64-nonfree updates-x86_64-tainted
[root@mga8-kde-vm ~]# dnf config-manager --set-enabled cauldron-x86_64-nonfree cauldron-x86_64-tainted
[root@mga8-kde-vm ~]#
[root@mga8-kde-vm ~]# dnf repolist
repo id                                                           repo name
cauldron-x86_64                                                   Mageia Cauldron - x86_64
cauldron-x86_64-nonfree                                           Mageia Cauldron - x86_64 - Nonfree
cauldron-x86_64-tainted                                           Mageia Cauldron - x86_64 - Tainted


Best regards,
Bequimão
Bequimao
 
Posts: 111
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby morgano » Jul 28th, '23, 21:30

Bequimao wrote:https://bugs.mageia.org/show_bug.cgi?id=28272 does not occur, as there is no crda. You may close the bug as fixed (old)


Thank you :)

Closed bug as old and removed it from 9 errata.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1494
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Upgrade to Mageia 9 using dnf-system-upgrade

Postby Bequimao » Jul 31st, '23, 16:29

Well, I failed to search for crda. It is a kernel module. Anyway, the issue is solved.
Bequimao
 
Posts: 111
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest

cron