Go to file
Dominik Csapak 2cf7706e3d Jobs: fix scheduling after updating job from a different node
since the jobs are configured clusterwide in pmxcfs, a user can use any
node to update the config of them. for some configs (schedule/enabled)
we need to update the last runtime in the state file, but this
is sadly only node-local.

to also update the state file on the other nodes, we introduce
a new 'detect_changed_runtime_props' function that checks and saves relevant
properties from the config to the statefile each round of the scheduler if they
changed.

this way, we can detect changes in those and update the last runtime too.

the only situation where we don't detect a config change is when the
user changes back to the previous configuration in between iterations.
This can be ignored though, since it would not be scheduled then
anyway.

in 'synchronize_job_states_with_config' we switch from reading the
jobstate unconditionally to check the existance of the statefile
(which is the only condition that can return undef anyway)
so that we don't read the file multiple times each round.

Fixes: 0c8d7468 ("fix #4053: don't run vzdump jobs when they change from
disabled->enabled")

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
2022-08-05 13:08:08 +02:00
aplinfo update shipped aplinfo 2022-07-04 13:31:23 +02:00
bin remove pvescheduler manpage generation 2021-11-11 18:35:52 +01:00
configs configs: vzdump: add notes-template default 2022-05-12 17:17:56 +02:00
debian bump rust dependencies 2022-07-15 12:36:50 +02:00
network-hooks ifupdown1: bridgevlan: add bridge-vids list support 2020-01-11 17:22:46 +01:00
PVE Jobs: fix scheduling after updating job from a different node 2022-08-05 13:08:08 +02:00
services ceph-after-pve-cluster: enable for ceph-volume, disable for ceph-disk 2022-07-19 17:21:18 +02:00
test fix replication fail count tests & bump libpve-guest-common-perl b-d 2022-04-27 18:53:27 +02:00
www ui: datacenter: use "Name" label for respective part of full rp 2022-07-26 12:00:45 +02:00
.gitignore Extend the .gitignore(s) 2018-05-04 14:50:04 +02:00
defines.mk fix #844: allow to pre-delay start-all-marked guests on boot 2019-11-20 20:20:58 +01:00
Makefile avoid installing unused var/lib/vz/template/qemu directory 2022-01-11 14:13:45 +01:00
spice-example-sh doc: spice-example-sh: support special characters in passwords 2017-10-05 13:57:27 +02:00
vzdump-hook-script.pl close #3476: vzdump: add job-init hook 2022-01-18 12:20:26 +01:00