File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
test/assets/auto-recovery Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
OnFailure=microshift-auto-recovery.service
3
+ # Increase StartLimitInterval from default 10s to 25s to accomodate slower systems.
4
+ # Systemd will mark service as failed when it restarts StartLimitBurst amount
5
+ # (default is 5) within specified StartLimitInterval.
6
+ # In CI env, MicroShift restarts within ~1.3 seconds from a start, so 5 restarts
7
+ # fit in 10 seconds.
8
+ # In QE env, MicroShift needed around ~2.5 seconds to restart, so the
9
+ # StartLimitBurst (5) wasn't reached within 10 seconds. That resulted in systemd
10
+ # never marking microshift.service as failed (it kept restarting several hundred times)
11
+ # and the OnFailure= service not getting triggered.
12
+ StartLimitIntervalSec=25s
Original file line number Diff line number Diff line change 24
24
fi
25
25
26
26
echo " System is unhealthy and greenboot's 'deployment testing' procedure is not active - running auto-recovery for MicroShift"
27
+
28
+ echo " Making sure MicroShift is stopped and doesn't restart preventing from restoring the backup."
29
+ systemctl stop microshift
30
+
27
31
microshift restore --auto-recovery /var/lib/microshift-auto-recovery
28
32
systemctl reboot
You can’t perform that action at this time.
0 commit comments