Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1988449

Summary: Systemd enable targets symlinks not migrated to changed wantedby during leapp upgrade
Product: Red Hat Enterprise Linux 7 Reporter: lnarvaez
Component: leapp-repositoryAssignee: mmatuska
Status: CLOSED ERRATA QA Contact: Upgrades and Supportability <upgrades-and-supportability>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.9CC: jbreitwe, mkluson, mmacura, mmoran, mreznik, peter.vreman, pstodulk
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: leapp-repository-0.17.0-3.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-17 15:00:24 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 lnarvaez 2021-07-30 14:55:59 UTC
Description of problem: Systemd enable targets symlinks not migrated to changed wantedby during leapp upgrade.  Example shown for rngd tools.

Version-Release number of selected component (if applicable):

leapp-0.12.1-1.el7_9.noarch 
Package - rng-tools-6.3.1-5.el7.x86_64.rpm

How reproducible:


Steps to Reproduce:
1.  Upgrade RHEL 7 system with rngd tools installed to RHEL 8 with leapp
2.  Verify targets have been changed to expected RHEL 8 defaults. 

Actual results:

================
7.9 test system:
================

[root@R7 ~]# yum install rng-tools

[root@R7 ~]# ls -l /etc/systemd/system/multi-user.target.wants/rngd.service
lrwxrwxrwx. 1 root root 36 Jul 23 12:11 /etc/systemd/system/multi-user.target.wants/rngd.service -> /usr/lib/systemd/system/rngd.service

===================
RHEL 8 test system:
===================
[root@R8 ~]# rpm -qa rng*
rng-tools-6.8-3.el8.x86_64

[root@R8 ~]# ls -l /etc/systemd/system/multi-user.target.wants/rngd.service
ls: cannot access '/etc/systemd/system/multi-user.target.wants/rngd.service': No such file or directory

               
[root@R8 ~]# ls -l /etc/systemd/system/sysinit.target.wants/rngd.service 
lrwxrwxrwx. 1 root root 36 Feb 27  2020 /etc/systemd/system/sysinit.target.wants/rngd.service -> /usr/lib/systemd/system/rngd.service

================================
After in place upgrade to RHEL 8 
================================

[root@R7 ~]# ls -l /etc/systemd/system/sysinit.target.wants/rngd.service
ls: cannot access '/etc/systemd/system/sysinit.target.wants/rngd.service': No such file or directory

[root@R7 ~]# ls -l /etc/systemd/system/multi-user.target.wants/rngd.service
lrwxrwxrwx. 1 root root 36 Jul 26 16:11 /etc/systemd/system/multi-user.target.wants/rngd.service -> /usr/lib/systemd/system/rngd.service


Expected results:

After upgrade to RHEL 8 we would expect the changes to be made to migrate to RHEL 8 default as shown above.

Comment 4 Petr Stodulka 2022-11-16 15:18:58 UTC
Shoule be fixed by the upstream PR:
  - https://github.com/oamg/leapp-repository/pull/972

Comment 9 errata-xmlrpc 2023-05-17 15:00:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (leapp and leapp-repository bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:3187