[pve-devel] applied: [PATCH storage 5/5] migrate: only use import/export

2017-06-21 Thread Dietmar Maurer
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH storage 4/5] lvmthin: import/export: implement snapshot exporting

2017-06-21 Thread Dietmar Maurer
question inline: > On June 21, 2017 at 2:59 PM Wolfgang Bumiller wrote: > > > --- > PVE/Storage/LVMPlugin.pm | 11 --- > PVE/Storage/LvmThinPlugin.pm | 15 +++ > 2 files changed, 23 insertions(+), 3 deletions(-) > > diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/L

[pve-devel] applied: [PATCH storage 3/5] lvm: import/export: implement raw+size format

2017-06-21 Thread Dietmar Maurer
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] applied: [PATCH storage 2/5] import/export: new formats: raw, tar, qcow2, vmdk

2017-06-21 Thread Dietmar Maurer
comments inline > On June 21, 2017 at 2:59 PM Wolfgang Bumiller wrote: > > > All of them have a `+size` prefix to show that they're not > "pure raw" or "pure tar" streams, because some storage may > need to know in advance how much storage to allocate. > The formats are explained in comments. >

[pve-devel] applied: [PATCH storage 1/5] export: add missing format query call parameter

2017-06-21 Thread Dietmar Maurer
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH v7 pve-storage 02/10] Basic FreeNAS API interaction code

2017-06-21 Thread Fabian Grünbichler
On Tue, Jun 20, 2017 at 10:39:54PM +0200, m...@datanom.net wrote: > From: Michael Rasmussen > > Signed-off-by: Michael Rasmussen > --- > PVE/Storage/FreeNASPlugin.pm | 415 > +++ > 1 file changed, 415 insertions(+) > > diff --git a/PVE/Storage/FreeNASPl

[pve-devel] [PATCH storage 5/5] migrate: only use import/export

2017-06-21 Thread Wolfgang Bumiller
This replaces the path-based and lvm/thin special cases in storage_migrate with the already generic-enough zfspool case which is already using import/export and does not directly depend on zfs anymore. --- This replaces the actual storage_migrate() implementation with what was previously the new co

[pve-devel] [PATCH storage 1/5] export: add missing format query call parameter

2017-06-21 Thread Wolfgang Bumiller
--- PVE/Storage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index c34f2f5..7a65624 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1534,7 +1534,8 @@ sub volume_export_formats { my $scfg = storage_config($cfg, $storeid); my

[pve-devel] [PATCH storage 2/5] import/export: new formats: raw, tar, qcow2, vmdk

2017-06-21 Thread Wolfgang Bumiller
All of them have a `+size` prefix to show that they're not "pure raw" or "pure tar" streams, because some storage may need to know in advance how much storage to allocate. The formats are explained in comments. PVE::Storage::Plugin now has default implementations for these for non-incremental stre

[pve-devel] [PATCH storage 3/5] lvm: import/export: implement raw+size format

2017-06-21 Thread Wolfgang Bumiller
--- PVE/Storage/LVMPlugin.pm | 73 1 file changed, 73 insertions(+) diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index a2b3feb..9633e4c 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -503,4 +503,77 @@ su

[pve-devel] [PATCH storage 0/5] replace the rest of storage_migrate + fixes

2017-06-21 Thread Wolfgang Bumiller
Adds raw+size, tar+size, qcow2+size & vmdk+size format types. (Explanation follows in patch 2) Replaces the storage_migrate() cases with the import/export code the zfs code path was recently replaced with. Changes the behavior of the default import/export plugin implementations to not die. Instea

[pve-devel] [PATCH storage 4/5] lvmthin: import/export: implement snapshot exporting

2017-06-21 Thread Wolfgang Bumiller
--- PVE/Storage/LVMPlugin.pm | 11 --- PVE/Storage/LvmThinPlugin.pm | 15 +++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index 9633e4c..ed8afa1 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/L

Re: [pve-devel] [PATCH v7 pve-storage 01/10] FreeNAS storage plugin. Skeleton code.

2017-06-21 Thread Fabian Grünbichler
On Tue, Jun 20, 2017 at 10:39:53PM +0200, m...@datanom.net wrote: > From: Michael Rasmussen > > Signed-off-by: Michael Rasmussen > --- > PVE/Storage/FreeNASPlugin.pm | 66 > > 1 file changed, 66 insertions(+) > create mode 100644 PVE/Storage/FreeNA

[pve-devel] [PATCH pve-container] PVE::LXC::Migrate - use replication job, transfer replication state

2017-06-21 Thread Dietmar Maurer
Signed-off-by: Dietmar Maurer --- src/PVE/LXC/Migrate.pm | 21 + 1 file changed, 21 insertions(+) diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm index 8d7b50b..fb33e8c 100644 --- a/src/PVE/LXC/Migrate.pm +++ b/src/PVE/LXC/Migrate.pm @@ -11,6 +11,9 @@ use PVE::Cl

[pve-devel] [PATCH manager 1/2] add clustername to the static index files

2017-06-21 Thread Dominik Csapak
this can be used to show the cluster we are on Signed-off-by: Dominik Csapak --- PVE/Service/pveproxy.pm | 7 +++ www/index.html.tpl | 1 + 2 files changed, 8 insertions(+) diff --git a/PVE/Service/pveproxy.pm b/PVE/Service/pveproxy.pm index 0904127f..1516e233 100755 --- a/PVE/Service/

[pve-devel] [PATCH manager 2/2] fix #1358: add cluster name to datacenter and login window

2017-06-21 Thread Dominik Csapak
this shows the clustername in the datacenter tree node and the login window title, if a clustername exists Signed-off-by: Dominik Csapak --- www/manager6/tree/ResourceTree.js | 8 +++- www/manager6/window/LoginWindow.js | 8 2 files changed, 15 insertions(+), 1 deletion(-) diff --

Re: [pve-devel] [PATCH qemu-server] Change target in replication-state when replication direction is switched.

2017-06-21 Thread Dietmar Maurer
> > + foreach my $key (keys %{$stateobj->{$vmid}}) { > > + if ($key =~ /^(.*\/)\Q$mig_node\E$/) { > > + $tmp_state->{"$1$new_target"} = $stateobj->{$vmid}->{$key}; > > + } else { > > + $tmp_state->{$key} = $stateobj->{$vmid}->{$key}; > > + } > > + } > > + >

Re: [pve-devel] [PATCH qemu-server] Change target in replication-state when replication direction is switched.

2017-06-21 Thread Dietmar Maurer
> diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm > index 8e541bf..0c931c5 100644 > --- a/PVE/QemuMigrate.pm > +++ b/PVE/QemuMigrate.pm > @@ -859,8 +859,21 @@ my $transfer_replication_state = sub { > my $stateobj = PVE::ReplicationState::read_state(); > > if (defined($stateobj->{$v