Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-34564

Notification cleanup fails by default since Sat6.16

XMLWordPrintable

    • None
    • None
    • None
    • None
    • Yes

      Description of problem:
      On default installation of Satellite, notifications cleanup (as triggered via cron) fails with error

      [2025-05-25 06:00:28] Failed to clean notification: wrong number of arguments (given 1, expected 0)
      

      Trivial reproducer: run the cronjob manually.
       

      How reproducible:
      100%
       

      Is this issue a regression from an earlier version:
      regression since 6.15 where the cleanup worked well
       

      Steps to Reproduce:

      1. /usr/sbin/foreman-rake notifications:clean

      Actual behavior:

      Starting expired notifications clean up...
      Failed to clean notification: wrong number of arguments (given 1, expected 0)
      

      Expected behavior:
      Like in 6.15:

      Starting expired notifications clean up...
      Finished, cleaned 1 notifications
      

      Business Impact / Additional info:
      Both `/usr/share/foreman/lib/tasks/notifications_cleaner.rake` and `/usr/share/foreman/app/services/ui_notifications/clean_expired.rb` are the same on 6.15 and 6.16, the missing argument must be somewhere else..?

              aruzicka@redhat.com Adam Ruzicka
              rhn-support-pmoravec Pavel Moravec
              Pavel Novotny Pavel Novotny
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: