public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [RFC proxmox-backup 0/8] implement sanity check jobs
Date: Wed, 13 Dec 2023 16:38:11 +0100	[thread overview]
Message-ID: <20231213153819.391392-1-c.ebner@proxmox.com> (raw)

This series of patches implements the logic to run regular sanity
check job, with the intention to check various states of e.g.
datastores, verification states of backups, possibly missing jobs
for datastores, uncovered namespace, load metrics exceeding some
threshold values, ecc. and allow to send a user notification on
success or error state, in an automated fashion.

Currently, only a datastore usage check is implemented as prove of
concept.

The intenition of this patch series is to get some feedback on the
implementation approach and find possible shortcommings in design
decisions.

Christian Ebner (8):
  api-types: jobs: add sanity checks job types
  config: implement sanity check job configuration
  api: config: sanity check jobs api endpoints
  server: add sanity check job email notifications
  server: implement sanity check job
  api: admin: add sanity check job api endpoints
  manager: add sanity check jobs management cli commands
  proxy: add sanity check task to scheduler

 pbs-api-types/src/jobs.rs                     | 106 +++++++
 pbs-config/src/lib.rs                         |   1 +
 pbs-config/src/sanity_check.rs                |  57 ++++
 src/api2/admin/mod.rs                         |   2 +
 src/api2/admin/sanity_check.rs                | 111 +++++++
 src/api2/config/mod.rs                        |   2 +
 src/api2/config/sanity_check.rs               | 296 ++++++++++++++++++
 src/bin/proxmox-backup-manager.rs             |   3 +-
 src/bin/proxmox-backup-proxy.rs               |  41 ++-
 src/bin/proxmox_backup_manager/mod.rs         |   2 +
 .../proxmox_backup_manager/sanity_check.rs    | 126 ++++++++
 src/server/email_notifications.rs             |  78 +++++
 src/server/mod.rs                             |   3 +
 src/server/sanity_check_job.rs                | 131 ++++++++
 14 files changed, 957 insertions(+), 2 deletions(-)
 create mode 100644 pbs-config/src/sanity_check.rs
 create mode 100644 src/api2/admin/sanity_check.rs
 create mode 100644 src/api2/config/sanity_check.rs
 create mode 100644 src/bin/proxmox_backup_manager/sanity_check.rs
 create mode 100644 src/server/sanity_check_job.rs

-- 
2.39.2





             reply	other threads:[~2023-12-13 15:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-13 15:38 Christian Ebner [this message]
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 1/8] api-types: jobs: add sanity checks job types Christian Ebner
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 2/8] config: implement sanity check job configuration Christian Ebner
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 3/8] api: config: sanity check jobs api endpoints Christian Ebner
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 4/8] server: add sanity check job email notifications Christian Ebner
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 5/8] server: implement sanity check job Christian Ebner
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 6/8] api: admin: add sanity check job api endpoints Christian Ebner
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 7/8] manager: add sanity check jobs management cli commands Christian Ebner
2023-12-13 15:38 ` [pbs-devel] [RFC proxmox-backup 8/8] proxy: add sanity check task to scheduler Christian Ebner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231213153819.391392-1-c.ebner@proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal