Dietmar Maurer
2aa029571c
PVE/API2/Replication.pm: add $verbose parameter run_jobs()
2017-06-20 08:58:48 +02:00
Dominik Csapak
d09c076a62
change to ReplicaState
...
this function moved, so the call to it has to move too
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-12 16:01:55 +02:00
Dietmar Maurer
d092dc4f83
use new replication helpers from pve-guest-common
2017-06-12 06:59:21 +02:00
Dietmar Maurer
810c6776d9
PVE::Replication - remove dependency to PVE::LXC/PVE::QemuServer
...
So that we can move the whole class to package pve-guest-common.
2017-06-12 05:59:51 +02:00
Dietmar Maurer
fc527b4da1
PVE::API2::Replication: rework replication status API
...
/nodes/<node>/replication => list status of all jobs
/nodes/<node>/replication/<id>/status => individual job status
/nodes/<node>/replication/<id>/log => job log
2017-06-08 07:16:39 +02:00
Dominik Csapak
4b48563a88
use correct field for child link
...
namely id instead of vmid, so that the child links are working in the
api inspector and pvesh
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-02 16:23:30 +02:00
Dietmar Maurer
f5b53d4c31
PVE/API2/Replication.pm: change vmid => guest
2017-06-02 16:22:46 +02:00
Dominik Csapak
c1b20fca93
add vmid parameter to replication status
...
so that one can limit the status list for one vm/ct
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-02 16:19:26 +02:00
Dietmar Maurer
5c180db3b5
PVE::Replication - use new calendar events instead of interval
...
And implement retry algorythm after failure:
$next_sync = $state->{last_try} + 5*60*$fail_count;
and limit to 3 failures.
2017-05-31 08:23:46 +02:00
Dietmar Maurer
483f89dd47
PVE/Replication.pm: save pid/ptime to running job state
...
So that we can check which job is running.
2017-05-31 08:23:46 +02:00
Dietmar Maurer
892821fd87
pvesr: add pve storage replication tool
...
Just added code to configure jobs. Replication itself is not
implemented.
2017-05-31 08:23:46 +02:00