]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
3 years agofix #3245: only use default schedule for new jobs
Dominik Csapak [Tue, 12 Jan 2021 09:21:17 +0000 (10:21 +0100)]
fix #3245: only use default schedule for new jobs

an empty schedule means 'none', so do not fill it with the default
in case we edit an existing job (like we do already for sync jobs)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: automatically reload tapes inside autoloader
Dietmar Maurer [Tue, 12 Jan 2021 08:49:05 +0000 (09:49 +0100)]
tape: automatically reload tapes inside autoloader

We always automatically unload tapes to free library slots,
so it should not happen that an ejected tape resides inside the drive.

This is just a safe guard to handle the situation in case it happens ...

You can manually produce the situation by ejecting a tape without unloading:

 mt -f /dev/nst0 eject

Note: Our "proxmox-tape eject" does automatic unload

3 years agotape: make eject/export more reliable, improve logging
Dietmar Maurer [Tue, 12 Jan 2021 08:16:16 +0000 (09:16 +0100)]
tape: make eject/export more reliable, improve logging

3 years agotape: improve backup logs
Dietmar Maurer [Mon, 11 Jan 2021 12:22:31 +0000 (13:22 +0100)]
tape: improve backup logs

3 years agotape: fix tape alert flag values
Dietmar Maurer [Mon, 11 Jan 2021 06:41:50 +0000 (07:41 +0100)]
tape: fix tape alert flag values

3 years agod/control bump
Wolfgang Bumiller [Mon, 11 Jan 2021 11:09:19 +0000 (12:09 +0100)]
d/control bump

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoapi: return "invalid" as CSRF token for partial tickets
Wolfgang Bumiller [Fri, 8 Jan 2021 11:57:14 +0000 (12:57 +0100)]
api: return "invalid" as CSRF token for partial tickets

So that old clients don't `unwrap` a `None` value.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agogui: masks for: adding recovery and removals
Wolfgang Bumiller [Fri, 8 Jan 2021 11:00:00 +0000 (12:00 +0100)]
gui: masks for: adding recovery and removals

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agogui: add load mask during webauthn api calls
Wolfgang Bumiller [Fri, 8 Jan 2021 10:54:12 +0000 (11:54 +0100)]
gui: add load mask during webauthn api calls

so that if we run into the 3s delay due to the wrong
password the window is properly masked

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: use UNAUTHORIZED http status in password check
Wolfgang Bumiller [Fri, 8 Jan 2021 09:30:11 +0000 (10:30 +0100)]
tfa: use UNAUTHORIZED http status in password check

to trigger our 3s delay in the rest handler

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: fixup for challenge file split
Wolfgang Bumiller [Mon, 21 Dec 2020 13:27:13 +0000 (14:27 +0100)]
tfa: fixup for challenge file split

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: remove tfa user when a user is deleted
Wolfgang Bumiller [Fri, 11 Dec 2020 13:34:47 +0000 (14:34 +0100)]
tfa: remove tfa user when a user is deleted

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: improve user existence check
Wolfgang Bumiller [Fri, 18 Dec 2020 13:12:03 +0000 (14:12 +0100)]
tfa: improve user existence check

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: allow deletion of entries of non-existent users
Wolfgang Bumiller [Fri, 18 Dec 2020 13:09:47 +0000 (14:09 +0100)]
tfa: allow deletion of entries of non-existent users

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotypo fixups
Wolfgang Bumiller [Fri, 18 Dec 2020 13:01:18 +0000 (14:01 +0100)]
typo fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa api: return types and 'pub' structs/methods
Wolfgang Bumiller [Fri, 18 Dec 2020 12:59:35 +0000 (13:59 +0100)]
tfa api: return types and 'pub' structs/methods

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: entry access/iteration cleanup
Wolfgang Bumiller [Mon, 14 Dec 2020 15:35:41 +0000 (16:35 +0100)]
tfa: entry access/iteration cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: r#type parameter name
Wolfgang Bumiller [Mon, 14 Dec 2020 15:32:42 +0000 (16:32 +0100)]
tfa: r#type parameter name

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa: _entry api method name suffix consistency
Wolfgang Bumiller [Mon, 14 Dec 2020 13:27:26 +0000 (14:27 +0100)]
tfa: _entry api method name suffix consistency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa gui: fix adding recovery keys as user
Wolfgang Bumiller [Thu, 10 Dec 2020 12:43:09 +0000 (13:43 +0100)]
tfa gui: fix adding recovery keys as user

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotfa view: html-escape description text
Wolfgang Bumiller [Wed, 2 Dec 2020 10:17:20 +0000 (11:17 +0100)]
tfa view: html-escape description text

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agogui: tfa support
Wolfgang Bumiller [Mon, 2 Nov 2020 13:36:10 +0000 (14:36 +0100)]
gui: tfa support

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoproxy: expose qrcodejs
Wolfgang Bumiller [Thu, 19 Nov 2020 10:10:02 +0000 (11:10 +0100)]
proxy: expose qrcodejs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodepend on libjs-qrcodejs
Wolfgang Bumiller [Thu, 19 Nov 2020 10:07:24 +0000 (11:07 +0100)]
depend on libjs-qrcodejs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoapi: tfa management and login
Wolfgang Bumiller [Mon, 16 Nov 2020 13:37:22 +0000 (14:37 +0100)]
api: tfa management and login

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoconfig: add tfa configuration
Wolfgang Bumiller [Mon, 16 Nov 2020 13:36:14 +0000 (14:36 +0100)]
config: add tfa configuration

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobuildcfg: add rundir helper macro
Wolfgang Bumiller [Mon, 14 Dec 2020 13:11:32 +0000 (14:11 +0100)]
buildcfg: add rundir helper macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotools: add create_run_dir helper
Wolfgang Bumiller [Mon, 14 Dec 2020 13:11:23 +0000 (14:11 +0100)]
tools: add create_run_dir helper

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd tools::serde_filter submodule
Wolfgang Bumiller [Mon, 2 Nov 2020 10:52:03 +0000 (11:52 +0100)]
add tools::serde_filter submodule

can be used to perform filtering at parse time

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotape: improve retention period docu
Dietmar Maurer [Mon, 11 Jan 2021 06:11:17 +0000 (07:11 +0100)]
tape: improve retention period docu

3 years agotape: remove unused eject_on_unload method
Dietmar Maurer [Sun, 10 Jan 2021 15:20:18 +0000 (16:20 +0100)]
tape: remove unused eject_on_unload method

3 years agotape: more MediaChange cleanups
Dietmar Maurer [Sun, 10 Jan 2021 14:32:52 +0000 (15:32 +0100)]
tape: more MediaChange cleanups

Try to provide generic implementation for complex operations:

- unload_to_free_slot
- load_media
- export media
- clean drive
- online_media_changer_ids

3 years agotape: improve export media to directly export from drive, add CLI
Dietmar Maurer [Sun, 10 Jan 2021 12:44:44 +0000 (13:44 +0100)]
tape: improve export media to directly export from drive, add CLI

3 years agotape: cleanup: s/transfer/transfer_media/, avoid compiler warnings
Dietmar Maurer [Sun, 10 Jan 2021 11:18:30 +0000 (12:18 +0100)]
tape: cleanup: s/transfer/transfer_media/, avoid compiler warnings

3 years agotape: backup - implement export-media-set option
Dietmar Maurer [Sun, 10 Jan 2021 10:59:55 +0000 (11:59 +0100)]
tape: backup - implement export-media-set option

3 years agotape: MediaChange - add transfer, implement export
Dietmar Maurer [Sun, 10 Jan 2021 10:51:09 +0000 (11:51 +0100)]
tape: MediaChange -  add transfer, implement export

3 years agotape: renamed src/tape/changer/linux_tape.rs -> src/tape/changer/mtx.rs
Dietmar Maurer [Sun, 10 Jan 2021 09:06:24 +0000 (10:06 +0100)]
tape: renamed src/tape/changer/linux_tape.rs -> src/tape/changer/mtx.rs

3 years agotape: simplify media changer implementation - new struct MtxMediaChanger
Dietmar Maurer [Sun, 10 Jan 2021 09:02:01 +0000 (10:02 +0100)]
tape: simplify media changer implementation - new struct MtxMediaChanger

3 years agotape: backup - implement --eject-media option
Dietmar Maurer [Sat, 9 Jan 2021 14:17:03 +0000 (15:17 +0100)]
tape: backup - implement --eject-media option

3 years agotape: abort backup when we detect critical tape alert flags
Dietmar Maurer [Sat, 9 Jan 2021 11:34:00 +0000 (12:34 +0100)]
tape: abort backup when we detect critical tape alert flags

3 years agotape: change default media set naming template to "%c"
Dietmar Maurer [Sat, 9 Jan 2021 09:51:51 +0000 (10:51 +0100)]
tape: change default media set naming template to "%c"

3 years agotape: show catalog status in media list
Dietmar Maurer [Sat, 9 Jan 2021 09:24:48 +0000 (10:24 +0100)]
tape: show catalog status in media list

3 years agotape: split MediaSet into extra file
Dietmar Maurer [Sat, 9 Jan 2021 07:54:58 +0000 (08:54 +0100)]
tape: split MediaSet into extra file

3 years agotape: docu - improve Administration section
Dietmar Maurer [Fri, 8 Jan 2021 18:17:31 +0000 (19:17 +0100)]
tape: docu - improve Administration section

3 years agotape: minor docu update in retention policy
Dietmar Maurer [Fri, 8 Jan 2021 18:01:38 +0000 (19:01 +0100)]
tape: minor docu update in retention policy

3 years agotape: add retention policy docu
Dietmar Maurer [Fri, 8 Jan 2021 16:34:58 +0000 (17:34 +0100)]
tape: add retention policy docu

3 years agotape: improve media set docu
Dietmar Maurer [Fri, 8 Jan 2021 15:53:46 +0000 (16:53 +0100)]
tape: improve media set docu

3 years agotape: implement drive clean
Dietmar Maurer [Fri, 8 Jan 2021 10:32:56 +0000 (11:32 +0100)]
tape: implement drive clean

3 years agotape: correctly skip cleaning tapes (not regular tapes)
Dietmar Maurer [Fri, 8 Jan 2021 08:16:42 +0000 (09:16 +0100)]
tape: correctly skip cleaning tapes (not regular tapes)

3 years agotape: add some media pool docu
Dietmar Maurer [Fri, 8 Jan 2021 07:46:25 +0000 (08:46 +0100)]
tape: add some media pool docu

3 years agotape: changer transfer - make name parameter optional
Dietmar Maurer [Thu, 7 Jan 2021 16:09:47 +0000 (17:09 +0100)]
tape: changer transfer - make name parameter optional

3 years agotape: fix paramater name - s/slot/source-slot/
Dietmar Maurer [Thu, 7 Jan 2021 14:39:25 +0000 (15:39 +0100)]
tape: fix paramater name - s/slot/source-slot/

3 years agotape: changer status command: make changer name optional
Dietmar Maurer [Thu, 7 Jan 2021 14:12:19 +0000 (15:12 +0100)]
tape: changer status command: make changer name optional

3 years agotape: improve MediaChange trait
Dietmar Maurer [Thu, 7 Jan 2021 13:26:43 +0000 (14:26 +0100)]
tape: improve MediaChange trait

We expose the whole MtxStatus, and we can load/store from/to
specified slot numbers.

3 years agotape: more docs
Dietmar Maurer [Wed, 6 Jan 2021 15:13:58 +0000 (16:13 +0100)]
tape: more docs

3 years agotape: document tape drive configuration
Dietmar Maurer [Wed, 6 Jan 2021 15:00:31 +0000 (16:00 +0100)]
tape: document tape drive configuration

3 years agotape: document new export-slots feature
Dietmar Maurer [Wed, 6 Jan 2021 13:11:35 +0000 (14:11 +0100)]
tape: document new export-slots feature

3 years agotape: mtx_status - consider new export-slots property
Dietmar Maurer [Wed, 6 Jan 2021 10:53:33 +0000 (11:53 +0100)]
tape: mtx_status - consider new export-slots property

3 years agotape: changer - add export-slot config
Dietmar Maurer [Wed, 6 Jan 2021 10:06:50 +0000 (11:06 +0100)]
tape: changer - add export-slot config

3 years agotape: improve tape changer docs
Dietmar Maurer [Wed, 6 Jan 2021 08:45:36 +0000 (09:45 +0100)]
tape: improve tape changer docs

3 years agotape: only query volume stats if we can read MAM
Dietmar Maurer [Wed, 6 Jan 2021 08:20:36 +0000 (09:20 +0100)]
tape: only query volume stats if we can read MAM

3 years agotape: add function to classify tape-alert-flags
Dietmar Maurer [Tue, 5 Jan 2021 16:23:30 +0000 (17:23 +0100)]
tape: add function to classify tape-alert-flags

3 years agoui: running tasks: Use gettext for column labels
Dominic Jäger [Tue, 5 Jan 2021 11:34:31 +0000 (12:34 +0100)]
ui: running tasks: Use gettext for column labels

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agotape: add volume_mounts and medium_passes to LinuxDriveAndMediaStatus
Dietmar Maurer [Tue, 5 Jan 2021 12:43:17 +0000 (13:43 +0100)]
tape: add volume_mounts and medium_passes to LinuxDriveAndMediaStatus

3 years agotape: implement read_volume_statistics
Dietmar Maurer [Tue, 5 Jan 2021 11:58:18 +0000 (12:58 +0100)]
tape: implement read_volume_statistics

3 years agotape: status - show thape alert flags
Dietmar Maurer [Mon, 4 Jan 2021 12:15:30 +0000 (13:15 +0100)]
tape: status - show thape alert flags

3 years agotape: use LP 12h TapeAlert Response to query tape alert flags
Dietmar Maurer [Mon, 4 Jan 2021 12:14:02 +0000 (13:14 +0100)]
tape: use LP 12h TapeAlert Response to query tape alert flags

3 years agotape: changer status - show full slots (for cartridge without barcode)
Dietmar Maurer [Mon, 4 Jan 2021 11:06:05 +0000 (12:06 +0100)]
tape: changer status - show full slots (for cartridge without barcode)

3 years agotape: further PoolWriter cleanups
Dietmar Maurer [Sun, 3 Jan 2021 11:07:54 +0000 (12:07 +0100)]
tape: further PoolWriter cleanups

3 years agotape: cleanup - rename 'info' to 'media_id'
Dietmar Maurer [Sun, 3 Jan 2021 10:38:00 +0000 (11:38 +0100)]
tape: cleanup - rename 'info' to 'media_id'

Second try.

3 years agoRevert "tape: cleanup - rename 'info' to 'media_id'"
Dietmar Maurer [Sun, 3 Jan 2021 10:14:58 +0000 (11:14 +0100)]
Revert "tape: cleanup - rename 'info' to 'media_id'"

This reverts commit f046313c0ea483ab3724b25c059c5af2ecc194a5.

media_id is already use as parameter, so this commit is totally buggy.

3 years agotape: cleanup - rename 'info' to 'media_id'
Dietmar Maurer [Sun, 3 Jan 2021 09:37:42 +0000 (10:37 +0100)]
tape: cleanup - rename 'info' to 'media_id'

3 years agotape: sg-tape-cmd tape-alert-flags
Dietmar Maurer [Sun, 3 Jan 2021 09:09:43 +0000 (10:09 +0100)]
tape: sg-tape-cmd tape-alert-flags

3 years agotape: commit missing file
Dietmar Maurer [Sat, 2 Jan 2021 12:38:57 +0000 (13:38 +0100)]
tape: commit missing file

3 years agotape: decode TapeAlertFlags in cartridge-memory command
Dietmar Maurer [Sat, 2 Jan 2021 09:55:30 +0000 (10:55 +0100)]
tape: decode TapeAlertFlags in cartridge-memory command

3 years agotape: merge MediaStateDatabase into Inventory
Dietmar Maurer [Fri, 1 Jan 2021 15:15:13 +0000 (16:15 +0100)]
tape: merge MediaStateDatabase into Inventory

3 years agotape: implement MediaPool flag to consider offline media
Dietmar Maurer [Fri, 1 Jan 2021 09:03:59 +0000 (10:03 +0100)]
tape: implement MediaPool flag to consider offline media

For standalone tape drives.

3 years agogui: update tape job descriptions
Dietmar Maurer [Thu, 31 Dec 2020 09:37:09 +0000 (10:37 +0100)]
gui: update tape job descriptions

3 years agotape: add basic restore api/command
Dietmar Maurer [Thu, 31 Dec 2020 09:26:48 +0000 (10:26 +0100)]
tape: add basic restore api/command

3 years agotape: new inventory helper - lookup_media_set_pool
Dietmar Maurer [Thu, 31 Dec 2020 09:03:17 +0000 (10:03 +0100)]
tape: new inventory helper - lookup_media_set_pool

3 years agoupdate TODO
Dietmar Maurer [Thu, 31 Dec 2020 07:38:22 +0000 (08:38 +0100)]
update TODO

3 years agoapi: allow tokens to list users
Fabian Grünbichler [Wed, 30 Dec 2020 11:21:14 +0000 (12:21 +0100)]
api: allow tokens to list users

their owner, or all if they have the appropriate privileges.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoapi: improve error messages for restricted endpoints
Fabian Grünbichler [Wed, 30 Dec 2020 11:21:13 +0000 (12:21 +0100)]
api: improve error messages for restricted endpoints

the old variant attempted to parse a tokenid as userid and returned the
cryptic parsing error to the client, which is rather confusing.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agotape: media_change - log all errors
Dietmar Maurer [Wed, 30 Dec 2020 18:17:18 +0000 (19:17 +0100)]
tape: media_change - log all errors

3 years agotape: only log to stdout in CLI environment
Dietmar Maurer [Wed, 30 Dec 2020 18:01:39 +0000 (19:01 +0100)]
tape: only log to stdout in CLI environment

3 years agotape: improve inline docu
Dietmar Maurer [Wed, 30 Dec 2020 16:28:33 +0000 (17:28 +0100)]
tape: improve inline docu

3 years agotape: cleanup/simplify media_change code
Dietmar Maurer [Wed, 30 Dec 2020 16:16:57 +0000 (17:16 +0100)]
tape: cleanup/simplify media_change code

3 years agotape: improve media request/load
Dietmar Maurer [Wed, 30 Dec 2020 11:58:06 +0000 (12:58 +0100)]
tape: improve media request/load

3 years agoverify-api: fix allOf duplicates check
Fabian Grünbichler [Wed, 30 Dec 2020 11:21:33 +0000 (12:21 +0100)]
verify-api: fix allOf duplicates check

it triggered with a wrongly-formatted message on schemas that did NOT
contain any duplicates..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agotape: set minimal media label length to 2
Dietmar Maurer [Wed, 30 Dec 2020 09:15:02 +0000 (10:15 +0100)]
tape: set minimal media label length to 2

3 years agotape: add restore code, implement catalog api/command
Dietmar Maurer [Wed, 30 Dec 2020 08:48:18 +0000 (09:48 +0100)]
tape: add restore code, implement catalog api/command

3 years agotape: cleanup - remove debug messages
Dietmar Maurer [Wed, 30 Dec 2020 07:41:30 +0000 (08:41 +0100)]
tape: cleanup - remove debug messages

3 years agotape: correctly sort media api entries
Dietmar Maurer [Tue, 29 Dec 2020 11:09:51 +0000 (12:09 +0100)]
tape: correctly sort media api entries

3 years agocleanup: remove debug output
Dietmar Maurer [Tue, 29 Dec 2020 10:59:57 +0000 (11:59 +0100)]
cleanup: remove debug output

3 years agotape: implement media content list api
Dietmar Maurer [Tue, 29 Dec 2020 10:58:26 +0000 (11:58 +0100)]
tape: implement media content list api

3 years agotape: create the MediaCatalog when we label a tape
Dietmar Maurer [Tue, 29 Dec 2020 09:55:20 +0000 (10:55 +0100)]
tape: create the MediaCatalog when we label a tape

3 years agocleanup: disable debug message when we detect a stopped worker task
Dietmar Maurer [Tue, 29 Dec 2020 09:53:16 +0000 (10:53 +0100)]
cleanup: disable debug message when we detect a stopped worker task

3 years agotape: cleanup LinuxDriveStatus - make density optional
Dietmar Maurer [Tue, 29 Dec 2020 08:10:30 +0000 (09:10 +0100)]
tape: cleanup LinuxDriveStatus - make density optional

3 years agotape: factor out get_drive_and_media_status
Dietmar Maurer [Tue, 29 Dec 2020 07:39:06 +0000 (08:39 +0100)]
tape: factor out get_drive_and_media_status

3 years agotape: correctly parse mtx import/export slots
Dietmar Maurer [Mon, 28 Dec 2020 12:32:56 +0000 (13:32 +0100)]
tape: correctly parse mtx import/export slots