Fix a loop which prevents the crash deamon to process further crashes
when a crash path exists with a meta file, but a missing done file.
Print a log warning.
Fixes: https://tracker.ceph.com/issues/73846
Signed-off-by: Raimund Sacherer <rsachere@redhat.com>
# or the daemon crashed before finishing it
time.sleep(1)
if not os.path.isfile(donepath):
- return
+ log.warning('no `done` file present. Not processing crash path {}.'.format(crashpath))
+ continue
# ok, we can process this one
rc = post_crash(crashpath)
if rc == 0: