Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1516 Removing the file backup when restoring outside of rollback
  3. RHELC-1548

Removing the file backup when restoring outside of rollback - Integration tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: Normal Normal
    • 2.0.0
    • None
    • None
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • Testable

      The parent issue RHELC-1516 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:
      We have RestorableFile in files.py. We are using the RestorableFile for backing up the /etc/os-release file, which we restore during registration process of the system. The file is then removed after the registration.

      The problem is, that we are now removing the backup when doing the restore even outside the rollback. This doesn't correspond to the comments in the code.

      It wasn't a problem before, when we were checking if the backed up file exists. But I've changed that to have this backup error captured, and the error can be provided to the user and not just skip this without capturing it in the final BackupController message about errors during rollback.

      But now rollback fails with message the os-release file couldn't been restored due missing the file in backup folder (previously it was just skipped as missing the backup). It's not a big deal as the file is generated again during rollback of the centos-release pkg.

      Possible solutions:

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

              Created:
              Updated:
              Resolved: