Re: [pve-devel] [PATCH] VZDump: die with error if plugin loading fails

2016-11-16 Thread Stefan Priebe - Profihost AG
Am 17.11.2016 um 08:42 schrieb Fabian Grünbichler: > On Thu, Nov 17, 2016 at 07:01:24AM +0100, Dietmar Maurer wrote: >>> It is really hard to review patches without descriptions. Please >>> can you add minimal information? >> >> Oh, just saw you sent that in a separate mail - please ignore me! >

Re: [pve-devel] [PATCH] VZDump: die with error if plugin loading fails

2016-11-16 Thread Fabian Grünbichler
On Thu, Nov 17, 2016 at 07:01:24AM +0100, Dietmar Maurer wrote: > > It is really hard to review patches without descriptions. Please > > can you add minimal information? > > Oh, just saw you sent that in a separate mail - please ignore me! Just as a side note - it makes a lot of sense to include

Re: [pve-devel] [PATCH] RBD: snap purge does not support automatic unprotect so list all snapshots and then unprotect and delete them

2016-11-16 Thread Fabian Grünbichler
On Thu, Nov 17, 2016 at 08:21:33AM +0100, Stefan Priebe - Profihost AG wrote: > Am 17.11.2016 um 07:33 schrieb Dietmar Maurer: > > AFAIK we only protect base volumes, and we 'unprotect' that in the code. > > So what is the purpose of this patch? > > > > good question ;-) I just remember that i

Re: [pve-devel] [PATCH] RBD: snap purge does not support automatic unprotect so list all snapshots and then unprotect and delete them

2016-11-16 Thread Stefan Priebe - Profihost AG
Am 17.11.2016 um 07:33 schrieb Dietmar Maurer: > AFAIK we only protect base volumes, and we 'unprotect' that in the code. > So what is the purpose of this patch? > good question ;-) I just remember that i had this situation where i did clones from snapshots which results in protected snapshots.

Re: [pve-devel] VZDump/QemuServer: set bless clas correctly

2016-11-16 Thread Stefan Priebe - Profihost AG
Am 17.11.2016 um 07:20 schrieb Dietmar Maurer: >> While blessing it is good practise to provide the class. This makes it also >> possible to use >> QemuServer as a base / parent class. > > Why do you want another class (QemuServer) as base? We've a custom class PHQemuServer which has

Re: [pve-devel] [PATCH] allow --allow-shrink on RBD resize

2016-11-16 Thread Stefan Priebe - Profihost AG
Am 17.11.2016 um 06:44 schrieb Dietmar Maurer: > This is dangerous and can destroy data. So is there a real reason > to allow that? Yes it can. That's the reason i've not exported this to the GUI. But it is a real use case today. More and more FS supports shrinking. f.e. Windows ntfs, ext4,

Re: [pve-devel] [PATCH manager 2/2] enable certificate pinning for proxied requests

2016-11-16 Thread Dietmar Maurer
some comments inline: > diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm > index 1c7d033..5ddbd07 100755 > --- a/PVE/HTTPServer.pm > +++ b/PVE/HTTPServer.pm > @@ -105,6 +105,53 @@ sub get_login_formatter { > return $info->{func}; > } > > +my $cert_cache_nodes = {}; > +my

Re: [pve-devel] [PATCH] RBD: snap purge does not support automatic unprotect so list all snapshots and then unprotect and delete them

2016-11-16 Thread Dietmar Maurer
AFAIK we only protect base volumes, and we 'unprotect' that in the code. So what is the purpose of this patch? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] ballon initializing bug

2016-11-16 Thread Alexandre DERUMIER
>>maybe this fix is related >>virtio: update balloon size in balloon "probe" >>https://github.com/torvalds/linux/commit/8424af5336b34043a705d66bdf2c1428048ef085 >>fix a bug introduced in kernel 4.6 >>I'll do test tomorrow Ok, I confirm you that it's fixing the bug. So maybe warn user that

Re: [pve-devel] VZDump/QemuServer: set bless clas correctly

2016-11-16 Thread Dietmar Maurer
> While blessing it is good practise to provide the class. This makes it also > possible to use > QemuServer as a base / parent class. Why do you want another class (QemuServer) as base? Isn't it better to remove that whole $class parameter? sub new { my ($vzdump) = @_;

[pve-devel] applied: [PATCH] VZDump: die with error if plugin loading fails

2016-11-16 Thread Dietmar Maurer
applied, thanks. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH] VZDump: die with error if plugin loading fails

2016-11-16 Thread Dietmar Maurer
> It is really hard to review patches without descriptions. Please > can you add minimal information? Oh, just saw you sent that in a separate mail - please ignore me! ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH] VZDump: die with error if plugin loading fails

2016-11-16 Thread Dietmar Maurer
It is really hard to review patches without descriptions. Please can you add minimal information? - What is the purpose? - Does it solve a bug? I simply cannot see the reason for this patch? > On November 16, 2016 at 8:08 PM Stefan Priebe wrote: > > > Signed-off-by:

Re: [pve-devel] [PATCH] allow --allow-shrink on RBD resize

2016-11-16 Thread Dietmar Maurer
This is dangerous and can destroy data. So is there a real reason to allow that? > On November 16, 2016 at 8:13 PM Stefan Priebe wrote: > > > Signed-off-by: Stefan Priebe > --- > PVE/Storage/RBDPlugin.pm | 2 +- > 1 file changed, 1 insertion(+),

Re: [pve-devel] [PATCH] allow --allow-shrink on RBD resize

2016-11-16 Thread Stefan Priebe - Profihost AG
Am 16.11.2016 um 21:41 schrieb Alexandre DERUMIER: > It is usefull if we growing the volume ? no - but the function is called resize not grow ;-) So i use it also for shrinking volumes. > I'm seeing a refused tracker/pr here to disallow --alow-shrink on extend > >

Re: [pve-devel] [PATCH] allow --allow-shrink on RBD resize

2016-11-16 Thread Alexandre DERUMIER
It is usefull if we growing the volume ? I'm seeing a refused tracker/pr here to disallow --alow-shrink on extend http://tracker.ceph.com/issues/15991 https://github.com/ceph/ceph/pull/9408 - Mail original - De: "Stefan Priebe, Profihost AG" À: "pve-devel"

Re: [pve-devel] Dedicated Migration Network #1177 v2

2016-11-16 Thread Phil Kauffman
I have done some light testing of this and it doesn't seem to work quite right yet. Things I have done. - dist-upgrade on both machines and reboot. - able to ssh to and from both machines on alternate network without a password - Migration works when VM is off or one does not set

[pve-devel] VZDump: die with error if plugin loading fails

2016-11-16 Thread Stefan Priebe
This took me some time that a custom modification was preventing a whole plugin to fail loading. The warn also hides in the systemctl status -l / journal log. I think dying is better if a plugin contains an error. [PATCH] VZDump: die with error if plugin loading fails

[pve-devel] [PATCH] VZDump: die with error if plugin loading fails

2016-11-16 Thread Stefan Priebe
Signed-off-by: Stefan Priebe --- PVE/VZDump.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index a4b40ce..42e34d1 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -191,7 +191,7 @@ foreach my $plug (@pve_vzdump_classes)

[pve-devel] [PATCH] allow --allow-shrink on RBD resize

2016-11-16 Thread Stefan Priebe
Signed-off-by: Stefan Priebe --- PVE/Storage/RBDPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 09562fe..eb0c256 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@

[pve-devel] [PATCH] RBD: snap purge does not support automatic unprotect so list all snapshots and then unprotect and delete them

2016-11-16 Thread Stefan Priebe
Signed-off-by: Stefan Priebe --- PVE/Storage/RBDPlugin.pm | 36 +--- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index c1f88e4..09562fe 100644 ---

[pve-devel] VZDump/QemuServer: set bless clas correctly

2016-11-16 Thread Stefan Priebe
While blessing it is good practise to provide the class. This makes it also possible to use QemuServer as a base / parent class. [PATCH] VZDump/QemuServer: set bless clas correctly ___ pve-devel mailing list pve-devel@pve.proxmox.com

[pve-devel] [PATCH] VZDump/QemuServer: set bless clas correctly

2016-11-16 Thread Stefan Priebe
Signed-off-by: Stefan Priebe --- PVE/VZDump/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index 5322b37..6a58a79 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@

Re: [pve-devel] ballon initializing bug

2016-11-16 Thread Alexandre DERUMIER
maybe this fix is related virtio: update balloon size in balloon "probe" https://github.com/torvalds/linux/commit/8424af5336b34043a705d66bdf2c1428048ef085 fix a bug introduced in kernel 4.6 I'll do test tomorrow - Mail original - De: "aderumier" À: "pve-devel"

Re: [pve-devel] ballon initializing bug

2016-11-16 Thread Alexandre DERUMIER
adding a sleep seem to fix it. (execute the balloon command when guest driver is already loaded) if (!$statefile && (!defined($conf->{balloon}) || $conf->{balloon})) { +sleep 30; vm_mon_cmd_nocheck($vmid, "balloon", value =>

[pve-devel] ballon initializing bug

2016-11-16 Thread Alexandre DERUMIER
Hi, I have detected something strange with ballooning and qemu 2.7 and 2.6.2 (not sure about old version). maybe it's a recent proxmox update ? vmid.conf - memory: 16384 shares: 0 balloon: 4096 at start, qmp command seem to be sent the qmp command { 'arguments' => {

Re: [pve-devel] [PATCH manager 2/2] enable certificate pinning for proxied requests

2016-11-16 Thread Dietmar Maurer
comments inline: > +sub check_cert_fp { > +my ($fp) = @_; > + > +my $check = sub { > + for my $expected (keys %$cert_cache_fingerprints) { > + return 1 if $fp eq $expected; > + } > + return 0; > +}; > + > +return 1 if &$check(); > + > +# refresh cache and

[pve-devel] [PATCH manager 2/2] enable certificate pinning for proxied requests

2016-11-16 Thread Fabian Grünbichler
when forwarding an API request to the responsible node, only accept the certificate that this node should have according to the contents of the cluster file system. to limit performance issues, cache certificate fingerprint on first request for each node, and only regenerate cache (once) if the

[pve-devel] [PATCH manager 1/2] pass proxied to node to proxy_request

2016-11-16 Thread Fabian Grünbichler
in addition to proxied to IP --- note just needed for patch #2 PVE/HTTPServer.pm | 6 +++--- PVE/REST.pm | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm index 1712c10..1c7d033 100755 --- a/PVE/HTTPServer.pm +++

Re: [pve-devel] [PATCH 2/6] qemu_drive_mirror : handle multiple jobs

2016-11-16 Thread Alexandre DERUMIER
Wolfgang, any comment ? - Mail original - De: "aderumier" À: "Wolfgang Bumiller" Cc: "pve-devel" Envoyé: Jeudi 10 Novembre 2016 15:47:47 Objet: Re: [pve-devel] [PATCH 2/6] qemu_drive_mirror : handle multiple jobs

Re: [pve-devel] applied: [PATCH ha-manager v3 0/4] add 'stopped' state for resources

2016-11-16 Thread Dietmar Maurer
sorry - just applied it. > On November 16, 2016 at 9:44 AM Thomas Lamprecht > wrote: > > > On 11/15/2016 04:37 PM, Dietmar Maurer wrote: > > applied > > I just saw that the regression test patch was not applied yet, was this > on purpose? :)

Re: [pve-devel] applied: [PATCH ha-manager v3 0/4] add 'stopped' state for resources

2016-11-16 Thread Thomas Lamprecht
On 11/15/2016 04:37 PM, Dietmar Maurer wrote: applied I just saw that the regression test patch was not applied yet, was this on purpose? :) ___ pve-devel mailing list pve-devel@pve.proxmox.com