Commit Graph
3 Commits
Author SHA1 Message Date
upstream 39dd92ebb6 Upstream proxmox-git/pve-cluster state of the touched files before 8cdf8f53fe 2026-10-03 02:06:52 +02:00
dualfroz 4298a304e1 fix #7326: corosync config: allow whitespace in values
The corosync.conf parser split the whole file into whitespace separated
tokens and always took exactly one token as value. Values containing
whitespace, like a manually set cluster_name "my cluster", are accepted
by corosync, but made the parser fail with "missing ':' after key".
Any API call reading the corosync config then failed, for example when
adding an HA resource.

Parse the file line by line instead, like corosync does, and take the
rest of the line after the first ':' as value. Section headers and
closing brackets still need to be on their own line, which corosync
requires anyway.

Add a test config with whitespace in the cluster name.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-09-25 11:35:16 +02:00
upstream ad7bbf925f Upstream proxmox-git/pve-cluster state of the touched files before a0a405c3b7 2026-09-25 11:34:50 +02:00