[pbs-devel] [PATCH v4 proxmox-backup 00/10] add job based verify scheduling

Hannes Laimer h.laimer at proxmox.com
Tue Oct 20 11:10:02 CEST 2020


Replaces the first implementation of scheduled verification with a new
job-based version with additional options that may be specified through
the web ui.

Options available for verification jobs:
 * schedule when to run the job
 * set datastore on which the job should run
 * set a number of days after which a verification becomes "outdated"
    empty => verifications are valid forever
 * specify if already successfuly verified snapshots should be verified
    again even if they're not outdated(failed ones will always be done)

v4:
 * squashed patches
 * rebased
 * no build-breaking patch
 * correct old config files in postinst

v3:
 * restructure do_verification_job function
 * renamed 'verify' in config to 'verification'
 * add cbind to 'Days valid' field in frontend

v2:
 * added 'Ignire Verified' column in WebUI
 * rebased onto master
 * log number of planned verification
 * ignore_verified is not optional anymore
 * adjusted default column width for 'Days valid'
 * failed verifications won't be verified again
 * use proxmox::try_block! in worker

Hannes Laimer (10):
  rename VERIFY_SCHEDULE_SCHEMA to VERIFICATION_SCHEDULE_SCHEMA
  api2: add verification job config endpoint
  api2: add verification admin endpoint and do_verification_job function
  proxy: add scheduling for verification jobs
  set a different worker_type based on what is going to be
    verified(snapshot, group, ds)
  ui: add verification job view
  ui: add verification job edit window
  ui: add task descriptions for the different types of verification(job,
    snapshot, group, ds)
  api proxy: remove old verification scheduling
  postinst: correct invalid old datastore configs

 debian/postinst                 |   2 +
 src/api2/admin.rs               |   4 +-
 src/api2/admin/datastore.rs     |   5 +-
 src/api2/admin/verify.rs        | 107 ++++++++++++
 src/api2/config.rs              |   2 +
 src/api2/config/datastore.rs    |  24 ---
 src/api2/config/verify.rs       | 274 +++++++++++++++++++++++++++++++
 src/api2/types/mod.rs           |  12 +-
 src/backup/verify.rs            |  96 +++++++++++
 src/bin/proxmox-backup-proxy.rs | 120 ++++----------
 src/config.rs                   |   1 +
 src/config/datastore.rs         |   6 -
 src/config/verify.rs            | 189 +++++++++++++++++++++
 www/Makefile                    |   2 +
 www/NavigationTree.js           |   6 +
 www/Utils.js                    |   5 +-
 www/config/DataStoreConfig.js   |   2 +-
 www/config/VerifyView.js        | 280 ++++++++++++++++++++++++++++++++
 www/window/DataStoreEdit.js     |   9 -
 www/window/VerifyJobEdit.js     |  93 +++++++++++
 20 files changed, 1108 insertions(+), 131 deletions(-)
 create mode 100644 src/api2/admin/verify.rs
 create mode 100644 src/api2/config/verify.rs
 create mode 100644 src/config/verify.rs
 create mode 100644 www/config/VerifyView.js
 create mode 100644 www/window/VerifyJobEdit.js

-- 
2.20.1






More information about the pbs-devel mailing list