Commit Graph

40 Commits

Author SHA1 Message Date
Dietmar Maurer
a9da300ded PVE::API2::ReplicationConfig - extract guest ID from job ID 2017-06-07 11:30:52 +02:00
Dietmar Maurer
c364b61f8e PVE::Replication - do not pass time to logfunc
This is simply not neccessary.
2017-06-06 06:36:03 +02:00
Dietmar Maurer
f9d38c545c PVE::API2::ReplicationConfig - implement delete
We just set the remove_job property in the configuration. Actual removal
is done asynchronous inside replicate().
2017-05-31 08:23:47 +02:00
Dietmar Maurer
fcc22c0bfb pvesr finalize-local-job: add helper to cleanup job
This will be called after replication on the target node. For now, this
just removes old snapshots.
2017-05-31 08:23:47 +02:00
Dietmar Maurer
fae995063c pvesr prepare-local-job: new helper
Prepare for starting a replication job. This is called on the target
node before replication starts. This call is for internal use, and
return a JSON object on stdout. The method first test if VM <vmid>
reside on the local node. If so, stop immediately. After that the
method scans all volume IDs for snapshots, and removes all replications
snapshots with timestamps different than <last_sync>. It also removes
any unused volumes.

Returns a hash with boolean markers for all volumes with existing
replication snapshots.
2017-05-31 08:23:46 +02:00
Dietmar Maurer
f70997ea80 pvesr run: add --verbose flag
We can now pass a $logfunc parameter to replicate() to
produce more verbose logs/output. This is especially useful
for regression testing.
2017-05-31 08:23:46 +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
Fabian Grünbichler
caf3785549 pveceph: use luminous by default 2017-03-21 13:50:28 +01:00
Dietmar Maurer
989f3c7ead use new PVE::Storage::check_volume_access() 2017-01-18 17:30:40 +01:00
Dietmar Maurer
7e017024a7 add setup_environment hooks to CLIHandler classes
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 13:07:00 +01:00
Dietmar Maurer
33dc998183 remove obsolete inline documentation 2017-01-11 10:54:47 +01:00
Fabian Grünbichler
ab1213cc50 replace SysV init script with our own service
for more information see http://tracker.ceph.com/issues/18305 .

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-12-22 11:53:52 +01:00
Wolfgang Link
f9305cc0a1 add jewel 2016-12-22 11:48:12 +01:00
Fabian Grünbichler
62180d0f1d update descriptions, error messages 2016-08-24 10:18:27 +02:00
Dietmar Maurer
7aa0353ea6 revert commit ccc7ad4b47
ceph 'infernalis' and 'jewel' still not work 100%, so
disable that until it runs really stable.
2016-06-10 15:31:19 +02:00
Dietmar Maurer
17325396e3 pveceph install: run apt-get interactive
It is sometime necessary to answer questions.
2016-06-09 10:01:58 +02:00
Wolfgang Link
ccc7ad4b47 Extend the Ceph featuring version Infernalis and Hammer. 2016-06-09 07:28:16 +02:00
Fabian Grünbichler
e42ae622cc fix #1005: don't exclude /var/log/?* with stdexcludes
the old behaviour can be easily restored with --exclude-path
and this seemed to surprise a lot of users.
2016-06-08 12:34:04 +02:00
Fabian Grünbichler
bbcfdc08cc use PVE::Storage::config(), not cfs_read_file() 2016-03-30 10:35:58 +02:00
Dietmar Maurer
ee6e61009d pveam: add 'available' command to list available templates 2016-03-05 15:35:40 +01:00
Wolfgang Bumiller
065db62f9c doc: The quotes around the glob are actually required... 2016-03-03 11:04:03 +01:00
Wolfgang Bumiller
6999138a2a doc: update vzdump stdexclude documentation 2016-03-03 11:00:11 +01:00
Wolfgang Bumiller
d38e93822d doc: consistent vzdump --exclude-path documentation
The schema's documentation was already updated to reflect
the change from regular expressions to shell globs, but the
pod entry in CLI/vzdump.pm wasn't.

Also C<> is not interpreted in verbatim (space-prefixed)
lines so it showed up as literal text.
2016-03-03 09:46:41 +01:00
Wolfgang Link
16b8d964cd add remove function to pveam
now it is possible to erase templates with pveam
2016-02-26 11:51:35 +01:00
Wolfgang Link
c519fe3c91 add list to pveam
This function list all the templates off a specified storage.
It also gives the size of the template.
2016-02-26 11:39:25 +01:00
Wolfgang Link
82282acf4f add pveam download
With this function you can download templates from the repositories.
2016-02-26 11:37:11 +01:00
Dietmar Maurer
9cfacf24b7 remove debugging code 2016-02-26 11:36:48 +01:00
Wolfgang Link
108b722948 refactor pveam to use it with our CLI Handler. 2016-02-26 11:34:52 +01:00
Dietmar Maurer
ad95f6af75 fix Makefiles (add 'all' target) 2016-01-22 11:24:26 +01:00
Alexandre Derumier
10fa179f75 pveceph install : use release repository
and increase git release key retrieval.
(ceph.com git seem to be quite slow currently)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-10-28 09:23:47 +01:00
Dietmar Maurer
ad21a2ff91 change default ceph download url to download.ceph.com 2015-09-19 14:06:44 +02:00
Dietmar Maurer
144a2199de vzdump: re-enable passing vmid lists at command line
We lost that feature in a previous commit, so I just re-eanble it.
2015-09-19 10:44:08 +02:00
Emmanuel Kasper
0125d38c77 Update vzdump man page for 4.0 (LXC containers , KVM live backup) 2015-09-10 12:08:37 +02:00
Dietmar Maurer
e5d2847f99 allow usage of ceph development repository
This is a temporary workaround for testing. We plan to switch to
official repository as soon as it gets available.
2015-09-08 12:13:42 +02:00
Dietmar Maurer
3e8560ac0d convert pveceph into a PVE::CLI class 2015-09-08 11:25:00 +02:00
Emmanuel Kasper
2b290f8950 Update vzdump man page for use with LXC containers 2015-09-07 13:05:28 +02:00
Dietmar Maurer
8002175e60 convert pvesubscription into a PVE::CLI class 2015-09-05 11:38:49 +02:00
Dietmar Maurer
9a225ed513 vzdump: directly use CLIHandler to generate docs 2015-09-04 09:12:10 +02:00