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

Log file not being archived properly before a conversion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.26
    • 0.25, 8.6
    • convert2rhel
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      • Create a vagrant box with any system/version you want
      • Run the conversion 2 times (Can run until the first user interaction and answer 'no'
      • Look at the log files in /var/log/convert2rhel and you can see that we have a folder called archive and a convert2rhel.log file. The convert2rhel.log file is being appended with the log from previous run, as well as the archive folder has the "previous" run too.
      Show
      Create a vagrant box with any system/version you want Run the conversion 2 times (Can run until the first user interaction and answer 'no' Look at the log files in /var/log/convert2rhel and you can see that we have a folder called archive and a convert2rhel.log file. The convert2rhel.log file is being appended with the log from previous run, as well as the archive folder has the "previous" run too.

      In the PR#359 we introduced a way of archiving the log file if multiple runs are executed. The feature is working as expected, but, instead of moving the previous log file to the archive folder and initializing a new log file, we are moving them and appending the log to the old convert2rhel.log file.

      This behavior is wrong, since the idea of this feature is archive old logs and create new files in every single run.{}

       

      Acceptance criteria

      • The log file should be moved to the archive folder instead of being copied over.

      Ideas

            rolivier@redhat.com Rodolfo Olivieri
            rolivier@redhat.com Rodolfo Olivieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: