Bug 2141152 - linux-system-roles fails to upgrade
Summary: linux-system-roles fails to upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: linux-system-roles
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael DePaulo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-09 01:00 UTC by Orion Poplawski
Modified: 2022-11-09 19:43 UTC (History)
9 users (show)

Fixed In Version: linux-system-roles-1.22.0-4.fc38
Clone Of:
Environment:
Last Closed: 2022-11-09 19:43:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources linux-system-roles pull-request 89 0 None None None 2022-11-09 01:27:45 UTC

Description Orion Poplawski 2022-11-09 01:00:26 UTC
Description of problem:

Error: Transaction test error:
  file /usr/share/ansible/roles/linux-system-roles.certificate from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.cockpit from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.crypto_policies from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.firewall from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.ha_cluster from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.kdump from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.kernel_settings from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.logging from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.metrics from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.nbde_client from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.nbde_server from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.network from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.postfix from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.selinux from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.ssh from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.sshd from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.storage from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.timesync from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.tlog from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch
  file /usr/share/ansible/roles/linux-system-roles.vpn from install of linux-system-roles-1.22.0-2.fc38.noarch conflicts with file from package linux-system-roles-1.21.1-1.fc37.noarch


This is likely caused by trying to go from a symbolic link to something else.  See https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/

Comment 1 Rich Megginson 2022-11-09 01:30:16 UTC
Is https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/89 the correct solution?  If so, I'll merge, build and push this now.

Comment 2 Maxwell G 2022-11-09 01:57:22 UTC
(In reply to Rich Megginson from comment #1)
> Is https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/89 the
> correct solution?  If so, I'll merge, build and push this now.

The solution Sergei implemented is the one recommended by the Packaging Guidelines[1]. I tested this locally on a Fedora 36 machine. I installed linux-system-roles-0:1.21.1-1.fc36.noarch. Afterwards, I tried to install 1.22.0-2.fc36 from updates-testing and got the same error as Orion. Then, I built https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/89 for F36 and was able to install that successfully. I did the same in a Rawhide container. So yes, go ahead and merge it :).


[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/#_scriptlet_to_replace_a_symlink_to_a_directory_with_a_directory. Let me tes

Comment 3 Fedora Update System 2022-11-09 02:46:59 UTC
FEDORA-2022-6a3a8ccaee has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6a3a8ccaee

Comment 4 Fedora Update System 2022-11-09 02:50:15 UTC
FEDORA-2022-6a3a8ccaee has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.