Issues

Select view

Select search mode

 

Prevent backup/restore if connect to storage isn't successful

Won't Do

Description

When user adds (or changes) new storage for backups, pbm agent always performs sync with storage. At this stage it's already possible to determine whether connect to storage is successful or not, however user is able to start backup/restore despite of sync status. 

STR:

1) add storage with incorrect creds, endpointUrl, bucket

2) sync fails

Actual result: User starts backup - successful status is returned, so only when user decides to check logs, he'll find that connect to storage isn't OK.

Expected result: User is unable to start backup/restore, error message is returned asking to re-check storage connection.

Environment

None

Smart Checklist

Details

Assignee

Reporter

Affects versions

Priority

Smart Checklist

Created May 14, 2020 at 9:45 AM
Updated March 5, 2024 at 7:14 PM
Resolved January 18, 2021 at 8:04 AM

Activity

Akira KuroganeJanuary 18, 2021 at 8:04 AM

At the time this ticket was created there was no way to check storage configuration was 100% OK without trying a "pbm backup" command. So the successful return exit code of the "pbm backup" command was misleading. It is easy to see that a user may not check the log messages in that situation; the failure would stay unknown to them.

With the addition of "pbm status" v1.4 it is now possible to check the connection status thoroughly, and the success/failure is visible in the CLI output. So the more obvious way that is available now means fixing this bug is no longer crucial.

I'll close the ticket. (If need be it can be opened again.)