Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-83989

Leapp IPU (7--->8) fails to enable chronyd.service

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Yes
    • Moderate
    • rhel-upgrades
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Leapp in-place upgrade from RHEL 7 to 8 no longer enables chronyd.service on completion. This appears to be a regression as this did not occur with previous versions of leapp. 

      2024 - chronyd.service remains enabled after 

       

      grep -E '(ntpd|chronyd|systemd_services_state)' leapp-upgrade.log 2024-04-16 14:46:43.340 DEBUG PID: 434 leapp.workflow.FactsCollection.rpm_scanner: ntpdate|4.2.6p5|29.el7_8.2|0|Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>|x86_64|RSA/SHA256, Mon 01 Jun 2020 07:49:04 AM CDT, Key ID 199e2f91fd431d51 2024-04-16 14:47:34.229 DEBUG PID: 2685 leapp.workflow.FactsCollection.scan_systemd_source: chronyd.service disabled 2024-04-16 14:47:34.359 DEBUG PID: 2685
      <snip>
       2024-04-16 15:12:02.238 DEBUG PID: 492 leapp.workflow.Applications.migrate_ntp: External command has started: ['systemctl', 'enable', 'chronyd.service'] 2024-04-16 15:12:02.263 DEBUG PID: 492 leapp.workflow.Applications.migrate_ntp: Created symlink /etc/systemd/system/multi-user.target.wants/chronyd.service
      2024-04-16 15:12:02.343 INFO PID: 492 leapp.workflow.Applications.migrate_ntp: Configuration files migrated to chrony: ntpd 2024-04-16 15:12:06.723 DEBUG PID: 1085 leapp.workflow.Applications.scan_systemd_target: chronyd.service enabled
      <snip>
      Apr 16 20:12:02 localhost upgrade[47033]:         Migrate ntp and/or ntpdate configuration to chrony.
      

       

      2025  chronyd.service is enabled during 'workflow.Applications.migrate_ntp', then disabled during 'Finalization.set_systemd_services_state'

       

       

      grep -E '(ntpd|chronyd|systemd_services_state)' leapp-upgrade.log 2025-03-13 10:25:49.389 DEBUG PID: 27677 leapp.workflow.FactsCollection.scan_systemd_source: chronyd.service disabled
      2025-03-13 10:25:49.389 DEBUG PID: 27677 leapp.workflow.FactsCollection.scan_systemd_source: chronyd.service disabled 
       
       2025-03-13 10:43:07.305 DEBUG PID: 2453 leapp.workflow.Finalization.set_systemd_services_state: External command has started: ['systemctl', 'disable', 'chronyd.service']
      <snip>
       2025-03-13 10:42:40.242 DEBUG PID: 516 leapp.workflow.Applications.migrate_ntp: External command has started: ['systemctl', 'enable', 'chronyd.service'] 2025-03-13 10:42:40.274 DEBUG PID: 516 leapp.workflow.Applications.migrate_ntp: Created symlink /etc/systemd/system/multi-user.target.wants/chronyd.service → /usr/lib/systemd/system/chronyd.service. 2025-03-13 10:42:40.295 DEBUG PID: 516 leapp.workflow.Applications.migrate_ntp: External command has finished: ['systemctl', 'enable', 'chronyd.service'] 2025-03-13 10:42:40.398 INFO PID: 516 leapp.workflow.Applications.migrate_ntp: Configuration files migrated to chrony: ntpd
       
      

      Steps to reproduce

      1. Perform leapp upgrade on  RHEL 7 system that currently utilizes NTP
      2. Once complete, verify the chronyd service status

      Expected results

      The chronyd service should be active. This was the previous behavior and we now see that this is no longer enabled as part of the process.

      Actual results

      The chronyd service remains disabled upon completion of the IPU upgrade. 

              leapp-notifications leapp-notifications
              rhn-support-lnarvaez Louis Narvaez
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: