]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
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

3 years agodebian: correctly install sg-tape-cmd setuid binary
Dietmar Maurer [Mon, 28 Dec 2020 12:22:17 +0000 (13:22 +0100)]
debian: correctly install sg-tape-cmd setuid binary

3 years agofix typo in Makefile
Dietmar Maurer [Mon, 28 Dec 2020 10:41:10 +0000 (11:41 +0100)]
fix typo in Makefile

3 years agotape: install new sg-tape-cmd setuid binary
Dietmar Maurer [Mon, 28 Dec 2020 10:10:25 +0000 (11:10 +0100)]
tape: install new sg-tape-cmd setuid binary

3 years agotape: MediaCatalog: write magic number before content
Dietmar Maurer [Sat, 26 Dec 2020 10:05:25 +0000 (11:05 +0100)]
tape: MediaCatalog: write magic number before content

3 years agotape: add LTO1 to TapeDensity
Dietmar Maurer [Sat, 26 Dec 2020 09:48:32 +0000 (10:48 +0100)]
tape: add LTO1 to TapeDensity

3 years agotape: fix non-rewinding tape device check
Dietmar Maurer [Fri, 25 Dec 2020 14:38:29 +0000 (15:38 +0100)]
tape: fix non-rewinding tape device check

3 years agotape: minor cleanups
Dietmar Maurer [Fri, 25 Dec 2020 12:45:26 +0000 (13:45 +0100)]
tape: minor cleanups

3 years agotape: expose check_tape_is_linux_tape_device
Dietmar Maurer [Thu, 24 Dec 2020 14:51:49 +0000 (15:51 +0100)]
tape: expose check_tape_is_linux_tape_device

3 years agotape: cleanup - factor out open_linux_tape_device
Dietmar Maurer [Thu, 24 Dec 2020 10:24:45 +0000 (11:24 +0100)]
tape: cleanup - factor out open_linux_tape_device

3 years agofix build depends
Dietmar Maurer [Wed, 23 Dec 2020 10:54:44 +0000 (11:54 +0100)]
fix build depends

3 years agotape: return media usage info with status command
Dietmar Maurer [Wed, 23 Dec 2020 10:24:34 +0000 (11:24 +0100)]
tape: return media usage info with status command

3 years agotape: implement binding for libsgutils2
Dietmar Maurer [Wed, 23 Dec 2020 08:44:53 +0000 (09:44 +0100)]
tape: implement binding for libsgutils2

So that we can read cartridge memory without calling "sg_raw". In future,
we may need further low level command to control the tape..

3 years agohttp_client: add timeouts for critical connects
Stefan Reiter [Mon, 21 Dec 2020 13:56:11 +0000 (14:56 +0100)]
http_client: add timeouts for critical connects

Use timeout futures for sections that might hang in certain error
conditions. This is mostly intended to be used as a safeguard, not a
first line of defense - i.e. best-effort avoidance of total hangs.

Not every future used for the HttpClient/H2Client is changed, only those
where a quick response is to be expected. For example, the response
reading futures are left alone, so data transfer is never capped with
timeout, only the initial server connect.

It is also used for upgrading to H2 connections, as that can take a long
time on overloaded servers.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agodepend on proxmox 0.9.1
Dietmar Maurer [Tue, 22 Dec 2020 12:30:41 +0000 (13:30 +0100)]
depend on proxmox 0.9.1

3 years agotape: add drive status api
Dietmar Maurer [Tue, 22 Dec 2020 09:42:22 +0000 (10:42 +0100)]
tape: add drive status api

3 years agotape: rename 'mam' api to 'cartridge-memory'
Dietmar Maurer [Tue, 22 Dec 2020 08:27:34 +0000 (09:27 +0100)]
tape: rename 'mam' api to 'cartridge-memory'

3 years agodepend on proxmox 0.9.0
Dietmar Maurer [Tue, 22 Dec 2020 07:52:24 +0000 (08:52 +0100)]
depend on proxmox 0.9.0

3 years agotests: verify-api: check AllOf schemas
Wolfgang Bumiller [Fri, 18 Dec 2020 11:26:08 +0000 (12:26 +0100)]
tests: verify-api: check AllOf schemas

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadaptions for proxmox 0.9 and proxmox-api-macro 0.3
Wolfgang Bumiller [Fri, 18 Dec 2020 11:26:07 +0000 (12:26 +0100)]
adaptions for proxmox 0.9 and proxmox-api-macro 0.3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotape: update user docu
Dietmar Maurer [Mon, 21 Dec 2020 11:13:35 +0000 (12:13 +0100)]
tape: update user docu

3 years agotape: add command to read cartridge memory (MAM)
Dietmar Maurer [Mon, 21 Dec 2020 11:11:52 +0000 (12:11 +0100)]
tape: add command to read cartridge memory (MAM)

Thsi add an additional dependency to sg3-utils (small).

3 years agotape: update user docu - howto label tapes
Dietmar Maurer [Sun, 20 Dec 2020 09:41:40 +0000 (10:41 +0100)]
tape: update user docu - howto label tapes

3 years agotape: update user docu
Dietmar Maurer [Sun, 20 Dec 2020 08:16:09 +0000 (09:16 +0100)]
tape: update user docu

3 years agoadd LTO barcode generator App
Dietmar Maurer [Sat, 19 Dec 2020 16:39:48 +0000 (17:39 +0100)]
add LTO barcode generator App

3 years agotape: update user docu
Dietmar Maurer [Sat, 19 Dec 2020 15:56:54 +0000 (16:56 +0100)]
tape: update user docu