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

Upgrading from RHEL 8 to 9 logrotate.timer is not enabled by default.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhel-8.9.0
    • leapp-repository
    • None
    • Important
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • noarch
    • None

       What were you trying to do that didn't work?

      Upgrading from RHEL 8 to 9 logrotate.timer is not enabled by default.

      In previous versions of RHEL 9 logrotate was controlled by cron.daily, and now it is controlled by systemd (logrotate.timer).

      When upgrading from RHEL 8 to 9, the service is not enabled and the logs are not rotated.

      There is nothing in the documentation that states that the service has to be enabled post-update.

      If this is expected behavior, the documentation must be updated informing the steps to be carried out in the post-update.

       

      1. systemctl enable --now logrotate.timer

        Please provide the package NVR for which bug is seen:

      leapp-0.16.0-2.el8.noarch.rpm

      Steps and How reproducible:

      1) Install RHEL 8;

      2) # dnf install leapp-upgrade -y

      3) # leapp preupgrade

      4) # leapp upgrade --reboot

      5) Wait for RHEL 9 to restart and type the command below.

      1. systemctl status logrotate.timer

      ○ logrotate.timer - Daily rotation of log files
           Loaded: loaded (/usr/lib/systemd/system/logrotate.timer; disabled; preset: enabled)
           Active: inactive (dead)
          Trigger: n/a
         Triggers: ● logrotate.service
             Docs: man:logrotate(8)
                   man:logrotate.conf(5)

      Expected results

      The expected result is that it enables logrotate.timer as is the RHEL 9 installation default.

      1. systemctl enable --now logrotate.timer

        Actual results

      RHEL 9 has the logrotate feature disabled, causing problems with logs in our customers' environments.

              no-user-match-found no-user-match-found
              rhn-support-gcovolo Guilherme Covolo
              no-user-match-found no-user-match-found
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: