all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager/storage 0/9] storage: plugins: display failed and outdated storage plugins in the GUI
@ 2026-07-31 15:36 Jakob Klocker
  2026-07-31 15:36 ` [PATCH pve-storage 1/9] storage: drop unused variable in storage_info Jakob Klocker
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jakob Klocker @ 2026-07-31 15:36 UTC (permalink / raw)
  To: pve-devel; +Cc: Jakob Klocker

Currently a storage whose plugin fails to load - because it is a
third-party plugin that is outdated, broken, or not installed on a
node - is silently dropped from the cluster resource tree, giving the
user no indication why it's gone or how to fix it.

This series makes such storages visible and displays plugin
metadata to explain the situation.

The storage backend now records, per plugin, whether it is a built-in
or a third-party plugin, its API version, the supported API version
range, its load state and an optional documentation URL.

The scan result for third-party plugins is cached. On a cache hit only
the known-good plugins are required and registered; plugins that failed
to load are not retried and their metadata is served from the cache.
This also means the warning printed when a plugin fails to load is
emitted once when the cache is rebuilt, instead of by every short-lived
process (pvesm, pct, qm, ...).

Additionally the cluster resource endpoint emits an entry for storages
with an unloadable plugin instead of dropping them and the GUI uses
the new metadata to:
- mark outdated and failed storages with a distinct icon in the
resource tree
- show the plugin state, whether it's external, and a link to the
plugin's documentation in the storage status panel
- display a dedicated summary for storages whose plugin could not be
loaded, explaining the problem and pointing to the plugin's homepage
if provided.

Tested on a single node with sshfs with API version 11
(outdated, still loads) and a plugin with an error (load-error, api
too old), plus a storage whose type has no plugin installed at all.
Verified the tree icons, the new StatusView rows, and the dedicated
summary view, and that healthy storages are unchanged.


pve-storage:

Jakob Klocker (5):
  storage: drop unused variable in storage_info
  storage: add `plugin-url` to built-in plugins
  storage: add `unknown` flag to parse_config
  storage: plugins: cache and classify custom storage plugins
  storage: expose plugin metadata in storage status

 src/PVE/API2/Storage/Status.pm       |  39 +++++
 src/PVE/Storage.pm                   | 248 +++++++++++++++++++++++----
 src/PVE/Storage/BTRFSPlugin.pm       |   1 +
 src/PVE/Storage/CIFSPlugin.pm        |   1 +
 src/PVE/Storage/CephFSPlugin.pm      |   1 +
 src/PVE/Storage/DirPlugin.pm         |   1 +
 src/PVE/Storage/ISCSIDirectPlugin.pm |   1 +
 src/PVE/Storage/ISCSIPlugin.pm       |   1 +
 src/PVE/Storage/LVMPlugin.pm         |   1 +
 src/PVE/Storage/LvmThinPlugin.pm     |   1 +
 src/PVE/Storage/NFSPlugin.pm         |   1 +
 src/PVE/Storage/PBSPlugin.pm         |   1 +
 src/PVE/Storage/Plugin.pm            |   4 +-
 src/PVE/Storage/RBDPlugin.pm         |   1 +
 src/PVE/Storage/ZFSPlugin.pm         |   1 +
 src/PVE/Storage/ZFSPoolPlugin.pm     |   1 +
 16 files changed, 264 insertions(+), 40 deletions(-)


pve-manager:

Jakob Klocker (4):
  cluster: backend: include storages with unloadable plugins
  www: storage: show plugin state/external/url in StatusView
  www: storage: distinguish failed/outdated storage plugins in resource
    tree
  www: storage: display custom summary for failed plugins

 PVE/API2/Cluster.pm                 |  51 ++++++++++++-
 PVE/API2Tools.pm                    |   6 ++
 www/manager6/Makefile               |   1 +
 www/manager6/Utils.js               |  72 ++++++++++++++++++
 www/manager6/storage/Browser.js     |  33 ++++++---
 www/manager6/storage/PluginError.js | 111 ++++++++++++++++++++++++++++
 www/manager6/storage/StatusView.js  |  38 +++++++++-
 7 files changed, 300 insertions(+), 12 deletions(-)
 create mode 100644 www/manager6/storage/PluginError.js


Summary over all repositories:
  23 files changed, 564 insertions(+), 52 deletions(-)

-- 
Generated by murpp 0.12.0



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-07-31 15:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 15:36 [PATCH manager/storage 0/9] storage: plugins: display failed and outdated storage plugins in the GUI Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-storage 1/9] storage: drop unused variable in storage_info Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-storage 2/9] storage: add `plugin-url` to built-in plugins Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-storage 3/9] storage: add `unknown` flag to parse_config Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-storage 4/9] storage: plugins: cache and classify custom storage plugins Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-storage 5/9] storage: expose plugin metadata in storage status Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-manager 6/9] cluster: backend: include storages with unloadable plugins Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-manager 7/9] www: storage: show plugin state/external/url in StatusView Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-manager 8/9] www: storage: distinguish failed/outdated storage plugins in resource tree Jakob Klocker
2026-07-31 15:36 ` [PATCH pve-manager 9/9] www: storage: display custom summary for failed plugins Jakob Klocker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal