Re: [pve-devel] [PATCH manager] fix #3440: influxdb: remove duplicate vmid tag

2021-05-26 Thread Fabian Ebner
Am 25.05.21 um 15:27 schrieb Lorenz Stechauner: remove vmid from data part, it is already contained in object part. Signed-off-by: Lorenz Stechauner --- Tested with local udp listener. works as expected. PVE/Status/InfluxDB.pm | 4 1 file changed, 4 insertions(+) diff --git a/PVE/Stat

Re: [pve-devel] [PATCH container] setup: make randomize_crontab a state subroutine

2021-05-26 Thread Oguz Bektas
On Tue, May 25, 2021 at 03:26:12PM +0200, Thomas Lamprecht wrote: > On 25.05.21 15:15, Oguz Bektas wrote: > > for consistency in post_create_hook. still works as expected > > > > what's the reason/benefit again? it looked a bit ugly otherwise with all the other ones being state subs, so it's jus

[pve-devel] [PATCH widget-toolkit 00/11] fixes/preparation for extjs7.0

2021-05-26 Thread Dominik Csapak
this series contains preparations/fixes/changes for extjs 7.0 1/11 ("data/ProxmoxProxy: set responseType to undefined for XMLHTTPRequest") - 5/11 ("panel/RRDChart: fix legend/undoZoom") are backwards compatible and should also work for extjs 6.0.1 patches from 6/11 will only work with extjs 7.0.0

[pve-devel] [PATCH widget-toolkit 04/11] css: add css changes for treelist

2021-05-26 Thread Dominik Csapak
add a new class 'x-treelist-pve-nav' so that we can use ui: 'pve-nav' instead of ui: 'nav' which has some default styling we do not want also overwrite the font to FontAwesome (extjs 7.0 uses 'FontAwesome 5 Free' which we do not ship) Signed-off-by: Dominik Csapak --- src/css/ext6-pmx.css | 10

Re: [pve-devel] [PATCH v2 qemu-server 2/5] vmstatus: make template property optional

2021-05-26 Thread Fabian Ebner
Am 15.03.21 um 14:00 schrieb Thomas Lamprecht: On 11.03.21 11:26, Fabian Ebner wrote: to avoid printing 'template: ' with 'qm status --verbose' if it's false. Signed-off-by: Fabian Ebner --- Breaks pve-manager without the previous patch! (e.g. guest's Start/Shutdown buttons won't be updated

[pve-devel] [PATCH widget-toolkit 09/11] Toolkit: remove pie chart fix

2021-05-26 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- src/Toolkit.js | 40 1 file changed, 40 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.js index ba06a33..b38e504 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -184,46 +184,6 @@ Ext.apply(Ext.form.field.VType

[pve-devel] [PATCH widget-toolkit 02/11] Toolkit: set download url for draw containers to '-'

2021-05-26 Thread Dominik Csapak
so that there can be no privacy leak, since the default points to senchas server Signed-off-by: Dominik Csapak --- src/Toolkit.js | 3 +++ src/panel/GaugeWidget.js | 2 ++ src/panel/RRDChart.js| 3 +++ 3 files changed, 8 insertions(+) diff --git a/src/Toolkit.js b/src/Toolkit.js i

[pve-devel] [PATCH widget-toolkit 01/11] data/ProxmoxProxy: set responseType to undefined for XMLHTTPRequest

2021-05-26 Thread Dominik Csapak
extjs 7.0 gives the responseType to the XMLHTTPRequest (which is 'json' for a json reader), but that means that the response is automatically decoded by the browser, with no means to get the original return back in our case, for successful api calls it would work, but some of our errors are plain

[pve-devel] [PATCH widget-toolkit 10/11] Toolkit: remove textarea fix

2021-05-26 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- src/Toolkit.js | 14 -- 1 file changed, 14 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.js index b38e504..30dffc2 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -223,20 +223,6 @@ Ext.define('Proxmox.UnderlayPool', { }, }); -//

[pve-devel] [PATCH widget-toolkit 11/11] Toolkit: remove Datepicker fix

2021-05-26 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- src/Toolkit.js | 7 --- 1 file changed, 7 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.js index 30dffc2..6f1aee9 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -393,13 +393,6 @@ Ext.define(null, { }, }); -// should be fixed with ExtJS

[pve-devel] [PATCH widget-toolkit 03/11] Toolkit: set clearPropertiesOnDestroy to false by default

2021-05-26 Thread Dominik Csapak
instead of the upstream default of 'async' we do this since it creates some problems with our callbacks which can happen during component destruction. The upstream reasoning does not really makes sense for us normally, since we do not keep any references around for most things, and thus the garbag

[pve-devel] [PATCH widget-toolkit 06/11] Toolkit: update overrides for scroll fixes

2021-05-26 Thread Dominik Csapak
while some scrolling issues where fixed since 6.0.1, some where introduced, namely: * for firefox, the correct event to listen to is 'wheel' not 'mousewheel' * the spinner scroll direction was incorrect * the boxOverflow scroll direction was incorrect * the boxOverflow scroll amount was too high f

[pve-devel] [PATCH widget-toolkit 07/11] Toolkit: update focusJump override

2021-05-26 Thread Dominik Csapak
upstream code changed a bit, update to current version Signed-off-by: Dominik Csapak --- src/Toolkit.js | 121 ++--- 1 file changed, 84 insertions(+), 37 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.js index 517f1a1..b85cd32 100644 --- a/src

[pve-devel] [PATCH widget-toolkit 05/11] panel/RRDChart: fix legend/undoZoom

2021-05-26 Thread Dominik Csapak
the legend is by default of type 'sprite', rever to 'dom' but we now have to unset the '.legend', else on destruction extjs tries to destroy it twice also change the onAfterAnimation listener to 'redraw', since the original event does not exist anymore, add a buffer to it so that it is not that he

[pve-devel] [PATCH widget-toolkit 08/11] Toolkit: remove firefox touchscreen override

2021-05-26 Thread Dominik Csapak
seems to be fixed, at least i could not reproduce here. If users report this again, we can still revert it if necessary. Signed-off-by: Dominik Csapak --- src/Toolkit.js | 43 --- 1 file changed, 43 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.j

[pve-devel] [PATCH manager 4/6] ui: panel/ConfigPanel: return early on no selection

2021-05-26 Thread Dominik Csapak
treelist technically allows deselection and this happens on destruction in extjs 7.0 so simply return early to avoid errors accessing components that do not exist anymore Signed-off-by: Dominik Csapak --- www/manager6/panel/ConfigPanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ww

[pve-devel] [PATCH manager 0/6] fixes/preparation extjs 7.0

2021-05-26 Thread Dominik Csapak
this series contains pve fixes/changes fror extjs7.0 all of these patches should be backwards compatible with 6.0.1 i tried to test every panel/button with extjs 7.0, but i am sure i forgot one or the other ;) Dominik Csapak (6): ui: form/VMCPUFlagSelector: mark radio-buttons as 'not form fiel

[pve-devel] [PATCH manager 5/6] ui: tree/SnapshotTree: use beforedestroy instead of destroy

2021-05-26 Thread Dominik Csapak
on extjs 7.0, this triggers when the handler is not available anymore, so use the beforedestroy event instead Signed-off-by: Dominik Csapak --- www/manager6/tree/SnapshotTree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/tree/SnapshotTree.js b/www/manager6/

[pve-devel] [PATCH manager 1/6] ui: form/VMCPUFlagSelector: mark radio-buttons as 'not form fields'

2021-05-26 Thread Dominik Csapak
else they might get picked up individually Signed-off-by: Dominik Csapak --- www/manager6/form/VMCPUFlagSelector.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/manager6/form/VMCPUFlagSelector.js b/www/manager6/form/VMCPUFlagSelector.js index 81874a42..ace3c531 100644 --- a/www/ma

[pve-devel] [PATCH manager 3/6] ui: panel/ConfigPanel: change ui class to pve-nav

2021-05-26 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- www/css/ext6-pve.css | 2 +- www/manager6/panel/ConfigPanel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css index acf39c8c..0bad29ad 100644 --- a/www/css/ext6-pve.css +++ b/www/css

[pve-devel] [PATCH manager 2/6] ui: ResourceGrid: move first update to afterrender

2021-05-26 Thread Dominik Csapak
else with extjs 7.0, the first render does not happen yet, because the grid is not visible at that time Signed-off-by: Dominik Csapak --- www/manager6/grid/ResourceGrid.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/manager6/grid/ResourceGrid.js b/www/manager6/gri

[pve-devel] [PATCH manager 6/6] ui: form/CalendarEvent: remove displayField from config

2021-05-26 Thread Dominik Csapak
in extjs 7.0, setting the displayField overwrites the displayTpl, which we use here Signed-off-by: Dominik Csapak --- www/manager6/form/CalendarEvent.js | 1 - 1 file changed, 1 deletion(-) diff --git a/www/manager6/form/CalendarEvent.js b/www/manager6/form/CalendarEvent.js index 8072eaaa..009

Re: [pve-devel] [PATCH container] setup: make randomize_crontab a state subroutine

2021-05-26 Thread Thomas Lamprecht
On 26.05.21 10:48, Oguz Bektas wrote: > On Tue, May 25, 2021 at 03:26:12PM +0200, Thomas Lamprecht wrote: >> On 25.05.21 15:15, Oguz Bektas wrote: >>> for consistency in post_create_hook. still works as expected >>> >> >> what's the reason/benefit again? > > it looked a bit ugly otherwise with all

[pve-devel] [PATCH v2 manager] fix #3440: influxdb: remove duplicate vmid tag

2021-05-26 Thread Lorenz Stechauner
remove vmid from data part, it is already contained in object part. this is accomplished by adding the parameter $excluded to build_influxdb_payload(). Signed-off-by: Lorenz Stechauner --- changes to v1: - not using `delete` anymore - added parameter `excluded` to build_influxdb_payload() PVE/S

Re: [pve-devel] [PATCH container] fix #3443: setup: clear /etc/machine-id in post-create hook

2021-05-26 Thread Oguz Bektas
hi, thanks for checking On Tue, May 25, 2021 at 03:45:53PM +0200, Thomas Lamprecht wrote: > On 25.05.21 15:17, Oguz Bektas wrote: > > this way when new containers are created the will have a unique > > /etc/machine-id > > > > why the dbus then? systemd talks explicitly only about /etc/machine-i

Re: [pve-devel] [PATCH container] fix #3443: setup: clear /etc/machine-id in post-create hook

2021-05-26 Thread Oguz Bektas
On Wed, May 26, 2021 at 11:40:23AM +0200, Oguz Bektas wrote: > hi, > > thanks for checking > > On Tue, May 25, 2021 at 03:45:53PM +0200, Thomas Lamprecht wrote: > > On 25.05.21 15:17, Oguz Bektas wrote: > > > this way when new containers are created the will have a unique > > > /etc/machine-id >

Re: [pve-devel] [PATCH container] fix #3443: setup: clear /etc/machine-id in post-create hook

2021-05-26 Thread Thomas Lamprecht
On 26.05.21 11:40, Oguz Bektas wrote: > so without removing the dbus file we don't get a unique machine-id on > container > creation, since the templates seem to have a hardcoded id in the dbus path by > default. we can also remove that but then we will have to make sure to do that > for all the r

Re: [pve-devel] [PATCH container] fix #3443: setup: clear /etc/machine-id in post-create hook

2021-05-26 Thread Oguz Bektas
On Wed, May 26, 2021 at 12:00:13PM +0200, Thomas Lamprecht wrote: > On 26.05.21 11:40, Oguz Bektas wrote: > > so without removing the dbus file we don't get a unique machine-id on > > container > > creation, since the templates seem to have a hardcoded id in the dbus path > > by > > default. we c

Re: [pve-devel] [PATCH container] fix #3443: setup: clear /etc/machine-id in post-create hook

2021-05-26 Thread Thomas Lamprecht
On 26.05.21 12:03, Oguz Bektas wrote: > On Wed, May 26, 2021 at 12:00:13PM +0200, Thomas Lamprecht wrote: >> On 26.05.21 11:40, Oguz Bektas wrote: >>> so without removing the dbus file we don't get a unique machine-id on >>> container >>> creation, since the templates seem to have a hardcoded id i

[pve-devel] [PATCH v2 container 2/2] clear /etc/machine-id also after container clone

2021-05-26 Thread Oguz Bektas
pass $clone=1 to avoid removing the file. instead we truncate it to an empty file Signed-off-by: Oguz Bektas --- src/PVE/API2/LXC.pm | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index a9ea3a6..413f466 100644 --

[pve-devel] SPAM: [PATCH v2 container 0/2] fix #3443: unique machine-id for containers

2021-05-26 Thread Oguz Bektas
v1 -> v2: * remove crontab change * detect if container is using systemd * handle clones (truncate) Oguz Bektas (2): setup: clear /etc/machine-id for newly created containers clear machine-id also after container clone src/PVE/API2/LXC.pm | 19 ++- src/PVE/LXC/Setup.pm

[pve-devel] [PATCH container 1/2] setup: clear /etc/machine-id for newly created containers

2021-05-26 Thread Oguz Bektas
this way when new containers are created they will have a unique /etc/machine-id Signed-off-by: Oguz Bektas --- v1->v2: * incorporated thomas' suggestions src/PVE/LXC/Setup.pm | 10 ++ src/PVE/LXC/Setup/Base.pm | 25 + 2 files changed, 35 insertions(+) dif

[pve-devel] [PATCH qemu-server] api: clone: sort vm disks to keep numbers consistent

2021-05-26 Thread Lorenz Stechauner
reported by user in forum: https://forum.proxmox.com/threads/problem-when-copying-template-with-2-discs.89851/ Signed-off-by: Lorenz Stechauner --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c56b609..24dba86 1006

[pve-devel] [PATCH firewall] set sysctls on every apply

2021-05-26 Thread Stoiko Ivanov
setting the sysctls needed on every run should not be too costly (the original implementation used a `system` invocation, which was far more expensive), and reduce the chances for side-effects. Signed-off-by: Stoiko Ivanov --- tested quickly on a test-installation of mine src/PVE/Firewall.pm |

[pve-devel] applied: [PATCH firewall] set sysctls on every apply

2021-05-26 Thread Thomas Lamprecht
On 26.05.21 16:51, Stoiko Ivanov wrote: > setting the sysctls needed on every run should not be too costly > (the original implementation used a `system` invocation, which was > far more expensive), and reduce the chances for side-effects. > > Signed-off-by: Stoiko Ivanov > --- > tested quickly o

[pve-devel] applied: [PATCH qemu-server] api: clone: sort vm disks to keep numbers consistent

2021-05-26 Thread Thomas Lamprecht
On 26.05.21 16:19, Lorenz Stechauner wrote: > reported by user in forum: > https://forum.proxmox.com/threads/problem-when-copying-template-with-2-discs.89851/ > > Signed-off-by: Lorenz Stechauner > --- > PVE/API2/Qemu.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > applied, than

[pve-devel] [PATCH proxmox-i18n] update fr translation

2021-05-26 Thread Alexandre Derumier
--- fr.po | 925 +- 1 file changed, 333 insertions(+), 592 deletions(-) diff --git a/fr.po b/fr.po index 157522e..1e45503 100644 --- a/fr.po +++ b/fr.po @@ -25,13 +25,12 @@ msgstr "" "X-Poedit-SearchPath-1: ../www/manager\n" #: pve-manag

[pve-devel] [PATCH v3 pve-container 1/1] add ipam support

2021-05-26 Thread Alexandre Derumier
This add ipam support for nic using sdn vnets. - if ips are specified manally, we verify that subnet exist on vnet, and we register ip in ipam - if nic is on a vnet, but no ip is specified, we auto find the next available ips in this vnet subnet - if a gateway is defined on the subnet, we overri

[pve-devel] applied: [PATCH v2 manager] fix #3440: influxdb: remove duplicate vmid tag

2021-05-26 Thread Thomas Lamprecht
On 26.05.21 11:25, Lorenz Stechauner wrote: > remove vmid from data part, it is already contained in object part. > this is accomplished by adding the parameter $excluded to > build_influxdb_payload(). > > Signed-off-by: Lorenz Stechauner > --- > changes to v1: > - not using `delete` anymore > -

[pve-devel] applied: [PATCH v2 qemu-server 2/5] vmstatus: make template property optional

2021-05-26 Thread Thomas Lamprecht
On 11.03.21 11:26, Fabian Ebner wrote: > to avoid printing 'template: ' with 'qm status --verbose' if it's false. > > Signed-off-by: Fabian Ebner > --- > > Breaks pve-manager without the previous patch! (e.g. guest's Start/Shutdown > buttons won't be updated anymore) > > Changes from v1: >

[pve-devel] applied: [PATCH v2 container 3/5] vmstatus: make template property optional

2021-05-26 Thread Thomas Lamprecht
On 11.03.21 11:26, Fabian Ebner wrote: > to avoid printing 'template: ' with 'pct status --verbose' if it's false. > > Signed-off-by: Fabian Ebner > --- > > Breaks pve-manager without the first patch! (e.g. guest's Start/Shutdown > buttons won't be updated anymore) > > Changes from v1: > *

[pve-devel] RE : RE : RE : pve-devel Digest, Vol 132, Issue 53

2021-05-26 Thread wb
Hello Thomas, Thanks for all these clarifications, I was able to move forward and put a V0. https://github.com/jbsky/proxmox-saml2-auth/commit/75c9f089170aacf02370ab86bfa8c75fe0c76a6a.diff Instead of creating a POST /access/saml endpoint, I finally reused the POST /access/ticket (thanks for you

Re: [pve-devel] [PATCH v2 container 2/2] clear /etc/machine-id also after container clone

2021-05-26 Thread Fabian Grünbichler
On May 26, 2021 4:18 pm, Oguz Bektas wrote: > pass $clone=1 to avoid removing the file. instead we truncate it to an > empty file > > Signed-off-by: Oguz Bektas > --- > > src/PVE/API2/LXC.pm | 19 ++- > 1 file changed, 18 insertions(+), 1 deletion(-) > > diff --git a/src/PVE/AP