Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1361 Backing up /etc/logrotate.d/yum fails
  3. RHELC-1374

Backing up /etc/logrotate.d/yum fails - Integration tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done-Errata
    • Icon: Major Major
    • 1.7.0
    • None
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • 2024-R1
    • Testable

      The parent issue RHELC-1361 has the label that triggered autocreation of this subtask to track the relative story point estimation for the integration test part of the issue.

      The parent issue description at the time of creation of this issue was:
       

      [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

       

            Unassigned Unassigned
            rhel-process-autobot RHEL Jira bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: