Bug 29417

Summary: Upgrade (Mageia 7 --> 8) fails on conflicts between DRBL-package files
Product: Mageia Reporter: Emmanuel Bas-Rhin <urbenv>
Component: RPM PackagesAssignee: Nicolas Lécureuil <mageia>
Status: NEW --- QA Contact:
Severity: major    
Priority: Normal CC: davidwhodgins, urbenv
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: drbl-2.32.10-1.mga8.noarch.src.rpm CVE:
Status comment:

Description Emmanuel Bas-Rhin 2021-08-27 14:48:29 CEST
I tried to upgrade from Mageia 7 to Mageia 8.
I used a wired Internet connection.

The problem occurs both through DNF or URPMI (I did not try the upgrading applet)

After typing the the last step command :

------
# dnf system-upgrade --releasever 8 download --allowerasing
-------

and the following confirmations, 
then the transaction check ends up with the following error message:

-------
Error: Transaction check error:

  file /usr/share/drbl/setup/files/RH/CO7.0.1406 from install of drbl-2.32.10-1.mga8.noarch conflicts with file from package drbl-2.25.10-1.mga7.noarch
  file /usr/share/drbl/setup/files/RH/CO7.1.1503 from install of drbl-2.32.10-1.mga8.noarch conflicts with file from package drbl-2.25.10-1.mga7.noarch
  file /usr/share/drbl/setup/files/RH/CO7.2.1511 from install of drbl-2.32.10-1.mga8.noarch conflicts with file from package drbl-2.25.10-1.mga7.noarch
  file /usr/share/drbl/setup/files/RH/CO7.3.1611 from install of drbl-2.32.10-1.mga8.noarch conflicts with file from package drbl-2.25.10-1.mga7.noarch
  file /usr/share/drbl/setup/files/RH/RH7.1 from install of drbl-2.32.10-1.mga8.noarch conflicts with file from package drbl-2.25.10-1.mga7.noarch
  file /usr/share/drbl/setup/files/RH/RH7.2 from install of drbl-2.32.10-1.mga8.noarch conflicts with file from package drbl-2.25.10-1.mga7.noarch

-----

Through UPRMI I got the same error message at final stage. 

I had followed all the steps (including the preliminary ones) indicated in the Mageia 8 Version Notes, as relevant for the DNF way (my first attempt) or the UPRMI one (my second attempt).

-----

Version-Release number of selected component :

drbl-2.32.10-1.mga8.noarch 
drbl-2.25.10-1.mga7.noarch

I can see that "drbl" stands for "Diskless Remote Boot in Linux".
I don't know if I need it. Should I try to uninstall it before the upgrade ?

How reproducible:

Probably specific to my machine/installation, 
hence difficult to reproduce.

Steps to Reproduce:

I really don't know.

PS : apologies for any shortcomings in this report, I am not a computer specialist and this is my first post ever on a Bugzilla...
Emmanuel Bas-Rhin 2021-08-27 14:58:42 CEST

CC: (none) => urbenv

Comment 1 Emmanuel Bas-Rhin 2021-08-27 15:10:07 CEST
sorry for mistyping "URPMI" several times
Comment 2 David Walser 2021-08-27 17:47:22 CEST
drbl is part of clonezilla, so unless you're running clonezilla from your system, you can uninstall it.

Source RPM: drbl-2.32.10-1.mga8.noarch.src.rpm (not sure this is relevant for the issue) => drbl-2.32.10-1.mga8.noarch.src.rpm

Comment 3 Lewis Smith 2021-08-27 20:49:06 CEST
Thank you Emmanuel for your report.
> PS : apologies for any shortcomings in this report, I am not a computer
> specialist and this is my first post ever on a Bugzilla...
which was well done. Félicitations.

And David for his observation: it is indeed the case that 'drbl' is only required by 'clonezilla', so that if you uninstall that from the M7 system, the upgrade should go. (You can always re-install it after the upgrade).

OTOH the error is real enough, so assigning this to the Mageiatools group. 'drbl' SRPM has no consistent cimmitter.

FWIW the M8 'drbl' includes the following:
/usr/share/drbl/setup/files/RH/CO7.0.1406
/usr/share/drbl/setup/files/RH/CO7.1.1503
/usr/share/drbl/setup/files/RH/CO7.2.1511
/usr/share/drbl/setup/files/RH/CO7.3.1611
/usr/share/drbl/setup/files/RH/CO7.6.1810
 &
/usr/share/drbl/setup/files/RH/RH7.1
/usr/share/drbl/setup/files/RH/RH7.2
/usr/share/drbl/setup/files/RH/RH7.3
/usr/share/drbl/setup/files/RH/RH7.4
/usr/share/drbl/setup/files/RH/RH7.5
/usr/share/drbl/setup/files/RH/RH7.6
 so not all these files give conflicts. I should be able to provide the same lists for M7 if it would help, and I am asked.

Assignee: bugsquad => mageiatools

Comment 4 Emmanuel Bas-Rhin 2021-08-28 09:50:08 CEST
Thanks a lot, guys !  

The upgrading ran smoothly after uninstalling DRBL/Clonezilla in M7 beforehand.
Comment 5 Dave Hodgins 2021-08-29 00:06:39 CEST
In m7 the setup files were files in directories such as
/usr/share/drbl/setup/files/RH/CO7.0.1406/systemd/system/ocsd-rescue.service

In m8 they've been replaced by symlinks to a directory such as
/usr/share/drbl/setup/files/RH/CO7.0.1406 -> CO7

https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/#_scriptlet_to_replace_a_directory
shows how it should be done with a pre trans lua script in the m8 package

Assigning to neoclust, the registered maintainer for drbl.

CC: (none) => davidwhodgins
Assignee: mageiatools => mageia