proxmox-backup/src
Dominik Csapak 9ac8b73e07 tape/drive: fix logging when requesting media
we try to load the correct media in a loop until we find the correct tape.
when encountering an error or wrong tape, we want to log that (and send
an email if one is set) that requests the correct tape.

while trying to avoid printing the same errors more than once in a row,
we had at least one case (starting with an empty tape in the drive)
which would not print/send any tape request.

reworking that code to use a custom 'TapeRequest' enum, which contains
the state + error message, and a helper that prints and sends an email
when the state changes

this reduces the change check/log to a single variable, instead of 4
(tried, last_media_uuid, last_error, failure_reason)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-06-30 10:25:48 +02:00
..
acme update proxmox-http dependency 2021-05-17 11:29:24 +02:00
api2 fix CachedUserInfo by using a shared memory version counter 2021-06-30 08:54:30 +02:00
backup backup/datastore: refactor chunk inode sorting to the datastore 2021-06-28 12:14:52 +02:00
bin cli: add CLI to manage openid realms. 2021-06-30 08:54:30 +02:00
client update to zstd 0.6 2021-06-14 13:01:43 +02:00
config fix CachedUserInfo by using a shared memory version counter 2021-06-30 08:54:30 +02:00
pxar fix #3393 (again): pxar/create: try to read xattrs/fcaps/acls by default 2021-06-28 14:04:22 +02:00
rrd clippy: more misc fixes 2021-01-26 09:54:55 +01:00
server verify-job: move snapshot filter into function 2021-06-28 11:03:44 +02:00
tape tape/drive: fix logging when requesting media 2021-06-30 10:25:48 +02:00
tools fix CachedUserInfo by using a shared memory version counter 2021-06-30 08:54:30 +02:00
api2.rs file-restore: add binary and basic commands 2021-04-08 13:57:57 +02:00
auth.rs api2/access/user: remove password for @pbs users on removal 2021-04-15 08:33:20 +02:00
auth_helpers.rs avoid chrono dependency, depend on proxmox 0.3.8 2020-09-15 07:12:57 +02:00
backup.rs backup: remove AsyncIndexReader 2021-06-08 09:42:46 +02:00
buildcfg.rs file-restore: add debug mode with serial access 2021-05-07 10:00:12 +02:00
client.rs client: add VsockClient to connect to virtio-vsock VMs 2021-02-17 08:15:43 +01:00
config.rs config: new domains.cfg to configure openid realm 2021-06-30 08:54:30 +02:00
lib.rs add acme client 2021-05-04 07:56:52 +02:00
server.rs proxmox-backup-proxy: fix leftover references on datastore removal 2021-06-04 08:22:53 +02:00
task.rs introduce TaskState trait 2020-10-12 14:11:57 +02:00
tools.rs fix CachedUserInfo by using a shared memory version counter 2021-06-30 08:54:30 +02:00