]> git.proxmox.com Git - pve-cluster.git/commit
cluster: cfs_update: option to die rather than warn
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 11 Oct 2017 12:24:57 +0000 (14:24 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 17 Oct 2017 12:00:57 +0000 (14:00 +0200)
commit686801e4110f3ba4b2490e217c532583cb4212e2
tree605fd343b47f97c3dc49fe6560611230ccee8e6f
parentb523e00329ad98afed701be46090b61731e36312
cluster: cfs_update: option to die rather than warn

It can be useful to know whether we actually have an empty
vm list or whether the last cfs_update call simply failed.
Previously this only warned.

This way we can avoid a nasty type of race condition. For
instance in pvesr where it's possible that the vm list query
fails while everything else worked (eg. if the pmxcfs was
just starting up, or died between the queries), in which
case it would assume there are no guests and the
purge-old-states step would clear out the entire local state
file.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
data/PVE/Cluster.pm