5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2024-12-23 17:34:10 +03:00
Commit Graph

24 Commits

Author SHA1 Message Date
Wolfgang Link
3cdcfff633 increase max reading replication state file size.
In this file, the error of a failed job will also be stored.
The default 32768 bytes are not very much.

This file is on the local filesystem so there is no filesystem
size restrictions like in /etc/pve.
2019-04-17 07:26:53 +00:00
Thomas Lamprecht
b3b0025bd6 fix deprecated unescaped left brace in regex
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-12-14 14:06:08 +01:00
Wolfgang Link
7319c02cfd Add lock to pervent lost update. 2018-05-09 15:10:30 +02:00
Wolfgang Link
7bbb0cd6a9 Swap source and target in replication config, if VM was stolen. 2018-05-09 15:10:30 +02:00
Wolfgang Link
4ea5167ef0 Add config parameter 'source'.
This parameter is useful for restoring the replication status.
It is also corrected if it is missing or wrong.
2018-05-09 15:10:30 +02:00
Wolfgang Bumiller
81228d280f replication: purge states: verify the vmlist
Instead of clearing out the local state if the last
cfs_update failed.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-10-17 14:00:39 +02:00
Thomas Lamprecht
23ca78cd25 replication job_status: add get_disabled parameter
allows the API/frontend to get the disabled jobs easier

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-29 10:42:19 +02:00
Dietmar Maurer
40bcf6526b fix previous commit 2017-06-28 12:05:18 +02:00
Dietmar Maurer
22ce136731 replication: improve schedule_job_now
do no not modify anything if there is no state
2017-06-28 12:01:50 +02:00
Wolfgang Bumiller
b90dc712c5 replication: add schedule_job_now helper 2017-06-28 11:54:11 +02:00
Wolfgang Bumiller
621b955fb8 replication: sort time stamps numerically 2017-06-28 09:52:17 +02:00
Wolfgang Link
14849765e5 Add new function delete_guest_states. 2017-06-27 12:51:44 +02:00
Wolfgang Bumiller
fd844180a7 replication: don't sync to offline targets on error states
There's no point in trying to replicate to a target node
which is offline. Note that if we're not already in an
error state we do still give it a try in order for this to
get logged as an error at least once.
2017-06-27 12:13:24 +02:00
Wolfgang Bumiller
3385399339 replication: keep retrying every 30 minutes in error state
Otherwise we never get out of it.
2017-06-27 12:13:24 +02:00
Dietmar Maurer
92a243e986 PVE::ReplicationState - cleanup job state on job removal
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-06-27 11:53:28 +02:00
Dietmar Maurer
44972014b2 PVE::ReplicationState::purge_old_states - new helper 2017-06-27 10:15:01 +02:00
Dietmar Maurer
2c508173ea PVE::ReplicationState::write_job_state - allow to remove state completely 2017-06-27 08:13:36 +02:00
Dietmar Maurer
210a5f7970 PVE::ReplicationState::extract_vmid_tranfer_state - new helper
moved from PVE::QemuMigrate
2017-06-21 12:24:06 +02:00
Dietmar Maurer
c17dcb3eb3 PVE::ReplicationState - new helpers record_job_start/record_job_end 2017-06-20 07:13:00 +02:00
Dietmar Maurer
55222f3747 PVE/ReplicationState.pm: implement write_vmid_job_states
Update all job states related to a specific $vmid
2017-06-12 11:33:05 +02:00
Dietmar Maurer
c292c8e994 PVE::ReplicationState - add job_status, get_next_job, job_logfile_name helpers
Moved code from PVE::Replication.
2017-06-12 06:30:56 +02:00
Dietmar Maurer
52dcecfcbb PVE::ReplicationState - new helper replication_snapshot_name()
Changed replication snapshot naming to __replicate_<jobid>_<lastsync>__
to avoid conflicts with normal snapshot names.
2017-06-06 11:47:38 +02:00
Dietmar Maurer
90c07bf789 PVE::ReplicationState - hold guest_migration_lock during state update 2017-06-02 09:51:01 +02:00
Dietmar Maurer
3f7cacffb1 PVE::ReplicationState - new helper class to read/write replication state 2017-06-02 09:17:36 +02:00