[pve-devel] [PATCH docs] remove wrongly configured vmbr from bond example

2020-01-09 Thread Dominik Csapak
the vmbr0 used eno1 as bridge_port, but it is already in use by bond0, making the example wrong (as in, it does not work) and confusing since the example is about ip addresses on bonds, remove the vmbr0 Signed-off-by: Dominik Csapak --- pve-network.adoc | 9 - 1 file changed, 9

Re: [pve-devel] [PATCH proxmox-widget-toolkit 0/2] local network config improvements

2020-01-09 Thread Dominik Csapak
or in widget-toolkit that if they are modified, both pve and pmg have to be looked at I'll send patch today great :) - Mail original - De: "Dominik Csapak" À: "pve-devel" Envoyé: Mercredi 8 Janvier 2020 09:59:15 Objet: Re: [pve-devel] [PATCH proxmox-widget-too

Re: [pve-devel] Bug in Promox's OVMF implementation - resolution is garbled on MacOS, unless you reset machine on each boot?

2020-01-08 Thread Dominik Csapak
On 1/8/20 6:55 AM, Victor Hooi wrote: Hi, I have been using Proxmox to run MacOS VMs, as per Nichola's guide here: https://www.nicksherlock.com/2019/10/installing-macos-catalina-10-15-on-proxmox-6/ (and earlier versions). In one of the steps in the guide - you need to go into the OMVF BIOS se

Re: [pve-devel] [PATCH proxmox-widget-toolkit 2/2] networkedit: add mtu field

2020-01-08 Thread Dominik Csapak
comments inline On 1/8/20 4:31 AM, Alexandre Derumier wrote: Signed-off-by: Alexandre Derumier --- node/NetworkEdit.js | 9 + 1 file changed, 9 insertions(+) diff --git a/node/NetworkEdit.js b/node/NetworkEdit.js index ca0011f..eeb612c 100644 --- a/node/NetworkEdit.js +++ b/node/Net

Re: [pve-devel] [PATCH proxmox-widget-toolkit 0/2] local network config improvements

2020-01-08 Thread Dominik Csapak
On 1/8/20 4:31 AM, Alexandre Derumier wrote: Following pve-common serie Alexandre Derumier (2): networkedit: bond: add bond-primary field networkedit: add mtu field node/NetworkEdit.js | 25 + 1 file changed, 25 insertions(+) looks mostly ok, (i'll write an e

[pve-devel] [PATCH manager] fix BandwidthSelector return value

2019-12-16 Thread Dominik Csapak
get an api error that bwlimit expects an integer and not '') Signed-off-by: Dominik Csapak --- www/manager6/form/BandwidthSelector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/manager6/form/BandwidthSelector.js b/www/manager6/form/BandwidthSelector.js i

[pve-devel] [PATCH qemu-server v2 3/3] move vmstate check to check_vm_modify_config_perm

2019-12-09 Thread Dominik Csapak
so that it gets checked before the special case of removing the vmstate Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index e7ed6e9..0c4486b 100644 --- a/PVE/API2/Qemu.pm +++ b

[pve-devel] [PATCH qemu-server v2 1/3] refactor finding of vmstate storage

2019-12-09 Thread Dominik Csapak
we need that on another place, so refactor in its own sub Signed-off-by: Dominik Csapak --- changes from v1: * improved comments PVE/QemuConfig.pm | 18 +++--- PVE/QemuServer.pm | 24 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/PVE

[pve-devel] [PATCH docs v2 1/1] add chapter about hibernation and vmstate storage selection

2019-12-09 Thread Dominik Csapak
and reference it also in the snapshot chapter Signed-off-by: Dominik Csapak --- new in v2 qm.adoc | 26 ++ 1 file changed, 26 insertions(+) diff --git a/qm.adoc b/qm.adoc index b13f0f4..f0d63af 100644 --- a/qm.adoc +++ b/qm.adoc @@ -1193,6 +1193,28 @@ It will be called

[pve-devel] [PATCH manager v2 1/1] ui: make vmstatestorage configureable

2019-12-09 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- new in v2 www/manager6/qemu/Options.js | 21 + 1 file changed, 21 insertions(+) diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js index e6f279c8..da61a6a8 100644 --- a/www/manager6/qemu/Options.js +++ b/www/manager6

[pve-devel] [PATCH qemu-server v2 2/3] suspend to disk: check more permissions

2019-12-09 Thread Dominik Csapak
only VM.PowerMgmt is not enough, since we allocate space on a storage, so we need VM.Config.Disk on the vm and Datastore.AllocateSpace on the storage Signed-off-by: Dominik Csapak --- changes from v1: * move priv check inside if condition in vm_susepnd and note that the caller has to check the

[pve-devel] [PATCH qemu-server/docs/manager v2] improve hibernation vmstate handling

2019-12-09 Thread Dominik Csapak
::QemuServer::vm_suspend the gui patch needs the docs patch as dev dependcy for the onlinehelp section qemu-server: Dominik Csapak (3): refactor finding of vmstate storage suspend to disk: check more permissions move vmstate check to check_vm_modify_config_perm PVE/API2/Qemu.pm | 24

Re: [pve-devel] [PATCH qemu-server 2/3] suspend to disk: check more permissions

2019-12-09 Thread Dominik Csapak
just for the record, here the summary of the offline discussion about this for now we should add the vmstatestorage option to the gui (to allow the user to overwrite the target storage) and as soon as we have the api calls for checking finer grained permissions on paths, we can implmement a stor

[pve-devel] [PATCH qemu-server v2 1/2] cfg2cmd test: add tests for multifunction devices

2019-12-09 Thread Dominik Csapak
by mocking the lspci call the mocked lspci code is basically the same as the real one, only difference is the source of the devices and there is no verbose flag Signed-off-by: Dominik Csapak --- changes from v1: * improved lspci sub (thanks @thomas) .../q35-linux-hostpci-multifunction.conf

[pve-devel] [PATCH qemu-server v2 2/2] hostpci: always check if device exists

2019-12-09 Thread Dominik Csapak
if the device was explicitly given, but did not exists (we showed the commandline, now we fail) this also slightly changes the commandline for qemu (adding always the domain), which is not a problem since we cannot live migrate or snapshot such vms, but we have to adapt the tests Signed-off

Re: [pve-devel] [PATCH qemu-server 1/2] cfg2cmd test: add tests for multifunction devices

2019-12-09 Thread Dominik Csapak
On 12/7/19 12:25 PM, Thomas Lamprecht wrote: On 12/6/19 2:29 PM, Dominik Csapak wrote: by mocking the lspci call the mocked lspci code is basically the same as the real one, only difference is the source of the devices and there is no verbose flag Signed-off-by: Dominik Csapak --- .../q35

Re: [pve-devel] [PATCH storage] calculate reasonable metadatasize for lvm thin pools on creation

2019-12-06 Thread Dominik Csapak
Reviewed-By: Dominik Csapak Tested-By: Dominik Csapak On 12/6/19 2:04 PM, Tim Marx wrote: Signed-off-by: Tim Marx --- PVE/API2/Disks/LVMThin.pm | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Disks/LVMThin.pm b/PVE/API2/Disks/LVMThin.pm

[pve-devel] [PATCH qemu-server 2/2] hostpci: always check if device exists

2019-12-06 Thread Dominik Csapak
device was explicitly given, but did not exists (we showed the commandline, now we fail) this also slightly changes the commandline for qemu (adding always the domain), which is not a problem since we cannot live migrate or snapshot such vms, but we have to adapt the tests Signed-off-by

[pve-devel] [PATCH qemu-server 1/2] cfg2cmd test: add tests for multifunction devices

2019-12-06 Thread Dominik Csapak
by mocking the lspci call the mocked lspci code is basically the same as the real one, only difference is the source of the devices and there is no verbose flag Signed-off-by: Dominik Csapak --- .../q35-linux-hostpci-multifunction.conf | 16 +++ .../q35-linux-hostpci

Re: [pve-devel] [PATCH qemu-server 2/3] suspend to disk: check more permissions

2019-12-06 Thread Dominik Csapak
UX nit: we need to give the user the option to set a vmstatestorage on the GUI now - otherwise this might reliably pick a storage that the user cannot access, while there are other storages where they might be allowed to allocate a vmstate volume but they don't get that choice. -> make vmstat

[pve-devel] [PATCH qemu-server 3/3] move vmstate check to check_vm_modify_config_perm

2019-12-05 Thread Dominik Csapak
so that it gets checked before the special case of removing the vmstate Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 9b25106..d05c91f 100644 --- a/PVE/API2/Qemu.pm +++ b

[pve-devel] [PATCH qemu-server 2/3] suspend to disk: check more permissions

2019-12-05 Thread Dominik Csapak
only VM.PowerMgmt is not enough, since we allocate space on a storage, so we need VM.Config.Disk on the vm and Datastore.AllocateSpace on the storage Signed-off-by: Dominik Csapak --- i am not sure if we need the last hunk (the check inside vm_suspend) at all, since we now always give a

[pve-devel] [PATCH qemu-server 1/3] refactor finding of vmstate storage

2019-12-05 Thread Dominik Csapak
we need that on another place, so refactor in its own sub Signed-off-by: Dominik Csapak --- PVE/QemuConfig.pm | 15 ++- PVE/QemuServer.pm | 23 +++ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm index

[pve-devel] applied: [PATCH manager] ui: add date column for backups in storage content view

2019-12-05 Thread Dominik Csapak
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] applied series: [PATCH manager 1/2] ui: backup restore: use new bandwith limit component

2019-12-05 Thread Dominik Csapak
applied both patches and followed up with a fix for the unit conversion i set backendUnit to 'KiB' and removed the multiplication with 1024 ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH manager 2/5] gui: GuestSummary: choose columns based on container width

2019-12-04 Thread Dominik Csapak
this, there are some weird glitches on resizing with the scrollbar Signed-off-by: Dominik Csapak --- www/manager6/Utils.js | 23 - www/manager6/panel/GuestSummary.js | 53 ++ 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/www

[pve-devel] [PATCH manager 0/5] fix #2498: gui: improve columns logic in summaries

2019-12-04 Thread Dominik Csapak
number of columns than their preference, we add a browser setting to set the number of columns manually to either 'auto', 1,2 or 3 Dominik Csapak (5): gui: refactor {lxc,qemu}/Summary to panel/GuestSummary gui: GuestSummary: choose columns based on container width gui: {dc,nod

[pve-devel] [PATCH manager 5/5] gui: set minWidth for node/guest Summary

2019-12-04 Thread Dominik Csapak
to make sure the panels are always readable Signed-off-by: Dominik Csapak --- www/manager6/node/Summary.js | 1 + www/manager6/panel/GuestSummary.js | 1 + 2 files changed, 2 insertions(+) diff --git a/www/manager6/node/Summary.js b/www/manager6/node/Summary.js index f106d312..ccda0cad

[pve-devel] [PATCH manager 3/5] gui: {dc, node}/Summary: choose columns by panel size

2019-12-04 Thread Dominik Csapak
instead of viewport size, similar to the guest summary Signed-off-by: Dominik Csapak --- www/manager6/dc/Summary.js | 16 +++- www/manager6/node/Summary.js | 20 +--- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/www/manager6/dc/Summary.js b/www

[pve-devel] [PATCH manager 4/5] gui: let users choose the number of columns

2019-12-04 Thread Dominik Csapak
introduce a new browser setting, with which the users can choose between the automatic mode of choosing columns, or always using 1/2/3 columns Signed-off-by: Dominik Csapak --- www/manager6/Utils.js | 11 ++- www/manager6/dc/Summary.js | 7 +++ www/manager6

[pve-devel] [PATCH manager 1/5] gui: refactor {lxc, qemu}/Summary to panel/GuestSummary

2019-12-04 Thread Dominik Csapak
they are both similar enough to have it only once Signed-off-by: Dominik Csapak --- www/manager6/Makefile | 3 +- www/manager6/lxc/Config.js| 2 +- www/manager6/lxc/Summary.js | 139 -- .../Summary.js => pa

[pve-devel] [PATCH qemu-server 1/4] logging vmstate into Resume/Start Task

2019-11-29 Thread Dominik Csapak
so that the user knows what got loaded as vmstate Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 75e4f67..5cf04e6 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -4058,6 +4058,7 @@ sub

[pve-devel] [PATCH qemu-server 2/4] delete suspended lock when we have no vmstate

2019-11-29 Thread Dominik Csapak
if a user removed the vmstate from the config for whatever reason, a vmstart did not remove the 'suspended' lock so always delete it and delete the vmstate only if it really was there Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 8 +--- 1 file changed, 5 insertions(+), 3

[pve-devel] [PATCH qemu-server 4/4] add special case for clearing suspended state

2019-11-29 Thread Dominik Csapak
es with it. The user still has to have the right priviliges and the vm cannot be 'protected' for this to work also, the lock will only be skipped, if the deletion of the vmstate is the only thing that is done Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 15 ++- 1 fil

[pve-devel] [PATCH qemu-server/manager] improve suspend to disk

2019-11-29 Thread Dominik Csapak
this series improves suspend to disk handling for some edge/error cases, and adds the possibility to remove the 'suspended' state without having to resume the vm qemu-server: Dominik Csapak (4): logging vmstate into Resume/Start Task delete suspended lock when we have no vmstate

[pve-devel] [PATCH qemu-server 3/4] implement removal of vmstate via api

2019-11-29 Thread Dominik Csapak
we did not actually delete the state if we deleted the 'vmstate' config, leaving stray vmstates on the disks actually implement the removal, requiring 'VM.Config.Disk' and 'VM.PowerMgmt' privs Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 9 +

[pve-devel] [PATCH manager 1/1] gui: qemu/HardwareView: show vmstate and allow removal

2019-11-29 Thread Dominik Csapak
so that a user can remove the 'suspended' state without resuming it Signed-off-by: Dominik Csapak --- www/manager6/qemu/HardwareView.js | 5 + 1 file changed, 5 insertions(+) diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js index 937842f9..e834a

[pve-devel] [PATCH installer] restrict admin email to same format as the JSONSchema

2019-11-28 Thread Dominik Csapak
has to manually edit the user.cfg or set the email via pveum) i noticed this while testing and using the 'insert emoji' menu in the context menu Signed-off-by: Dominik Csapak --- proxinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxinstall b/proxinstall

[pve-devel] [PATCH manager] gui: Bandwidth limits: increase labelWidth to 120

2019-11-27 Thread Dominik Csapak
in some languages (e.g. German) the default (100) is too short for some labels, resulting in cut-off text. We often use 120 in such cases, so we should do here as well Signed-off-by: Dominik Csapak --- www/manager6/dc/OptionView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www

[pve-devel] [PATCH manager] gui: UserView: show api call errors

2019-11-27 Thread Dominik Csapak
otherwise, an api error leads to an empty UserView, and the user wonders why no users show up Signed-off-by: Dominik Csapak --- www/manager6/dc/UserView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js index 8918fb2b..922d072b

Re: [pve-devel] [PATCH installer 3/3] fix #1211: allow install on 4kn disks

2019-11-26 Thread Dominik Csapak
just a high level comment, since i did not found anything in the commit: i think we should warn/notify the user if he boots in bios mode and installs/tries to install on 4kn disks, since the user will not be able to boot in that case (since we do not install a bootloader?) i'd be very confused i

[pve-devel] [PATCH manager/cluster v2] improve handling of issued certificates

2019-11-26 Thread Dominik Csapak
soon (to avoid noise) * drop the requirement of a PVE issued CA * limit the length of the renewal also by the expiry date of the ca pve-manager: Dominik Csapak (1): renew pve-ssl.pem when it nearly expires PVE/CertHelpers.pm | 6 ++ bin/pveupdate | 32

[pve-devel] [PATCH cluster v2 1/1] change certificate lifetime to two years

2019-11-26 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- changes from v1: * limit by expiry date of ca also data/PVE/Cluster/Setup.pm | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/data/PVE/Cluster/Setup.pm b/data/PVE/Cluster/Setup.pm index 81e3ef8..7b3bc31 100644 --- a/data/PVE

[pve-devel] [PATCH manager v2 1/1] renew pve-ssl.pem when it nearly expires

2019-11-26 Thread Dominik Csapak
but only if the cert is issued by the ca in /etc/pve/pve-root-ca.pem (by checking the issuer and openssl verify) this way we can reduce the lifetime of the certs without having to worry that they ran out Signed-off-by: Dominik Csapak --- changes from v1: * only make checks if the cert expires

Re: [pve-devel] [PATCH manager 1/1] renew pve-ssl.pem when it nearly expires

2019-11-25 Thread Dominik Csapak
+eval { +# get CA and check issuer +my $capath = "/etc/pve/pve-root-ca.pem"; +my $cainfo = PVE::Certificate::get_certificate_info($capath); +if ($cainfo->{subject} !~ m|/CN=Proxmox Virtual Environment/.*/O=PVE Cluster Manager CA|) { + die "Root CA is not issued by Proxmox

Re: [pve-devel] [PATCH qemu-server/container/toolkit/manager v3] fix #1934: add tags to guests

2019-11-25 Thread Dominik Csapak
On 11/20/19 8:10 PM, Thomas Lamprecht wrote: On 10/31/19 1:36 PM, Dominik Csapak wrote: this series lets users add tags to guest configs these do not have any concrete meaning but are intended to be used by management software such as config management systems this is the basic implementation

[pve-devel] [PATCH widget-toolkit 1/2] fix #2421: ComboGrid: correctly validate multiSelect variant

2019-11-25 Thread Dominik Csapak
on multiSelect we have to check the values that is in the values array, but we get the 'displaystring' in the validator so we have to get the 'real' value (aka the underlying array of values) before checking if they are in the store Signed-off-by: Dominik Csapak --- f

[pve-devel] [PATCH widget-toolkit 2/2] ComboGrid: correctly set/mark multiSelect fields

2019-11-25 Thread Dominik Csapak
t set an empty field wrongfully to invalid) Signed-off-by: Dominik Csapak --- form/ComboGrid.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/form/ComboGrid.js b/form/ComboGrid.js index 3cc64f9..0c5cf1b 100644 --- a/form/ComboGrid.js +++ b/form/ComboGrid.js @@ -52,7

[pve-devel] [PATCH qemu-server] fix destroy_vm by using correct Config package

2019-11-14 Thread Dominik Csapak
We are in the QemuServer package not in LXC, so use the correct package for the Config, namely QemuConfig Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 1890448..54c8c88 100644

Re: [pve-devel] Feature: add vm name or ct hostname to backup file name as requested in #438

2019-11-13 Thread Dominik Csapak
On 11/13/19 2:44 PM, Marco Gabriel - inett GmbH wrote: Hi, Hi, long time ago, I requested adding the container hostname or vm name in bugzilla request #438. As I wanted to practice developing features for pve and how to use the git repos, I implemented the feature. I should have asked befo

Re: [pve-devel] [PATCH manager] fix #2462: ACMEAccount: make tos in get_tos optional

2019-11-13 Thread Dominik Csapak
we maybe want to backport this for pve5 also.. (should apply i guess) ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH manager] fix #2462: ACMEAccount: make tos in get_tos optional

2019-11-13 Thread Dominik Csapak
the code returns undef in case there is no 'tos', and the code calling this api call handles a non-existing tos already, but fails in that case becasue of the failing return value verification Signed-off-by: Dominik Csapak --- PVE/API2/ACMEAccount.pm | 1 + 1 file changed, 1 insertio

Re: [pve-devel] [PATCH common 1/1] SysFSTools: do not assume pci domain 0000

2019-11-12 Thread Dominik Csapak
On 11/12/19 2:55 PM, Thomas Lamprecht wrote: On 11/12/19 2:23 PM, Dominik Csapak wrote: but prepend '' to ids where no domain is given, to keep the ability to use the shorthand syntax (e.g. 00:01.0 instead of :00:01.0) Signed-off-by: Dominik Csapak --- src/PVE/SysFSToo

[pve-devel] [PATCH common/qemu-server/manager] fix #2436: do not hardcode pci domain

2019-11-12 Thread Dominik Csapak
t exist in the store...) can we ignore this? if not, i would send a v2 where i try to detect the format we get from the backend and set the value in the selector accordingly (but i am not sure if its worth the effort, since partially upgrading a cluster is not recommended) pve-common: Dominik Csap

[pve-devel] [PATCH common 1/1] SysFSTools: do not assume pci domain 0000

2019-11-12 Thread Dominik Csapak
but prepend '' to ids where no domain is given, to keep the ability to use the shorthand syntax (e.g. 00:01.0 instead of :00:01.0) Signed-off-by: Dominik Csapak --- src/PVE/SysFSTools.pm | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git

[pve-devel] [PATCH qemu-server 1/1] fix #2436: pci: do not hardcode pci domain to 0000

2019-11-12 Thread Dominik Csapak
relax the regex for hostpci to allow different pci domains than Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 1890448..709dcdb 100644 --- a/PVE/QemuServer.pm +++ b

[pve-devel] [PATCH manager 1/1] gui: pci passthrough: consider domain in PCISelector

2019-11-12 Thread Dominik Csapak
but remove the default domain '' before sending to the backend, and add it if no domain is given in the config Signed-off-by: Dominik Csapak --- www/manager6/form/PCISelector.js | 2 +- www/manager6/qemu/PCIEdit.js | 11 +-- 2 files changed, 10 insertions(+), 3

[pve-devel] [PATCH common] fix PVE::Tools::df for big mounts

2019-11-12 Thread Dominik Csapak
formatted numbers Signed-off-by: Dominik Csapak --- src/PVE/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 02c2886..89de4ec 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -1008,7 +1008,7 @@ sub df {

[pve-devel] [PATCH qemu-server] fix #2457: ga: set-user-password: increase maxLength of password

2019-11-11 Thread Dominik Csapak
sha-512 crypted passwords are longer than 64 byte, and also it does not make sense to limit passwords to such a short length. increase to 1024 (should be enough for a while and limits possible attack surface for the api/guest-agent) Signed-off-by: Dominik Csapak --- PVE/API2/Qemu/Agent.pm | 2

Re: [pve-devel] [PATCH manager 1/4] ceph: add perf data cache helpers

2019-11-06 Thread Dominik Csapak
i only partially quoted, since most is already clear yes librados and ceph config is available, but that does not mean the cluster is designed so that all nodes can reach the monitor nodes... e.g.: 5 nodes with node0-node2 ceph nodes, node3 a 'compute' node, and node4 is a node in the same clu

Re: [pve-devel] [PATCH manager 1/4] ceph: add perf data cache helpers

2019-11-06 Thread Dominik Csapak
On 11/6/19 3:49 PM, Thomas Lamprecht wrote: On 11/6/19 8:36 AM, Dominik Csapak wrote: On 11/5/19 6:33 PM, Thomas Lamprecht wrote: On 11/5/19 1:51 PM, Dominik Csapak wrote: +my $entry = { +time => $time, +ops_r => $pgmap->{read_op_per_sec}, +ops_w => $pgmap->{w

Re: [pve-devel] [PATCH manager 1/4] ceph: add perf data cache helpers

2019-11-05 Thread Dominik Csapak
On 11/5/19 6:33 PM, Thomas Lamprecht wrote: On 11/5/19 1:51 PM, Dominik Csapak wrote: add a helper to cache the ceph performance data inside pmxcfs with broadcast_node_kv, and also a helper to read it out merge the data from all nodes that sent performance data the '$perf_cache'

[pve-devel] [PATCH manager 4/4] gui: ceph-dashboard: display cached performance data

2019-11-05 Thread Dominik Csapak
this calls the api once when opening the dashboard, and fills the charts with that cached data, then it continues like previously with its interval Signed-off-by: Dominik Csapak --- www/manager6/ceph/Status.js | 18 ++ 1 file changed, 18 insertions(+) diff --git a/www/manager6

[pve-devel] [PATCH manager 1/4] ceph: add perf data cache helpers

2019-11-05 Thread Dominik Csapak
t only its values, and the reader (pvedaemon) uses it to cache all nodes data Signed-off-by: Dominik Csapak --- merging the data on read seems like a good idea, since we have the data and it should make little sense to throw any way, but i noticed some weird glitches when the pvestat update calls are

[pve-devel] [PATCH manager 2/4] ceph: cache perf data in pvestatd

2019-11-05 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- altough the rados call have a default timeout of 5 seconds, i am not sure if this is too much of a load we could only run that call e.g. every 3rd pvestatd loop, to minimize the load. combined with the merging of the data on the reader side, i guess we would

[pve-devel] [PATCH manager 3/4] ceph: add 'iostat' api call

2019-11-05 Thread Dominik Csapak
this gets the cached ceph performance data back from pmxcfs Signed-off-by: Dominik Csapak --- PVE/API2/Cluster/Ceph.pm | 24 1 file changed, 24 insertions(+) diff --git a/PVE/API2/Cluster/Ceph.pm b/PVE/API2/Cluster/Ceph.pm index fa79d077..31373ef2 100644 --- a/PVE/API2

[pve-devel] [PATCH manager 0/4] cache ceph performance data for the dashboard

2019-11-05 Thread Dominik Csapak
with this patch, we are able to directly fill the charts on the ceph dashboard with cached performance data, instead of always showing empty ones each time we load the dashboard Dominik Csapak (4): ceph: add perf data cache helpers ceph: cache perf data in pvestatd ceph: add 'iostat

Re: [pve-devel] [PATCH manager] add graphite tcp support

2019-11-05 Thread Dominik Csapak
On 11/5/19 1:21 PM, Thomas Lamprecht wrote: On 11/5/19 1:04 PM, Alexandre DERUMIER wrote: Hi, be carefull of timeouts, because it could hang pvestatd. (That's why it was implemented in udp for graphite && influxdb) That's true, as almost always there's a reason why seemingly simple things ar

Re: [pve-devel] [PATCH manager] add graphite tcp support

2019-11-05 Thread Dominik Csapak
Hi, thanks for the patch :) looks good for the most part, but afaics you did not sign our CLA yet, please see our Developer Documentation[0] for that. also it would be nice to extend our documentation for this in the pve-docs git repository[1], in the file 'pve-external-metric-server.adoc'[2], b

[pve-devel] [PATCH qemu-server v3 1/1] add 'tags' option

2019-10-31 Thread Dominik Csapak
this is useful as meta information for e.g., provisioning or config management systems adding the info also to the 'status' api call to make it easier to show it in the gui Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 1 + PVE/QemuServer.pm | 14 +- 2 files c

[pve-devel] [PATCH container v3 1/1] add 'tags' option

2019-10-31 Thread Dominik Csapak
this is useful as meta information for e.g., provisioning or config management systems adding the info also to the 'status' api call to make it easier to show it in the gui Signed-off-by: Dominik Csapak --- thanks @oguz for including this already in the 'fastplug' opti

[pve-devel] [PATCH manager v3 2/4] gui: add tagEditBtn

2019-10-31 Thread Dominik Csapak
which is just the pencil symbol and opens the tageditor Signed-off-by: Dominik Csapak --- www/manager6/Makefile | 1 + www/manager6/button/TagEdit.js | 34 ++ 2 files changed, 35 insertions(+) create mode 100644 www/manager6/button/TagEdit.js diff

[pve-devel] [PATCH widget-toolkit v3 1/1] add tag related helpers

2019-10-31 Thread Dominik Csapak
helpers to * generate a color from a string consistently * generate a html tag for a tag * related css classes Signed-off-by: Dominik Csapak --- Utils.js | 35 ++- css/ext6-pmx.css | 13 + 2 files changed, 47 insertions(+), 1 deletion(-) diff

[pve-devel] [PATCH manager v3 4/4] gui: improve textitem style in qemu/lxc toolbar

2019-10-31 Thread Dominik Csapak
sets the correct line-height and margin, to not look so out of place (it was slighty off-center vertically and had too much space around) the margin has to be set on the item, because extjs sets the position manually and does not look at the css classes... Signed-off-by: Dominik Csapak --- www

[pve-devel] [PATCH qemu-server/container/toolkit/manager v3] fix #1934: add tags to guests

2019-10-31 Thread Dominik Csapak
s api call of guests (for gui) * show the tags in the gui * make the tags editable in the gui qemu-server: Dominik Csapak (1): add 'tags' option PVE/API2/Qemu.pm | 1 + PVE/QemuServer.pm | 14 +- 2 files changed, 14 insertions(+), 1 deletion(-) pve-container: Dominik C

[pve-devel] [PATCH manager v3 1/4] gui: add TagSelector

2019-10-31 Thread Dominik Csapak
api call) Signed-off-by: Dominik Csapak --- www/css/ext6-pve.css | 12 www/manager6/Makefile| 1 + www/manager6/form/TagSelector.js | 117 +++ 3 files changed, 130 insertions(+) create mode 100644 www/manager6/form/TagSelector.js diff

[pve-devel] [PATCH manager v3 3/4] gui: add tags to guest status line

2019-10-31 Thread Dominik Csapak
this way they are always visible when a user has selected a vm Signed-off-by: Dominik Csapak --- www/manager6/lxc/Config.js | 23 --- www/manager6/qemu/Config.js | 24 +--- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/www/manager6/lxc

[pve-devel] [PATCH manager 1/5] gui: qemu/HardwareView: use builtin reload function

2019-10-31 Thread Dominik Csapak
ObjectGrid (an ancestor of PendingObjectGrid) does already have a 'reload' function which does exactly the same, so get rid of the local one here Signed-off-by: Dominik Csapak --- www/manager6/qemu/HardwareView.js | 36 --- 1 file changed, 14 inserti

[pve-devel] [PATCH manager 2/5] gui: lxc/Resources: improve reload behaviour

2019-10-31 Thread Dominik Csapak
reload when a new disk was added, and set the button status on a reload Signed-off-by: Dominik Csapak --- www/manager6/lxc/Resources.js | 5 + 1 file changed, 5 insertions(+) diff --git a/www/manager6/lxc/Resources.js b/www/manager6/lxc/Resources.js index f6358122..1114c051 100644 --- a

[pve-devel] [PATCH manager 4/5] gui: qemu/HDEdit: use propertyStringSet helper

2019-10-31 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- www/manager6/qemu/HDEdit.js | 53 ++--- 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js index 46397d37..c810b4b0 100644 --- a/www/manager6/qemu/HDEdit.js

[pve-devel] [PATCH manager 5/5] gui: lxc/MPEdit: save and use the mountpoint propertyString

2019-10-31 Thread Dominik Csapak
d the mp as 'pending', but without the size Signed-off-by: Dominik Csapak --- www/manager6/lxc/MPEdit.js | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js index c36d26bd..780bef0f 100644 --

[pve-devel] [PATCH manager 3/5] gui: Utils: add propertyString helper

2019-10-31 Thread Dominik Csapak
this helper conditionally sets the given value to the given property on the given object, optionally a different value this is useful for our MP/HD Edit panels, where we set the options of the drive/mp this way for every gui option we have Signed-off-by: Dominik Csapak --- www/manager6

[pve-devel] applied: [PATCH v3 manager] gui: add revert button for lxc pending changes

2019-10-30 Thread Dominik Csapak
applied, thanks :) ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH manager v2 4/5] gui: add tag edit windows for guests

2019-10-30 Thread Dominik Csapak
On 10/30/19 9:30 AM, Thomas Lamprecht wrote: On 10/30/19 9:23 AM, Dominik Csapak wrote: On 10/30/19 8:51 AM, Thomas Lamprecht wrote: On 10/3/19 1:50 PM, Dominik Csapak wrote: so that the user can edit the tags in the gui IMO the options is not really "correct", it's not a

Re: [pve-devel] [PATCH manager v2 4/5] gui: add tag edit windows for guests

2019-10-30 Thread Dominik Csapak
On 10/30/19 8:51 AM, Thomas Lamprecht wrote: On 10/3/19 1:50 PM, Dominik Csapak wrote: so that the user can edit the tags in the gui IMO the options is not really "correct", it's not a guest option at all. Rather this fits to the "Notes" field of the Summary panel, ma

Re: [pve-devel] [PATCH v2 manager] gui: add revert button for lxc pending changes

2019-10-29 Thread Dominik Csapak
looks mostly good to me, after a bit of search i found that the reason for the delayed update is that we/you queried the wrong store the rstore in the context is the 'real store' which triggered the update of the 'diffstore' that showed the changes the sequence was: * api call * update of rstor

[pve-devel] [PATCH widget-toolkit/manager] add apply network config button

2019-10-29 Thread Dominik Csapak
will involve much more work (probably a new api call) for pmg, we do not show this button (atm) proxmox-widget-toolkit: Dominik Csapak (1): NetworkView: add apply config button node/NetworkView.js | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) pve

[pve-devel] [PATCH widget-toolkit 1/1] NetworkView: add apply config button

2019-10-29 Thread Dominik Csapak
ant it for pmg Signed-off-by: Dominik Csapak --- i am not entirely happy with the changed gettext for the reboot, but did not find a better one (suggestions welcome) node/NetworkView.js | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --

[pve-devel] [PATCH manager 1/1] gui: node network: enable apply config button

2019-10-29 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- www/manager6/node/Config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js index 054ced64..91a999e1 100644 --- a/www/manager6/node/Config.js +++ b/www/manager6/node/Config.js @@ -169,6 +169,7

[pve-devel] [PATCH manager/cluster] improve handling of issued certificates

2019-10-28 Thread Dominik Csapak
s Catalina) would reject the certificate with the error: 'REVOKED' since they have now stricter rules for certificates since other os/browsers will probably also make the rules stricter, it makes sense to shorten the time pve-manager: Dominik Csapak (1): renew pve-ssl.pem when it

[pve-devel] [PATCH manager 1/1] renew pve-ssl.pem when it nearly expires

2019-10-28 Thread Dominik Csapak
but only if the ca is ours, and the cert is issued by our ca (by checking the issuer and openssl verify) this way we can reduce the lifetime of the certs without having to worry that they ran out Signed-off-by: Dominik Csapak --- PVE/CertHelpers.pm | 6 ++ bin/pveupdate | 33

[pve-devel] [PATCH cluster 1/1] change certificate lifetime to two years

2019-10-28 Thread Dominik Csapak
instead of 10 years, to avoid issues with browsers/os that reject certificates which have a longer lifetime (e.g. macOs Catalina only accepts max 825 days if issued after july 2019) Signed-off-by: Dominik Csapak --- data/PVE/Cluster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[pve-devel] [PATCH qemu-server] fix #2434: extend machine regex

2019-10-25 Thread Dominik Csapak
any number of version levels, for q35, i440fx and virt (to be more future proof) Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 328a0d1..b635760 100644 --- a/PVE/QemuServer.pm

[pve-devel] [PATCH qemu-server] fix reverting for non-existing configs

2019-10-23 Thread Dominik Csapak
uld do the deletion code and the pending add code (e.g. delete the pending cloud init drive and creating it again) to avoid that situation, we need to remove the option from the pending hash in the 'delete loop' Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 1 + 1 file changed, 1 inse

[pve-devel] [PATCH qemu-server] fix #2390: use fixed order for cloudinits net config

2019-10-22 Thread Dominik Csapak
otherwise, having multiple ipconfigX entries, can lead to different instance-ids on different startups, which is not desired Signed-off-by: Dominik Csapak --- 2 issues i have with this: * we have a cyclic dependency between PVE::QemuServer and PVE::QemuServer::Cloudinit, and this patch

Re: [pve-devel] [PATCH qemu-server] fix #1071: VMs with IOThread enabled disks can now be backed up

2019-10-22 Thread Dominik Csapak
tested a bit, much more testing wouldn't hurt for sure ;) tested it with a few vms with varying amounts of iothreads, in snapshot suspend and stop mode, seems all to work (incl restore) Tested-By: Dominik Csapak ___ pve-devel mailing list pve-

[pve-devel] [PATCH qemu-server v2 2/2] fix #2395: refactor qemu_img_convert to accept files as source

2019-10-17 Thread Dominik Csapak
and use it also for efidisk creation and importdisk this way we correctly handle zfs-over-iscsi options for those cases also write tests for it Signed-off-by: Dominik Csapak --- changes from v1: * changed error messages to something more sensible and include the volid (also adapt the test for

[pve-devel] [PATCH qemu-server v2 1/2] add tests for qemu_img_convert

2019-10-17 Thread Dominik Csapak
Add tests for the qemu_img_convert parameters to the resulting 'qemu-img convert' call we mock the 'run_command' and extract the 'cmd' parameter to compare with what we expect Signed-off-by: Dominik Csapak --- changes from v1: * changed /usr/bin/env perl to /usr/bi

Re: [pve-devel] [PATCH qemu-server 1/2] add tests for qemu_img_convert

2019-10-17 Thread Dominik Csapak
On 10/17/19 9:26 AM, Thomas Lamprecht wrote: On 10/16/19 11:27 AM, Dominik Csapak wrote: storage config is motly copied from the config2command tests some general info about what and *how* you test would be great here. looks OK in general, and thanks for more test, some comments inline

[pve-devel] [PATCH qemu-server 2/2] fix #2395: refactor qemu_img_convert to accept files as source

2019-10-16 Thread Dominik Csapak
and use it also for efidisk creation and importdisk this way we correctly handle zfs-over-iscsi options for those cases also write tests for it Signed-off-by: Dominik Csapak --- makes more sense when viewed with -w, but i think comparing the complete source of qemu_img_convert before and after

<    1   2   3   4   5   6   7   8   9   10   >