Bug 2141152

Summary: linux-system-roles fails to upgrade
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: linux-system-rolesAssignee: Michael DePaulo <mikedep333>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: maxwell, mikedep333, nathans, nhosoi, opensource, pcahyna, rmeggins, spetrosi, systemroles-owner
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: linux-system-roles-1.22.0-4.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-09 19:43:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.