-
Bug
-
Resolution: Done-Errata
-
Critical
-
None
-
4.14.0, 4.15.0
-
None
-
No
-
3
-
uShift Sprint 244
-
1
-
False
-
-
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:
- blocks
-
OCPBUGS-23076 Restart of MicroShift causes premature backup which will prevent creation of right backup
- Closed
- is cloned by
-
OCPBUGS-23076 Restart of MicroShift causes premature backup which will prevent creation of right backup
- Closed
- links to
-
RHEA-2023:7200 Red Hat build of MicroShift 4.15.z bug fix and enhancement update