Re: [pve-devel] [PATCH ha-manager] fix #1347: let postfix fill in FQDN in fence mails

2017-09-12 Thread Thomas Lamprecht
On 09/08/2017 02:56 PM, Philip Abernethy wrote: Using the nodename is not correct and can lead to mails not forwarding in restrictive mail server configurations. --- src/PVE/HA/Env/PVE2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/HA/Env/PVE2.pm b/src/PVE/

[pve-devel] [PATCH docs] pvecm: pve-manager service was renamed to pve-guests

2017-09-12 Thread Wolfgang Bumiller
--- pvecm.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvecm.adoc b/pvecm.adoc index 4414d20..179406e 100644 --- a/pvecm.adoc +++ b/pvecm.adoc @@ -846,7 +846,7 @@ NOTE: It is always a good idea to use an uninterruptible power supply (``UPS'', also called ``battery bac

Re: [pve-devel] [PATCH manager v2 09/10] Make room in QemuWizard and Edit Window so that the larger combo boxes properly fit

2017-09-12 Thread Thomas Lamprecht
On 09/12/2017 02:44 PM, Emmanuel Kasper wrote: This will benefit the BusTypeSelector, the DiskFormatSelector, the CD FileSelector, and possibily other long fields like vm name, pool name. --- www/manager6/form/ControllerSelector.js | 4 ++-- www/manager6/qemu/CDEdit.js | 3 +++ w

Re: [pve-devel] [PATCH manager v2 08/10] Improve the display names of VirtIO blk and VirtIO SCSI controllers

2017-09-12 Thread Thomas Lamprecht
On 09/12/2017 02:44 PM, Emmanuel Kasper wrote: SCSI is redundant in the VirtIO SCSI controller type. VirtIO blk allows to better understand the different choices in the Combobox and is also the name used by Qemu upstream. --- www/manager6/Utils.js| 4 ++-- www/manager6/form/Bus

Re: [pve-devel] [PATCH manager v2 01/10] Do not change the SCSI controller type when iothread was selected

2017-09-12 Thread Thomas Lamprecht
On 09/12/2017 02:44 PM, Emmanuel Kasper wrote: This was happening without giving the user feedback, and changes a value which should be set somewhere in the Options Panel. So why not giving the user feedback instead? Doesn't the user could get this feedback with the last patch from this series?

Re: [pve-devel] [PATCHES] Add VM.Snapshot.Rollback privilege

2017-09-12 Thread Dietmar Maurer
> On September 12, 2017 at 12:21 PM Matthias Urban > wrote: > > > Just sent the signed CLA to the Proxmox office. I'll later give git > send-mail another try. Do I have to add patch comments again? A short commit message is enough. ___ pve-devel m

Re: [pve-devel] [PATCH manager 1/2] vzdump: handle backup to stdout correctly

2017-09-12 Thread Dietmar Maurer
> - my $logfile = $task->{logfile} = "$opts->{dumpdir}/$basename.log"; > + my $logfile = $task->{logfile} = !$opts->{stdout} ? > "$opts->{dumpdir}/$basename.log" : ''; Why don't we want logs here? > > my $ext = $vmtype eq 'qemu' ? '.vma' : '.tar'; > my ($comp, $comp_ext) =

[pve-devel] [PATCH manager 1/2] vzdump: handle backup to stdout correctly

2017-09-12 Thread Philip Abernethy
Checks for dumpdir or tmpdir backups don't apply to stdout, so we can skip the checks involved in those methods. --- PVE/VZDump.pm | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index 004672d1..e5777ea5 100644 --- a/PVE/VZDump.pm +++ b/PVE

[pve-devel] [PATCH manager 2/2] vzdump: whitespace and style cleanup, typo fix

2017-09-12 Thread Philip Abernethy
Mostly whitespace fixes, a stray semicolon, some style fixes and a grammar correction --- PVE/VZDump.pm | 113 -- 1 file changed, 54 insertions(+), 59 deletions(-) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index e5777ea5..86b8960d 100644 --

Re: [pve-devel] applied: [PATCH] migration : enable mtunnel for insecure migration V2

2017-09-12 Thread Alexandre DERUMIER
>>In the future please put the version tag into the brackets so that >>`git am` doesn't include it as part of the commit message >>("[PATCH v2] message..."), like Thomas already mentioned. ok, sorry. Thanks ! - Mail original - De: "Wolfgang Bumiller" À: "aderumier" Cc: "pve-devel" Envo

[pve-devel] [PATCH manager v2 09/10] Make room in QemuWizard and Edit Window so that the larger combo boxes properly fit

2017-09-12 Thread Emmanuel Kasper
This will benefit the BusTypeSelector, the DiskFormatSelector, the CD FileSelector, and possibily other long fields like vm name, pool name. --- www/manager6/form/ControllerSelector.js | 4 ++-- www/manager6/qemu/CDEdit.js | 3 +++ www/manager6/qemu/CreateWizard.js | 1 + www/ma

[pve-devel] [PATCH manager v2 05/10] Save the components we found via down() in a variable for later reuse.

2017-09-12 Thread Emmanuel Kasper
--- www/manager6/form/ControllerSelector.js | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/www/manager6/form/ControllerSelector.js b/www/manager6/form/ControllerSelector.js index 14ad574e..15023a7a 100644 --- a/www/manager6/form/ControllerSelector.js +++ b/www/m

[pve-devel] [PATCH manager v2 10/10] Propagate the SCSI hw to the Hard Disk panel when selecting an OS

2017-09-12 Thread Emmanuel Kasper
--- www/manager6/qemu/OSTypeEdit.js | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/www/manager6/qemu/OSTypeEdit.js b/www/manager6/qemu/OSTypeEdit.js index 162a92ec..a779ab91 100644 --- a/www/manager6/qemu/OSTypeEdit.js +++ b/www/manager6/qemu/OSTypeEdit.js @@ -22,1

[pve-devel] [PATCH manager v2 07/10] Enhance BusStypeSelector with the SCSI controller description

2017-09-12 Thread Emmanuel Kasper
Since we started in PVE 4.3 to autoselect SCSI for new Linux VMs, it was not clear that this controller actually uses a pv virtio driver, which is confusing for users. See for example: https://forum.proxmox.com/threads/proxmox-hypervisor-scsi-or-virtio.36506/#post-179056 The vm configuration is o

[pve-devel] [PATCH manager v2 08/10] Improve the display names of VirtIO blk and VirtIO SCSI controllers

2017-09-12 Thread Emmanuel Kasper
SCSI is redundant in the VirtIO SCSI controller type. VirtIO blk allows to better understand the different choices in the Combobox and is also the name used by Qemu upstream. --- www/manager6/Utils.js| 4 ++-- www/manager6/form/BusTypeSelector.js | 2 +- 2 files changed, 3 insertio

[pve-devel] [PATCH manager v2 06/10] Use the noVirtIO ControllerSelector property to build the list of controllers

2017-09-12 Thread Emmanuel Kasper
--- www/manager6/form/ControllerSelector.js | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/www/manager6/form/ControllerSelector.js b/www/manager6/form/ControllerSelector.js index 15023a7a..489b97de 100644 --- a/www/manager6/form/ControllerSelector.js +++ b/www/manager6

[pve-devel] [PATCH manager v2 02/10] Move Wizard static properties to class body

2017-09-12 Thread Emmanuel Kasper
This allow those properties to be easily overriden in subclasses in a later step --- www/manager6/window/Wizard.js | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/www/manager6/window/Wizard.js b/www/manager6/window/Wizard.js index 7ae58776..26c3ceaf 100644 ---

[pve-devel] [PATCH manager v2 03/10] Do not use 'autoselect' as a boolean when preselecting a bus

2017-09-12 Thread Emmanuel Kasper
The bus selector is displayed when we add a Hard Disk or CD Drive. When it is displayed, we *always* preselect the next available slot on the controller of our choice. So this test is not needed. We keep the test on the string value of 'autoselect' to select a bus position when adding a CD Drive.

[pve-devel] [PATCH manager v2 04/10] Remove unused noScsi parameter

2017-09-12 Thread Emmanuel Kasper
SCSI is a valid bus for Disks and CD drives, so it should always be appear in the bus list. --- www/manager6/form/BusTypeSelector.js| 6 +- www/manager6/form/ControllerSelector.js | 6 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/www/manager6/form/BusTypeSelector.

[pve-devel] [PATCH manager v2 01/10] Do not change the SCSI controller type when iothread was selected

2017-09-12 Thread Emmanuel Kasper
This was happening without giving the user feedback, and changes a value which should be set somewhere in the Options Panel. --- www/manager6/qemu/CreateWizard.js | 2 +- www/manager6/qemu/HDEdit.js | 4 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/www/manager6/qemu/Cre

[pve-devel] [PATCH manager v2 00/10] Display the SCSI controller type when adding a new drive

2017-09-12 Thread Emmanuel Kasper
changes since v1: * from Dominik hints: * use a fixed hint for bus id selector, so we can flex the controller type on the remaining width * fixe VirtIO typo * from Wolfgang B hints: * make controller type selector non editable * also write 'VirtIO blk' without hyphen in the controlle

Re: [pve-devel] [PATCH qemu-server] Fix misleading error message when qmp fails to report a query-block-jobs

2017-09-12 Thread Emmanuel Kasper
On 09/12/2017 02:30 PM, Wolfgang Bumiller wrote: > On Thu, Sep 07, 2017 at 10:00:07AM +0200, Emmanuel Kasper wrote: >> any feedback on this ? >> cancelling an action because it has been cancelled it not such an >> helpful error message ;) > > Wouldn't this result in: > drive-scsi0: Cancelling blo

[pve-devel] applied: [PATCH firewall] Fix #1492: logger: print timestamps only if we have one

2017-09-12 Thread Wolfgang Bumiller
applied... On Mon, Sep 04, 2017 at 12:43:04PM +0200, Wolfgang Bumiller wrote: > There's no guarantee that there's a timestamp in an skb, so > nflog_get_timestamp can fail. > --- > Alternatively we could leave out the timestamp entirely in this case, > but then the gui won't show any timestamps at

Re: [pve-devel] [PATCH qemu-server] Fix misleading error message when qmp fails to report a query-block-jobs

2017-09-12 Thread Wolfgang Bumiller
On Thu, Sep 07, 2017 at 10:00:07AM +0200, Emmanuel Kasper wrote: > any feedback on this ? > cancelling an action because it has been cancelled it not such an > helpful error message ;) Wouldn't this result in: drive-scsi0: Cancelling block job 2017-07-31 17:51:44 ERROR: online migrate failure - m

[pve-devel] applied: [PATCH] migration : enable mtunnel for insecure migration V2

2017-09-12 Thread Wolfgang Bumiller
thanks, applied In the future please put the version tag into the brackets so that `git am` doesn't include it as part of the commit message ("[PATCH v2] message..."), like Thomas already mentioned. On Tue, Sep 05, 2017 at 11:46:17AM +0200, Alexandre Derumier wrote: > We only use it to send comma

[pve-devel] applied: [PATCH common v3] run_fork_with_timeout: allow returning complex structures

2017-09-12 Thread Wolfgang Bumiller
applied On Tue, Sep 12, 2017 at 01:25:30PM +0200, Thomas Lamprecht wrote: > Encode the result or the error in JSON. This way complex objects or > exceptions may be passed to the parent in a generic way. > > This allows to remove the second pipe 'pipe_err'. > > Allow also to return undef without

[pve-devel] [PATCH common v3] run_fork_with_timeout: allow returning complex structures

2017-09-12 Thread Thomas Lamprecht
Encode the result or the error in JSON. This way complex objects or exceptions may be passed to the parent in a generic way. This allows to remove the second pipe 'pipe_err'. Allow also to return undef without any warnings to our caller. This avoids a "use of uninitialized variable ..." warning

[pve-devel] applied: [PATCH v2 container] config: update for lxc-2.1

2017-09-12 Thread Fabian Grünbichler
___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] applied: [RFC PATCH v2 common] Use double hyphens when prefixing command options in the documentation

2017-09-12 Thread Wolfgang Bumiller
applied On Wed, Sep 06, 2017 at 02:37:33PM +0200, Emmanuel Kasper wrote: > This makes our man pages follow the GNU long option recommandations > where non-single character options are prefixed with a double hyphen > (https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html) > > The

Re: [pve-devel] [PATCHES] Add VM.Snapshot.Rollback privilege

2017-09-12 Thread Matthias Urban
Just sent the signed CLA to the Proxmox office. I'll later give git send-mail another try. Do I have to add patch comments again? On 12.09.2017 08:04, Fabian Grünbichler wrote: On Tue, Sep 12, 2017 at 07:33:23AM +0200, Dietmar Maurer wrote: 2. The VM.Clone privilege alone is not enough to clo

[pve-devel] [PATCH v2 container] config: update for lxc-2.1

2017-09-12 Thread Wolfgang Bumiller
With 2.1 a bunch of keys were renamed for consistency, and network interface configuration is now done with explicit indices. Since we allow various custom "lxc.*" keys in our container configuration we need to deal with this change and we now inform the user about this with a warning. --- Changes

Re: [pve-devel] [PATCH common v2] run_fork_with_timeout: allow returning undef

2017-09-12 Thread Thomas Lamprecht
On 09/12/2017 11:35 AM, Dietmar Maurer wrote: would it be more generic to decode/encode the data as JSON? print encode_json({ res => $res }); ... That way we can also return complex data structures, for example exceptions. eval { $res = $sub->(); print {$pipe_

[pve-devel] applied: [RFC storage] rbd: support auth=none if pveceph-managed

2017-09-12 Thread Wolfgang Bumiller
applied On Mon, Sep 11, 2017 at 12:31:06PM +0200, Fabian Grünbichler wrote: > preserve the old behaviour of selecting auth_supported based on the > existence of the keyring, but limit it to external clusters. > > this allows switching 'auth XXX required' in the pveceph-managed > ceph.conf while s

Re: [pve-devel] [PATCH common v2] run_fork_with_timeout: allow returning undef

2017-09-12 Thread Dietmar Maurer
would it be more generic to decode/encode the data as JSON? print encode_json({ res => $res }); ... That way we can also return complex data structures, for example exceptions. eval { $res = $sub->(); print {$pipe_out} encode_json({ data => $res }); }

Re: [pve-devel] [PATCH V4 pve-common] Extend the JSON format schema with pve_base_snapshot.

2017-09-12 Thread Wolfgang Bumiller
On Tue, Sep 12, 2017 at 08:41:54AM +0200, Wolfgang Link wrote: > A base snapshot can be a replication snapshot or a normal snapshot. > Normal snapshots use the format configid. > --- > src/PVE/JSONSchema.pm | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/src/PVE/JSONSchem

[pve-devel] [PATCH common v2] run_fork_with_timeout: allow returning undef

2017-09-12 Thread Thomas Lamprecht
allow also to return undef without any warnings to our caller. This avoids a "use of unitialised variable ..." warning Add a single char at the start which allows us to differ between returning undef and returning all other values. Signed-off-by: Thomas Lamprecht --- changes v1 -> v2: * method

[pve-devel] applied: [PATCH manager 1/2] Whitespace and typo fix

2017-09-12 Thread Wolfgang Bumiller
applied both patches On Mon, Sep 11, 2017 at 05:42:34PM +0200, Philip Abernethy wrote: > --- > www/manager6/lxc/CreateWizard.js | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/www/manager6/lxc/CreateWizard.js > b/www/manager6/lxc/CreateWizard.js > index 8515877a..

Re: [pve-devel] pve api offline during log rotation

2017-09-12 Thread Stefan Priebe - Profihost AG
Hello, pveproxy has already a reload command - which seems to reopen the logs correctly. Is there any reason why restart is used in the postrotate part of logrotate? Greets, Stefan Am 12.09.2017 um 09:13 schrieb Stefan Priebe - Profihost AG: > Hello, > > we're heavily using the pve api - doing

[pve-devel] pve api offline during log rotation

2017-09-12 Thread Stefan Priebe - Profihost AG
Hello, we're heavily using the pve api - doing a lot of calls every few minutes. Currently the log rotation does a pveproxy restart which makes the API unavailable for a few seconds. This is pretty bad. I see the following solution: - add a special signal like SIGUSR1 to pveproxy and spiceproxy