wal-e-list-backups action fails if there are no backups available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PostgreSQL Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
The wal-e-list-backups action fails if there are no backups available:
$ juju run-action --wait postgresql/0 wal-e-list-backups
unit-postgresql-0:
id: f7c08d45-
message: Unhandled exception
results:
traceback: |
Traceback (most recent call last):
File "/var/lib/
File "/var/lib/
details = wal_e.wal_
File "/var/lib/
raw = wal_e_run(
File "/var/lib/
File "/usr/lib/
File "/usr/lib/
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/
File "/usr/lib/
raise child_exception
FileNotFo
status: failed
timing:
completed: 2019-06-05 12:42:10 +0000 UTC
enqueued: 2019-06-05 12:42:08 +0000 UTC
started: 2019-06-05 12:42:09 +0000 UTC
unit: postgresql/0
I think that rather than failing it should complete and report an empty list.
An update on that: it only fails if storage backend is not configured. When it's configured, it completes and reports an empty list:
$ juju run-action --wait postgresql/0 wal-e-list-backups fabe-4d95- 8387-b428127359 87
unit-postgresql-0:
id: b14282c3-
status: completed
timing:
completed: 2019-06-06 10:55:16 +0000 UTC
enqueued: 2019-06-06 10:55:00 +0000 UTC
started: 2019-06-06 10:55:10 +0000 UTC
unit: postgresql/0