Update backup status as error if it's not started

Description

If backup storage credentials are wrong, PBM agent doesn’t allow the backup to start. but after PBM inserts the backup meta into db, we consider the backup as “running” while in the meta the backup status is “starting”. Since backups can run for hours according to db size, users may not suspect there is something wrong until it’s too late. We should handle “starting” status in https://github.com/percona/percona-server-mongodb-operator/blob/main/pkg/controller/perconaservermongodbbackup/backup.go#L102 

After a certain duration, we should update the backup status as "error" if it's not "running". PBM cli uses something like 33 seconds.

Environment

None

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Needs Review

Yes

Needs QA

Yes

Needs Doc

Yes

Fix versions

Priority

Smart Checklist

Created May 6, 2021 at 2:25 PM
Updated March 5, 2024 at 4:53 PM
Resolved December 2, 2021 at 10:32 AM