Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-22322

Restart of MicroShift causes premature backup which will prevent creation of right backup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • None
    • 4.14.0, 4.15.0
    • MicroShift
    • None
    • No
    • 3
    • uShift Sprint 244
    • 1
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required

      Description of problem:

      If MicroShift service is restarted, it will create a backup for current boot (based on version file which contains that boot id).
      
      Because microshift does not update particular backup - it only creates new ones and deletes old ones, this behaviour will prevent a proper backup from being created when the host reboots.

      Version-Release number of selected component (if applicable):

       

      How reproducible:

      100%

      Steps to Reproduce:

      1. MicroShift svc is running
      2. Note the contents of /var/lib/microshift/version
      3. Check the contents of /var/lib/microshift-backups
      4. Restart MicroShift svc
      5. Check the contents of /var/lib/microshift-backups - new backup appeared
      6. Restart MicroShift host
      7. Check MicroShift's logs (sudo journalctl -u microshift -b 0): log is present "Backup already exists"
      

      Actual results:

      MicroShift creates backup on svc restart without host reboot which prevent proper backup from being created on system boot

      Expected results:

      MicroShift does not create backups without system reboot.
      
      For example, if boot_id obtained from /var/lib/microshift/version is the same as current boot ID, then skip the backup. It should only be created for past, previous boot

      Additional info:

       

            pmatusza@redhat.com Patryk Matuszak
            pmatusza@redhat.com Patryk Matuszak
            John George John George
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: