Compare commits

..

2 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
f28b2372cc fix(build): validate storage availability when loading defaults
When loading var_container_storage / var_template_storage from default.vars
or app defaults, validate that the storage actually exists and is active on
the current node. In mixed clusters (e.g. LVM-Thin + ZFS hosts), saved
defaults from one node type would fail on another because the referenced
storage doesn't exist. Now invalid storage values are skipped with a
warning, allowing the normal storage selection prompt to appear.

Closes #12766
2026-03-12 08:38:24 +01:00
community-scripts-pr-app[bot]
5abd9170ba chore: update github-versions.json (#12791)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-12 06:19:42 +00:00
2 changed files with 17 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
{
"generated": "2026-03-12T00:18:31Z",
"generated": "2026-03-12T06:19:33Z",
"versions": [
{
"slug": "2fauth",
@@ -620,9 +620,9 @@
{
"slug": "jackett",
"repo": "Jackett/Jackett",
"version": "v0.24.1341",
"version": "v0.24.1350",
"pinned": false,
"date": "2026-03-11T05:55:00Z"
"date": "2026-03-12T06:03:33Z"
},
{
"slug": "jellystat",
@@ -739,9 +739,9 @@
{
"slug": "leantime",
"repo": "Leantime/leantime",
"version": "v3.7.1",
"version": "v3.7.3",
"pinned": false,
"date": "2026-02-22T01:25:16Z"
"date": "2026-03-12T01:53:56Z"
},
{
"slug": "librenms",

View File

@@ -1185,6 +1185,18 @@ load_vars_file() {
continue
fi
;;
var_container_storage | var_template_storage)
# Validate that the storage exists and is active on the current node
local _storage_status
_storage_status=$(pvesm status 2>/dev/null | awk -v s="$var_val" '$1 == s { print $3 }')
if [[ -z "$_storage_status" ]]; then
msg_warn "Storage '$var_val' from $file not found on this node, ignoring"
continue
elif [[ "$_storage_status" == "disabled" ]]; then
msg_warn "Storage '$var_val' from $file is disabled on this node, ignoring"
continue
fi
;;
esac
fi