5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-01-25 06:03:53 +03:00

748 Commits

Author SHA1 Message Date
Dietmar Maurer
889d7485cb Revert "Add function volume_snapshot_delete_remote."
This reverts commit 4bd0b38f53f41fb8dfd4a6a6a3748e332b7727eb.
2017-05-10 06:55:00 +02:00
Dietmar Maurer
68c2c2fc62 Revert "Include pve-replica cronjob."
This reverts commit fd69be974c30e43837dddff50a1c378514923359.
2017-05-10 06:51:26 +02:00
Dietmar Maurer
552278a2a2 PVE::ReplicationTools::update_conf - correctly catch exception 2017-05-09 11:45:12 +02:00
Dietmar Maurer
9998ea1d52 ReplicationTools.pm: call PVE::INotify::nodename inside methods
so that we can overwrite it using Test::MockModule. This makes writing
regression tests easier.
2017-05-09 07:11:07 +02:00
Dietmar Maurer
6971bcd61f ReplicationTools.pm_ do not pass $local_node to volume_snapshot_list 2017-05-09 07:08:17 +02:00
Dietmar Maurer
23ddb82e54 ReplicationTools.pm: rename $get_guestconfig to get_guest_config
make it a real sub
2017-05-09 06:36:24 +02:00
Dietmar Maurer
6a50f652a6 rename get_syncable_guestdisks to get_replicatable_volumes 2017-05-09 06:23:23 +02:00
Dietmar Maurer
666e0afebf ReplicationTools: use get_replicatable_volumes() 2017-05-09 06:20:24 +02:00
Dietmar Maurer
2971c957ab PVE::ReplicationTools::get_node_ip - do not pass noerr to PVE::Cluster::remote_node_ip()
We need an IP address.
2017-05-08 12:05:39 +02:00
Dietmar Maurer
83ba57c81c PVE::ReplicationTools - s/delet/delete/ 2017-05-08 10:22:57 +02:00
Dietmar Maurer
508344ab9d use consistent snapshot prefix for replicas 2017-05-08 09:29:57 +02:00
Dietmar Maurer
dfea1c130e PVE::ReplicationTools::destroy_all_snapshots - never delete local disks 2017-05-08 08:47:28 +02:00
Dietmar Maurer
be1d5bc192 PVE::ReplicationTools::sync_guest - do not add snapname to disks_status
Because it is not used at all.
2017-05-08 07:57:04 +02:00
Dietmar Maurer
c9a16105d4 PVE::ReplicationTools:sync_disk - use $lastsync instead of $job->{lastsync}
Because tghis is the parsed (untainted) value, and we pass this a parameter
to cleanup_snapshot.
2017-05-08 07:39:47 +02:00
Dietmar Maurer
81fa35e539 PVE::ReplicationTools::sync_guest - use integer compare for lastsync 2017-05-08 07:36:20 +02:00
Dietmar Maurer
ed283475d4 PVE::ReplicationTools::get_snapshot - remove dead code
This function makes no sense and is not used.
2017-05-08 06:55:12 +02:00
Dietmar Maurer
cba200746c PVE::ReplicationTools: new helper get_ssh_cmd() 2017-05-08 06:42:24 +02:00
Dietmar Maurer
8ef98169e3 PVE::ReplicationTools::cleanup_snapshot - make sure ip is defined 2017-05-08 06:28:58 +02:00
Dietmar Maurer
7e5b531380 use 'eq' instead of regex for simple equality test. 2017-05-06 17:20:52 +02:00
Dietmar Maurer
efcdabfb36 PVE::ReplicationTools - coding style cleanup 2017-05-05 17:48:29 +02:00
Dietmar Maurer
e4d5d5f2aa PVE::ReplicationTools::get_node_ip() - fix arguments for mtunnel 2017-05-05 15:45:27 +02:00
Dietmar Maurer
fa5e729eac PVE::ReplicationTools - add missing "use PVE::INotify;" 2017-05-05 15:38:52 +02:00
Dietmar Maurer
be304991e7 PVE::ReplicationTools - remove unused var $cluster_nodes 2017-05-05 15:36:01 +02:00
Dietmar Maurer
e9b759ac30 PVE::ReplicationTools - only use required modules (remove Time::Local) 2017-05-05 15:36:01 +02:00
Dietmar Maurer
d884a78870 PVE::ReplicationTools - remove useless call to cfs_update 2017-05-05 15:27:08 +02:00
Dietmar Maurer
8b38cdaf67 PVE::API2::Storage::Replication - add reasonable permission checks 2017-05-05 11:55:34 +02:00
Dietmar Maurer
f580b2d30d pvesr run: remove wrong permission check 2017-05-05 11:23:25 +02:00
Dietmar Maurer
1d3ddfaf2c pvesr: move destroy_job into API class, remove wrong permission checks. 2017-05-05 11:18:30 +02:00
Dietmar Maurer
339ca30a5b PVE::API2::Storage::Replication->jobs(): return array 2017-05-05 10:54:10 +02:00
Dietmar Maurer
e0992d57e1 pvesr: rename list => jobs, call API
to avoid code duplication. I also removed the functioanlity to query
jobs on other nodes, because it is clumsy and not really needed.
2017-05-05 10:31:51 +02:00
Dietmar Maurer
07dff26749 PVE::API2::Storage::Replication - add directory index 2017-05-05 10:01:26 +02:00
Dietmar Maurer
76c358149a renamed: PVE/API2/StorageReplication.pm -> PVE/API2/Storage/Replication.pm 2017-05-05 09:25:43 +02:00
Wolfgang Bumiller
4857e862e3 bump version to 5.0-4 2017-04-28 13:55:53 +02:00
Wolfgang Bumiller
6b1d6cee44 replica: get_syncable_disks: skip disks with replica=0 2017-04-28 11:31:46 +02:00
Wolfgang Bumiller
618a0d9b96 replica: add missing import 2017-04-28 11:27:59 +02:00
Wolfgang Bumiller
828d9073b3 replica: cleanup 2017-04-28 10:33:51 +02:00
Wolfgang Link
fd69be974c Include pve-replica cronjob.
This is the timer for pvesr run.
2017-04-28 10:05:27 +02:00
Wolfgang Link
4537523b5a Include incremental zfs send in storage_migrate.
When replica is enabled and the target host is the reptarget,
the most VM data are on the new target.
2017-04-28 10:05:27 +02:00
Wolfgang Link
663510b86d This patch will include storage asynchronous replication.
It is possible to synchronise a volume to an other node in a defined interval.
So if a node fail there will be an copy of the volumes from a VM
on an other node.
With this copy it is possible to start the VM on this node.
2017-04-28 10:05:27 +02:00
Wolfgang Link
f189504ccb Add replicate as new storage feature.
This feature shows that the storage can send and receive images.
2017-04-28 10:05:27 +02:00
Wolfgang Link
4bd0b38f53 Add function volume_snapshot_delete_remote.
This function we need for replica to handle snapshots on remote nodes.
2017-04-28 10:05:27 +02:00
Wolfgang Link
c4bb4a3d19 Add ip parameter in zfs_request to execute on remote host.
We need this function to delete remote snapshots.
2017-04-28 10:05:27 +02:00
Wolfgang Link
aefe82ea03 Include new storage function volume_snapshot_list.
Returns a list of snapshots (youngest snap first) form a given volid.
It is possible to use a prefix to filter the list.
2017-04-28 10:05:27 +02:00
Wolfgang Link
b76774e57f Include new storage function volume_send.
If the storage backend support import and export
we can send the contend to a remote host.
2017-04-28 10:05:27 +02:00
Fabian Grünbichler
d412b98df8 bump version to 5.0-3 2017-04-10 16:22:08 +02:00
Fabian Grünbichler
fc1089fc3a fix run_command return code handling 2017-04-10 15:29:29 +02:00
Fabian Grünbichler
e3a191bc80 bump version to 5.0-2 2017-03-21 13:52:04 +01:00
Fabian Grünbichler
c59a0f2452 rbd: fix rados df parser for luminous 2017-03-21 10:13:02 +01:00
Fabian Grünbichler
da5a54891e bump version to 5.0-1 2017-03-10 09:24:11 +01:00
Fabian Grünbichler
22588fc3a7 buildsys: update make upload target for stretch 2017-03-10 09:23:51 +01:00