You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if backup script fails for whatsoever reason it should never update lastBackup
Actual Behavior
backup often fails ( due to #415 ), backup file is missing but lastBackup somehow gets updated.
This actually blocks jenkins master to come back healthy, if it gets restarted in this state. (comes online but configurations are missing.)
2020-06-18T11:52:21.106Z WARN controller-jenkins jenkins/jenkins_controller.go:152 Reconcile loop failed 10 times with the same error, giving up: pod exec error o │
│ ' stderr 'tar (child): /backup/13043.tar.gz: Cannot open: No such file or directory │
│ tar (child): Error is not recoverable: exiting now │
│ tar: Child returned status 2 │
│ tar: Error is not recoverable: exiting now │
│ ': command terminated with exit code 2 {"cr": "xxxx"}
current files
user@jenkins-klar:/backup$ ls -lah
total 1.2G
drwxrwsr-x 3 root user 4.0K Jun 18 10:47 .
drwxr-xr-x 1 root root 42 Jun 18 11:19 ..
-rw-rw-r-- 1 user user 404M Jun 18 08:49 13040.tar.gz
-rw-rw-r-- 1 user user 406M Jun 18 09:38 13041.tar.gz
-rw-rw-r-- 1 user user 412M Jun 18 10:47 13042.tar.gz
drwxrws--- 2 root user 16K May 4 19:16 lost+found
user@jenkins-klar:/backup$
Steps to Reproduce the Problem
check lastBackup
hack backup script, make sure it returns nonzero
check lastBackup counter again, together with the /backup content
getLatestAction:
exec:
command:
- /home/user/bin/get-latest.sh # this command is invoked on "backup" container to get last backup number before pod deletion. If you don't omit it in CR, you can lose data
This snippet is from the documentation and the comment seems to discourage using getLatestAction.
Expected Behavior
if backup script fails for whatsoever reason it should never update lastBackup
Actual Behavior
backup often fails ( due to #415 ), backup file is missing but lastBackup somehow gets updated.
This actually blocks jenkins master to come back healthy, if it gets restarted in this state. (comes online but configurations are missing.)
while operator logs says:
current files
Steps to Reproduce the Problem
Additional Info
Workaround: manually copy the last backup into the filename it is missing, then wait for restore process to complete.
The text was updated successfully, but these errors were encountered: