-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
bugSomething isn't working as expectedSomething isn't working as expected
Description
Problem
PR #1243 introduces _extract_error_message for surfacing pgBackRest error details to the user, but only uses it in _initialise_stanza and check_stanza. Several other error paths still use the generic {e!s} (ExecError string representation) or have no error handling at all, giving users unhelpful messages.
The VM charm (canonical/postgresql-operator) already uses _extract_error_message in all of these locations.
Affected branches
main— after PR [DPE-6809] fix(backups): include pgBackRest error details in S3 stanza failure messages #1243 is merged, these gaps will exist onmain16/edge— does not have_extract_error_messageat all yet (same gaps plus no error extraction anywhere)
Affected methods
_on_create_backup_action(backup failure) — usesf"Failed to backup PostgreSQL with error: {e!s}"instead of_extract_error_message(e.stderr)_list_backups— no error handling forExecErrorfrompgbackrest info; exception propagates raw_generate_backup_list_output— same as above, no error handling; caller in_on_list_backups_actionalso uses{e!s}_is_primary_pgbackrest_service_running(server-ping failure) — usesf"...with error {e!s}"instead of_extract_error_message(e.stderr)
Expected behavior
All pgBackRest error paths should extract meaningful ERROR/WARN lines from stderr and surface them to the user, either in juju status, action results, or log messages.
References
- PR [DPE-6809] fix(backups): include pgBackRest error details in S3 stanza failure messages #1243 (introduces
_extract_error_messageon branchinclude-pgbackrest-error-details) - VM charm equivalent:
canonical/postgresql-operatormainand16/edgebranches use_extract_error_messagein all 8+ call sites
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't working as expectedSomething isn't working as expected