public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	Hannes Laimer <h.laimer@proxmox.com>
Subject: [pbs-devel] applied-series: [PATCH proxmox-backup v10 0/6] closes #3071: maintenance mode for datastore
Date: Tue, 12 Apr 2022 17:00:39 +0200	[thread overview]
Message-ID: <3e27f3ac-17ff-8f51-32e6-3dd71221cb63@proxmox.com> (raw)
In-Reply-To: <20220412052601.4709-1-h.laimer@proxmox.com>

On 12.04.22 07:25, Hannes Laimer wrote:
> Hannes Laimer (6):
>   api-types: add maintenance type
>   datastore: add check for maintenance in lookup
>   pbs-datastore: add active operations tracking
>   api: make maintenance_type updatable
>   api: add get_active_operations endpoint
>   ui: add option to change the maintenance type
> 
>  pbs-api-types/Cargo.toml             |   2 +-
>  pbs-api-types/src/datastore.rs       |  23 ++++-
>  pbs-api-types/src/lib.rs             |   3 +
>  pbs-api-types/src/maintenance.rs     |  78 +++++++++++++++++
>  pbs-datastore/Cargo.toml             |   1 +
>  pbs-datastore/src/datastore.rs       | 126 +++++++++++++++++++--------
>  pbs-datastore/src/lib.rs             |   4 +
>  pbs-datastore/src/snapshot_reader.rs |   6 +-
>  pbs-datastore/src/task_tracking.rs   | 110 +++++++++++++++++++++++
>  src/api2/admin/datastore.rs          |  81 +++++++++++------
>  src/api2/backup/mod.rs               |   4 +-
>  src/api2/config/datastore.rs         |   5 ++
>  src/api2/reader/mod.rs               |   6 +-
>  src/api2/status.rs                   |   4 +-
>  src/api2/tape/backup.rs              |   6 +-
>  src/api2/tape/restore.rs             |   6 +-
>  src/bin/proxmox-backup-api.rs        |   1 +
>  src/bin/proxmox-backup-proxy.rs      |   4 +-
>  src/server/mod.rs                    |  16 +++-
>  src/server/prune_job.rs              |   4 +-
>  src/server/pull.rs                   |   4 +-
>  src/server/verify_job.rs             |   4 +-
>  www/Makefile                         |   1 +
>  www/Utils.js                         |  23 +++++
>  www/datastore/OptionView.js          |  30 +++++++
>  www/window/MaintenanceOptions.js     |  77 ++++++++++++++++
>  26 files changed, 539 insertions(+), 90 deletions(-)
>  create mode 100644 pbs-api-types/src/maintenance.rs
>  create mode 100644 pbs-datastore/src/task_tracking.rs
>  create mode 100644 www/window/MaintenanceOptions.js
> 


applied series, thanks!

In the UI I fixed the leaking of the tasks tracking storage (needed an explicit stop on
deactivate/destroy event of the option view panel like we had for the existing rstore)
and also patched the renderer to show also the message inline.

What's still missing, or up for improvement:
* show the maintenance mode in the datastore summary (or just plainly in the
  "Datastore: <name>" heading of the panel?); as currently it's rather subtle

* Improve failure mode in offline mode, e.g., the summary page then is just plank/broken
  and the content view shows a loading error/mask that won't get removed until reload
  even if one reset the maintenance mode to none again, at least FWICT

Both mostly cosmetical, but quite important IMO for UX and to avoid user confusion.




      parent reply	other threads:[~2022-04-12 15:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-12  5:25 [pbs-devel] " Hannes Laimer
2022-04-12  5:25 ` [pbs-devel] [PATCH proxmox-backup v10 1/6] api-types: add maintenance type Hannes Laimer
2022-04-12  5:25 ` [pbs-devel] [PATCH proxmox-backup v10 2/6] datastore: add check for maintenance in lookup Hannes Laimer
2022-04-12  5:25 ` [pbs-devel] [PATCH proxmox-backup v10 3/6] pbs-datastore: add active operations tracking Hannes Laimer
2022-04-12  5:25 ` [pbs-devel] [PATCH proxmox-backup v10 4/6] api: make maintenance_type updatable Hannes Laimer
2022-04-12  5:26 ` [pbs-devel] [PATCH proxmox-backup v10 5/6] api: add get_active_operations endpoint Hannes Laimer
2022-04-12  5:26 ` [pbs-devel] [PATCH proxmox-backup v10 6/6] ui: add option to change the maintenance type Hannes Laimer
2022-04-12  5:40 ` [pbs-devel] [PATCH proxmox-backup v10 0/6] closes #3071: maintenance mode for datastore Dylan Whyte
2022-04-12 15:00 ` Thomas Lamprecht [this message]

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=3e27f3ac-17ff-8f51-32e6-3dd71221cb63@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=h.laimer@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