Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1361

Backing up /etc/logrotate.d/yum fails

XMLWordPrintable

    • Moderate
    • False
    • False
    • Hide

      None

      Show
      None
    • 5
    • 2024-R1
    • Testable

       

      [2024-01-18T12:48:26+0000] TASK - [Prepare: Backup package files] ************************************
      Backing up /etc/sysconfig/authconfig.
      Backing up /etc/logrotate.d/yum.
      CRITICAL - Error(21): Is a directory
      ERROR - (ERROR) BACKUP_PACKAGE_FILES::UNEXPECTED_ERROR - Unhandled exception caught
       Description: Unhandled exception was caught: Error(21): Is a directory
      Please file a bug at https://issues.redhat.com/ to have this fixed or a specific error message added.
      Traceback: Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/convert2rhel/actions/__init__.py", line 572, in run
          action.run()
        File "/usr/lib/python2.7/site-packages/convert2rhel/actions/pre_ponr_changes/backup_system.py", line 113, in run
          backup.backup_control.push(restorable_file)
        File "/usr/lib/python2.7/site-packages/convert2rhel/backup.py", line 173, in push
          restorable.enable()
        File "/usr/lib/python2.7/site-packages/convert2rhel/backup.py", line 370, in enable
          loggerinst.critical("Error(%s): %s" % (err.errno, err.strerror))
        File "/usr/lib/python2.7/site-packages/convert2rhel/logger.py", line 170, in _critical
          sys.exit(msg)
      SystemExit: Error(21): Is a directory Diagnosis: N/A
       Remediation: N/A

       

       

      When convert2rhel is executed it takes backup of /etc/yum directory under /var/lib/convert2rhel/backup

      Now if /etc/logrorate.d/yum file is modified, convert2rhel tries taking backup of the file on same location(/var/lib/convert2rhel/backup)

       

      Reproducer:

      1. Modify /etc/logrotate.d/yum
      # echo "Test data" >> /etc/logrotate.d/yum
      1. Proceed with conversion

       

              rolivier@redhat.com Rodolfo Olivieri
              rhn-support-prjagtap Pradeep Jagtap
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: