Re: [pve-devel] [PATCH qemu-server 1/1] api2: add check_bridge_access for create/update vm

2023-06-05 Thread Fabian Grünbichler
On June 2, 2023 2:12 pm, DERUMIER, Alexandre wrote: > Le vendredi 02 juin 2023 à 13:43 +0200, Fabian Grünbichler a écrit : >> a few more places that come to my mind that might warrant further >> thinking or discussion: >> - restoring a backup > doesn't it also use create_vm ? yes, but the potentia

Re: [pve-devel] [PATCH v2 proxmox-perl-rs 18/42] log: set default log level to 'info', add product specific logging env var

2023-06-05 Thread Wolfgang Bumiller
On Wed, May 24, 2023 at 03:56:25PM +0200, Lukas Wagner wrote: > Logging behaviour can be overridden by the {PMG,PVE}_LOG environment > variable. > > This commit also disables styled output and timestamps in log messages, > since we usually log to the journal anyway. The log output is configured >

Re: [pve-devel] [PATCH manager 1/1] vzdump: prepare 'exclude-path' for array format

2023-06-05 Thread Wolfgang Bumiller
On Fri, May 12, 2023 at 02:23:51PM +0200, Dominik Csapak wrote: > we want to move the 'exclude-path' to an array format (from 'string-alist') > prepare the code that it can be either a string or a list > > Signed-off-by: Dominik Csapak > --- > PVE/VZDump.pm | 21 + > 1 file c

Re: [pve-devel] [PATCH v2 qemu-server 1/1] api2: add check_bridge_access for create/update vm

2023-06-05 Thread Thomas Lamprecht
Am 05/06/2023 um 01:37 schrieb Alexandre Derumier: > test first if user have access to the full zone (any bridge/vlan) > if a tag is defined, test if user have a specific access to the vlan (or > propagate from full bridge acl) > if no tag, test if user have access to full bridge. (if trunks are d

[pve-devel] [PATCH edk2-firmware] add patch to work around older guest kernel bug

2023-06-05 Thread Fiona Ebner
by limiting the phys-bits to 46 instead of 47. On Ubuntu 18.04 with kernel 4.15, using 47 leads to a strange issue where initialization of VirtIO devices would fail. Reported in the community forum: https://forum.proxmox.com/threads/127410/ Signed-off-by: Fiona Ebner --- ...latformInitLib-limit

[pve-devel] applied: little PATCH proxmox-i18n for ja.po (for 3.0.0)

2023-06-05 Thread Thomas Lamprecht
Am 03/06/2023 um 05:41 schrieb ribbon: > little Japanese translation update for 3.0.0 > > --- ja.po 2023-06-03 11:10:29.097009127 +0900 > +++ jan.po2023-06-03 11:10:08.708856465 +0900 applied, thanks! Would be great if you could submit those via git directly: https://pve.proxmox.com/wiki

Re: [pve-devel] [PATCH manager 1/1] vzdump: prepare 'exclude-path' for array format

2023-06-05 Thread Dominik Csapak
On 6/5/23 09:36, Wolfgang Bumiller wrote: On Fri, May 12, 2023 at 02:23:51PM +0200, Dominik Csapak wrote: we want to move the 'exclude-path' to an array format (from 'string-alist') prepare the code that it can be either a string or a list Signed-off-by: Dominik Csapak --- PVE/VZDump.pm | 21

Re: [pve-devel] [PATCH manager 1/1] vzdump: prepare 'exclude-path' for array format

2023-06-05 Thread Wolfgang Bumiller
On Mon, Jun 05, 2023 at 09:54:49AM +0200, Dominik Csapak wrote: > On 6/5/23 09:36, Wolfgang Bumiller wrote: > > On Fri, May 12, 2023 at 02:23:51PM +0200, Dominik Csapak wrote: > > > we want to move the 'exclude-path' to an array format (from > > > 'string-alist') > > > prepare the code that it can

[pve-devel] applied: [PATCH manager 1/1] vzdump: prepare 'exclude-path' for array format

2023-06-05 Thread Wolfgang Bumiller
applied and added a followup commenting the `split_args` on the array case ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] little PATCH proxmox-i18n for ja.po

2023-06-05 Thread ribbon
little Japanese translation update -- --- ja.po 2023-06-03 11:10:29.097009127 +0900 +++ jan.po 2023-06-03 11:10:08.708856465 +0900 @@ -2104,9 +2104,8 @@ msgstr "データDevs" #: pve-manager/www/manager6/ceph/FS.js:159 -#, fuzzy

Re: [pve-devel] [PATCH common 1/3] JSONSchema: add support for array parameter in api calls, cli and config

2023-06-05 Thread Wolfgang Bumiller
On Fri, May 12, 2023 at 02:23:48PM +0200, Dominik Csapak wrote: > only three small things were missing for it to work: > * on the cli, we have to get the option as an array if the type is an array > * the untainting must be done recursively, otherwise, the regex matching > converts an array hash

Re: [pve-devel] [PATCH common 3/3] JSONSchema: disable '-alist' format

2023-06-05 Thread Wolfgang Bumiller
On Fri, May 12, 2023 at 02:23:50PM +0200, Dominik Csapak wrote: > this should not be needed anymore since we can now use a simple array > in the api instead > > Signed-off-by: Dominik Csapak Acked-by: Wolfgang Bumiller ___ pve-devel mailing list pve

Re: [pve-devel] [PATCH guest-common 1/1] vzdump: change 'exclude-path' from alist to an array formaty

2023-06-05 Thread Wolfgang Bumiller
On Fri, May 12, 2023 at 02:23:54PM +0200, Dominik Csapak wrote: > to get rid of the '-alist' format > > Signed-off-by: Dominik Csapak Acked-by: Wolfgang Bumiller ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bi

Re: [pve-devel] [PATCH qemu-server 1/1] api: switch agent api call to 'array' type

2023-06-05 Thread Wolfgang Bumiller
On Fri, May 12, 2023 at 02:23:55PM +0200, Dominik Csapak wrote: > we don't want to use the '-alist' formats anymore in favor of real arrays > > Signed-off-by: Dominik Csapak Acked-by: Wolfgang Bumiller ___ pve-devel mailing list pve-devel@lists.prox

Re: [pve-devel] [PATCH http-server 1/2] proxy request: forward json content type and parameters

2023-06-05 Thread Wolfgang Bumiller
On Fri, May 12, 2023 at 02:23:52PM +0200, Dominik Csapak wrote: > instead of always trying to encode them as x-www-form-urlencoded > > Signed-off-by: Dominik Csapak Acked-by: Wolfgang Bumiller for both patches ___ pve-devel mailing list pve-devel@l

[pve-devel] applied: [PATCH cluster v4 1/1] add cfg files for resource mapping

2023-06-05 Thread Thomas Lamprecht
Am 25/05/2023 um 12:17 schrieb Dominik Csapak: > resource/pci.cfg and > resource/usb.cfg > > to PVE/Cluster.pm > and status.c > > Signed-off-by: Dominik Csapak > --- > src/PVE/Cluster.pm | 2 ++ > src/pmxcfs/status.c | 2 ++ > 2 files changed, 4 insertions(+) > > applied, with finalizing our

[pve-devel] applied: [PATCH v4 storage] deprecate mkdir option for create-base-path and create-subdirs

2023-06-05 Thread Wolfgang Bumiller
applied with a small followup: > > +sub config_aware_base_mkdir { > +my ($class, $scfg, $path) = @_; > + > +# FIXME the mkdir parameter is deprecated and create-base-path should be > used > +my $mkpath = 0; > +if (!defined($scfg->{'create-base-path'}) && !defined($scfg->{mkdir})

Re: [pve-devel] [PATCH v2 qemu-server 1/1] api2: add check_bridge_access for create/update vm

2023-06-05 Thread Fabian Grünbichler
On June 5, 2023 1:37 am, Alexandre Derumier wrote: > test first if user have access to the full zone (any bridge/vlan) > if a tag is defined, test if user have a specific access to the vlan (or > propagate from full bridge acl) > if no tag, test if user have access to full bridge. (if trunks are d

Re: [pve-devel] [PATCH pve-access-control 2/2] rpcenvironnment: add check_sdn_bridge

2023-06-05 Thread Fabian Grünbichler
On June 5, 2023 1:37 am, Alexandre Derumier wrote: > check if user have access to 1 vlan of the bridge > or the bridge itself > > Signed-off-by: Alexandre Derumier > --- > src/PVE/RPCEnvironment.pm | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/src/PVE/RPCEnvironmen

Re: [pve-devel] [PATCH-SERIE pve-access-control/pve-manager/qemu-server] check permissions on local bridge

2023-06-05 Thread Fabian Grünbichler
On June 5, 2023 1:37 am, Alexandre Derumier wrote: > add vnet/localbridge permissions management > > Hi, > as we has discuted some weeks ago, > this patche serie introduce management of acl for vnets && local bridges > > I have reuse current sdn permissions path, to have common paths > > /sdn/vn

Re: [pve-devel] [PATCH proxmox-i18n] en: fix spelling mistake, unkown => unknown

2023-06-05 Thread Thomas Lamprecht
Am 15/05/2023 um 05:56 schrieb Marlin Sööse: > This just fixes a spelling mistake. > Thanks for reporting this and appreciating that you sent a patch already, but the POT files are auto-generated and come directly from the source. So, here one would need to fix that, and those are indicated as c

Re: [pve-devel] [PATCH v3 qemu-server 1/7] migration: only migrate disks used by the guest

2023-06-05 Thread Aaron Lauterer
On 6/2/23 11:50, Fiona Ebner wrote: Am 02.06.23 um 11:45 schrieb Fiona Ebner: Am 01.06.23 um 15:53 schrieb Aaron Lauterer: When scanning all configured storages for disk images belonging to the VM, the migration could easily fail if a storage is not available, but enabled. That storage might

[pve-devel] [PATCH widget-toolkit] apt repositories: add production ready warnings for Ceph repositories

2023-06-05 Thread Fiona Ebner
Could've been done for the test repository already, but now that there is a split between no-subscription and enterprise it becomes even more relevant. Reported-by: Thomas Lamprecht Signed-off-by: Fiona Ebner --- src/node/APTRepositories.js | 48 ++--- 1 file cha

[pve-devel] [PATCH access-control 2/2] acls: restrict less-privileged ACL modifications

2023-06-05 Thread Fabian Grünbichler
there are currently three possibilities to modify ACLs without the 'Permissions.Modify' privilege in PVE::RPCEnvironment::check_perm_modify: if ($path =~ m|^/storage/.+$|) { push @$testperms, 'Datastore.Allocate'; } elsif ($path =~ m|^/vms/.+$|) { push @$testperms, 'VM.Allo

[pve-devel] [PATCH access-control 1/2] roles: restrict Permissions.Modify to Administrator

2023-06-05 Thread Fabian Grünbichler
to reduce the chances of accidentally handing out privilege modification privileges. the old default setup of having Permissions.Modify in PVESysAdmin and PVEAdmin weakened the distinction between those roles and Administrator. Signed-off-by: Fabian Grünbichler --- Notes: this is obviously a

Re: [pve-devel] [PATCH-SERIES v3 qemu-server/manager/common] add and set x86-64-v2 as default model for new vms and detect best cpumodel

2023-06-05 Thread Eneko Lacunza via pve-devel
--- Begin Message --- Hi, I'm sorry I could only test for Ryzen 1700, 2600X and 5950X - our 3700X is offline, pending some upgrades. I hope it will be back again in some days. Tested installation of Debian 11.1.0 ISO with GUI installer upto first boot to GUI login to installed system: El

[pve-devel] [PATCH proxmox] apt: tests: remove output directories before running test

2023-06-05 Thread Fiona Ebner
I blindly assumed that cargo would re-create the TMPDIR before each test run, but that doesn't seem to be the case and the test_digest test now fails the second time when running 'cargo test' twice. So partially revert 9b7c533 ("apt: tests: create temporary test directories in CARGO_TARGET_TMPDIR"

[pve-devel] [PATCH widget-toolkit 1/5] apt repositories: actually ignore ignore-pre-upgrade-warning

2023-06-05 Thread Fiona Ebner
when upgrading is possible rather than throwing an error by reaching the else branch. Signed-off-by: Fiona Ebner --- src/node/APTRepositories.js | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index 1fb627c..cb

[pve-devel] [PATCH-SERIES proxmox-apt/widget-toolkit] prepare for major upgrade

2023-06-05 Thread Fiona Ebner
There's a confusing issue when the suites are already updated, because the UI will not detect any Proxmox VE repository anymore then. This is fixed by the proxmox-apt patch intended for the stable branch. The UI patches make sure the ignore-pre-upgrade-warning is actually ignored and add a check

[pve-devel] [PATCH stable-bullseye widget-toolkit 5/5] apt repositoires: allow major upgrade

2023-06-05 Thread Fiona Ebner
Currently, all this does is silence warnings when the suite after the current one is configured as well as enabling the check for mixed repositiories. Since there is no API call as mentioned in the comment yet, just set it manually. Signed-off-by: Fiona Ebner --- Intended only for the stable br

[pve-devel] [PATCH widget-toolkit 4/5] apt repositories: detect mixed suites before major upgrade

2023-06-05 Thread Fiona Ebner
Usually, differing suites already produce warnings/errors, but before a major upgrade the current and the next suite are both valid. Mixing them is an issue though. Signed-off-by: Fiona Ebner --- src/node/APTRepositories.js | 35 +-- 1 file changed, 33 insertions(

[pve-devel] [PATCH/RFC widget-toolkit 2/5] apt repositories: just ignore unknown info rather than throwing an error

2023-06-05 Thread Fiona Ebner
This will avoid breaking older UI when extending the backend. Signed-off-by: Fiona Ebner --- src/node/APTRepositories.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index cb08bb6..ed58e5b 100644 --- a/src/node/APTRepositories.js

[pve-devel] [PATCH stable proxmox-apt 1/1] repositories: also detect repository with next suite as configured

2023-06-05 Thread Fiona Ebner
This avoids that no standard Proxmox repository can be detected during upgrade anymore. There is a 'ignore-pre-upgrade-warning' about the suite already, that the frontend can display when upgrading is not allowed yet. Signed-off-by: Fiona Ebner --- It's not ideal, for the time between when the u

[pve-devel] [PATCH widget-toolkit 3/5] apt repositories: add classifyOrigin helper

2023-06-05 Thread Fiona Ebner
to be used again to detect mixed repositories before upgrade. Needed to convert into an actual function for the 'this' usage. Signed-off-by: Fiona Ebner --- src/node/APTRepositories.js | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/node/APTRepositories

Re: [pve-devel] [PATCH/RFC widget-toolkit 2/5] apt repositories: just ignore unknown info rather than throwing an error

2023-06-05 Thread Thomas Lamprecht
Am 05/06/2023 um 17:43 schrieb Fiona Ebner: > This will avoid breaking older UI when extending the backend. > > Signed-off-by: Fiona Ebner > --- > src/node/APTRepositories.js | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js > in

[pve-devel] applied: [PATCH] pve7to8: ceph version check: ignore commit hash

2023-06-05 Thread Thomas Lamprecht
Am 02/06/2023 um 18:04 schrieb Aaron Lauterer: > The commit hash of the Ceph version might be different between major > releases. For example: > ceph version 17.2.6 (810db68029296377607028a6c6da1ec06f5a2b27) quincy (stable) > ceph version 17.2.6 (995dec2cdae920da21db2d455e55efbc339bde24) quincy (st

Re: [pve-devel] [PATCH v2 qemu-server 1/1] api2: add check_bridge_access for create/update vm

2023-06-05 Thread DERUMIER, Alexandre
> >   > > +my $check_bridge_access = sub { > > +    my ($rpcenv, $authuser, $param) = @_; > > + > > +    return 1 if $authuser eq 'root@pam'; > > + > > +    foreach my $opt (keys %{$param}) { > > +   next if $opt !~ m/^net\d+$/; > > +   my $net = PVE::QemuServer::parse_net($param->{$opt});

Re: [pve-devel] [PATCH qemu-server 1/1] api2: add check_bridge_access for create/update vm

2023-06-05 Thread DERUMIER, Alexandre
> > same as above - if we treat "volume on storage" and "nic in vnet" as > being equivalent, then cloning would also need to check whether I am > allowed to add new nics to a vnet via cloning (like we do for > volumes, > even without a storage override set!). $check_storage_access_clone is > the c

Re: [pve-devel] [PATCH-SERIE pve-access-control/pve-manager/qemu-server] check permissions on local bridge

2023-06-05 Thread DERUMIER, Alexandre
Le lundi 05 juin 2023 à 12:13 +0200, Fabian Grünbichler a écrit : > On June 5, 2023 1:37 am, Alexandre Derumier wrote: > > add vnet/localbridge permissions management > > > > Hi, > > as we has discuted some weeks ago, > > this patche serie introduce management of acl for vnets && local > > bridges

Re: [pve-devel] [PATCH/RFC widget-toolkit 2/5] apt repositories: just ignore unknown info rather than throwing an error

2023-06-05 Thread Fiona Ebner
Am 05.06.23 um 19:06 schrieb Thomas Lamprecht: > Am 05/06/2023 um 17:43 schrieb Fiona Ebner: >> This will avoid breaking older UI when extending the backend. >> >> Signed-off-by: Fiona Ebner >> --- >> src/node/APTRepositories.js | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/src/nod

Re: [pve-devel] [PATCH-SERIES manager] backup permission improvements

2023-06-05 Thread Fiona Ebner
Am 05.04.23 um 09:43 schrieb Fiona Ebner: > Am 16.11.22 um 15:04 schrieb Fiona Ebner: >> Currently, suffenciently privileged users may edit a backup job, but >> cannot run the very same job manually (via the vzdump API call). The >> first patch addresses this by removing the root-only restriction f

Re: [pve-devel] [PATCH-SERIES qemu-server] adapt to QEMU 8.0 removed and deprecated features

2023-06-05 Thread Fiona Ebner
Am 03.04.23 um 14:09 schrieb Fiona Ebner: > Fiona Ebner (4): > cfg2cmd: use actual backend names instead of removed tty and paraport > aliases > cfg2cmd: replace deprecated no-acpi option with acpi=off machine flag > cfg2cmd: replace deprecated no-hpet option with hpet=off machine flag >

Re: [pve-devel] [PATCH-SERIES guest-common/container/qemu-server/ha-manager] make HA manager not depend on internal configuration details

2023-06-05 Thread Fiona Ebner
Am 28.02.23 um 11:54 schrieb Fiona Ebner: > by introducing a get_derived_property() method for the configuration > plugins. The derived properties are calculated by the plugins and will > stay the same regardless of changes to the configuration structure. > For example, this will allow turning Qemu

Re: [pve-devel] [PATCH-SERIE pve-access-control/pve-manager/qemu-server] check permissions on local bridge

2023-06-05 Thread DERUMIER, Alexandre
Le mardi 06 juin 2023 à 05:32 +, DERUMIER, Alexandre a écrit : > > to have at least the local bridge ACL path (for the zone, or for > > the > > zone and the bridges?) in the regular ACL selectors in 7.x as well, > > if > > we pull in something in pve-manager, than IMHO it should be that, > > no