Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Stefan Sterz
On Wed Apr 3, 2024 at 11:10 AM CEST, Friedrich Weber wrote: > Currently, `Proxmox.window.Edit` initializes `extraRequestParams` to > an object that, if not overwritten, is shared between all instances of > subclasses. This bears the danger of modifying the shared object in a > subclass instead of o

Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Friedrich Weber
On 04/04/2024 10:22, Stefan Sterz wrote: > On Wed Apr 3, 2024 at 11:10 AM CEST, Friedrich Weber wrote: >> Currently, `Proxmox.window.Edit` initializes `extraRequestParams` to >> an object that, if not overwritten, is shared between all instances of >> subclasses. This bears the danger of modifying

Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Stefan Sterz
-- >8 snip 8< -- > > > > i did a quick an dirty test and using a constructor like this seems to > > rule out this class of bug completelly: > > > > ```js > > constructor: function(conf) { > > let me = this; > > me.extraRequestParams = {}; > > me.initConfig(conf); > >

Re: [pve-devel] [PATCH widget-toolkit/proxmox-backup v3 0/9] Fix #3115: VLAN Network Interface Configuration

2024-04-04 Thread Stefan Lendl
Stefan Lendl writes: > This patch series allows configuring a VLAN network interfaces in the PBS GUI > ... I sent the cover letter only to me and not to pve-devel ... will send the entire series again. ___ pve-devel mailing list pve-devel@lists.proxm

Re: [pve-devel] [PATCH manager v15 1/2] add clipboard comboBox to VM Options

2024-04-04 Thread Thomas Lamprecht
subject should be more in the style of: ui: qemu: add clipboard selector to options Am 21/11/2023 um 13:39 schrieb Markus Frank: > For SPICE and VNC, a different message is displayed. > possibly reference the backend work here, > Save config in DisplayEdit so that the clipboard setting persist

Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Friedrich Weber
On 04/04/2024 11:23, Stefan Sterz wrote: > -- >8 snip 8< -- >>> >>> i did a quick an dirty test and using a constructor like this seems to >>> rule out this class of bug completelly: >>> >>> ```js >>> constructor: function(conf) { >>> let me = this; >>> me.extraRequestParams = {

Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Stefan Sterz
On Thu Apr 4, 2024 at 12:10 PM CEST, Friedrich Weber wrote: > On 04/04/2024 11:23, Stefan Sterz wrote: > > -- >8 snip 8< -- > >>> > >>> i did a quick an dirty test and using a constructor like this seems to > >>> rule out this class of bug completelly: > >>> > >>> ```js > >>> constructor: funct

Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Thomas Lamprecht
Am 04/04/2024 um 12:10 schrieb Friedrich Weber: > Maybe we could do: > > ```js > extraRequestParams: {}, > > constructor: function(conf) { > let me = this; > me.extraRequestParams = Ext.clone(me.extraRequestParams); > me.initConfig(conf); > me.callParent(); >

Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Stefan Sterz
On Thu Apr 4, 2024 at 12:54 PM CEST, Stefan Sterz wrote: > On Thu Apr 4, 2024 at 12:10 PM CEST, Friedrich Weber wrote: > > On 04/04/2024 11:23, Stefan Sterz wrote: > > > -- >8 snip 8< -- > > >>> > > >>> i did a quick an dirty test and using a constructor like this seems to > > >>> rule out this cla

Re: [pve-devel] [PATCH widget-toolkit 3/3] window: edit: avoid shared object for extra request params

2024-04-04 Thread Friedrich Weber
On 04/04/2024 12:59, Thomas Lamprecht wrote: > Am 04/04/2024 um 12:10 schrieb Friedrich Weber: >> Maybe we could do: >> >> ```js >> extraRequestParams: {}, >> >> constructor: function(conf) { >> let me = this; >> me.extraRequestParams = Ext.clone(me.extraRequestParams); >>

[pve-devel] applied: [PATCH pve-kernel] revert cifs backport to 6.1 added between 6.5.13-1 and 6.5.13-2

2024-04-04 Thread Thomas Lamprecht
Am 03/04/2024 um 13:46 schrieb Stoiko Ivanov: > copying files within a cifs-share currently result in the following > trace: > ``` > [ 495.388739] BUG: unable to handle page fault for address: fffe > [ 495.388744] #PF: supervisor read access in kernel mode > [ 495.388746] #PF: error_

[pve-devel] applied: [PATCH installer] html: pbs: fix missing in template after feature list

2024-04-04 Thread Thomas Lamprecht
Am 03/04/2024 um 12:45 schrieb Christoph Heiss: > This adds an empty line between the feature list and the "more > information" paragraph, which looks a lot better. > > The exact same is already present in the HTML template for both other > products, probably a simple oversight. > > Signed-off-by

Re: [pve-devel] [PATCH pve-network] fix #5324: non vlanaware zone: add mtu to veth links

2024-04-04 Thread Stefan Hanreich
I've tested this on my machine. It works if the MTU is explicitly set in the zone configuration. If the MTU is set on the bridge to something else than 1500 and the zone configuration has 'auto', then the MTU of all other interfaces and bridges is still set to 1500. Shouldn't we try to get the MTU

Re: [pve-devel] [PATCH v3 pve-network 0/5] SDN: Add mocking to run tests in sbuild

2024-04-04 Thread Stefan Hanreich
Tested building this with sbuild - completed successfully (including tests). I've also checked out the changes and tested them by creating a new EVPN zone and setting a local frr config. Everything still seems to be working as before. Consider this: Tested-By: Stefan Hanreich On 4/2/24 13:07,

[pve-devel] [PATCH installer v4 02/30] common: make InstallZfsOption members public

2024-04-04 Thread Aaron Lauterer
as they will be used directly by the auto installer Signed-off-by: Aaron Lauterer --- proxmox-installer-common/src/setup.rs | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proxmox-installer-common/src/setup.rs b/proxmox-installer-common/src/setup.rs index 03beb77.

[pve-devel] [PATCH installer v4 05/30] common: options: add Deserialize trait

2024-04-04 Thread Aaron Lauterer
For the Enums that will be used to deserialize an answer file. Signed-off-by: Aaron Lauterer --- proxmox-installer-common/src/options.rs | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/proxmox-installer-common/src/options.rs b/proxmox-installer-common/src/optio

[pve-devel] [PATCH installer v4 01/30] tui: common: move InstallConfig struct to common crate

2024-04-04 Thread Aaron Lauterer
It describes the data structure expected by the low-level-installer. We do this so we can use it in more than the TUI installer, for example the planned auto installer. Make the members public so we can easily implement a custom From method for each dependent crate. Signed-off-by: Aaron Lauterer

[pve-devel] [PATCH installer v4 06/30] low-level: add dump-udev command

2024-04-04 Thread Aaron Lauterer
Fetches UDEV device properties prepended with 'E:' for NICs and disks. The result is stored in its own JSON file. This information is needed to filter for specific devices. Mainly for the auto-installer for now. Signed-off-by: Aaron Lauterer --- Proxmox/Makefile| 1 + Proxmox/Sys/U

[pve-devel] [PATCH installer v4 18/30] auto-installer: utils: make get_udev_index functions public

2024-04-04 Thread Aaron Lauterer
because we will need to access them directly in the future from a separate binary Signed-off-by: Aaron Lauterer --- proxmox-auto-installer/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-auto-installer/src/utils.rs b/proxmox-auto-installer/src/utils.

[pve-devel] [PATCH installer v4 20/30] common: add Display trait to ProxmoxProduct

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- proxmox-installer-common/src/setup.rs | 10 ++ 1 file changed, 10 insertions(+) diff --git a/proxmox-installer-common/src/setup.rs b/proxmox-installer-common/src/setup.rs index 8432a2c..25d0e9e 100644 --- a/proxmox-installer-common/src/setup.rs +++ b/pr

[pve-devel] [PATCH installer v4 12/30] auto-installer: add simple logging

2024-04-04 Thread Aaron Lauterer
Log to stdout and the file the binary needs to set up. This is a first variant. By using the log crate macros we can change that in the future without too much effort. Signed-off-by: Aaron Lauterer --- proxmox-auto-installer/Cargo.toml | 2 ++ proxmox-auto-installer/src/lib.rs | 1 + proxmox-

[pve-devel] [PATCH installer v4 17/30] auto-installer: use glob crate for pattern matching

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- proxmox-auto-installer/Cargo.toml | 1 + proxmox-auto-installer/src/utils.rs | 46 +++-- 2 files changed, 18 insertions(+), 29 deletions(-) diff --git a/proxmox-auto-installer/Cargo.toml b/proxmox-auto-installer/Cargo.toml index b1d3e

[pve-devel] [PATCH installer v4 00/30] add automated/unattended installation

2024-04-04 Thread Aaron Lauterer
This patch series adds the possibility to do an automated / unattended installation of Proxmox VE. The overall idea is that we will have a dedicated ISO for the unattended installation. It should be configured in such a way that it will start the installation without any user interaction. Therefor

[pve-devel] [PATCH installer v4 22/30] auto-installer: helper: add subcommand to view indentifiers

2024-04-04 Thread Aaron Lauterer
It will collect the information from the current system and show the payload of identifiers that will be send. To avoid confusion, the subcommands for the device info and filter matching have been renamed. Signed-off-by: Aaron Lauterer --- .../src/bin/proxmox-autoinst-helper.rs| 54

[pve-devel] [PATCH installer v4 14/30] auto-installer: add auto-installer binary

2024-04-04 Thread Aaron Lauterer
It expects the contents of an answer file via stdin. It will then be parsed and the JSON for the low level installer is generated. It then calls the low level installer directly. The output of the installaton progress is kept rather simple for now. If configured in the answer file, commands will

[pve-devel] [PATCH installer v4 28/30] common: add deserializer for FsType

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- proxmox-installer-common/Cargo.toml | 1 + proxmox-installer-common/src/options.rs | 10 ++--- proxmox-installer-common/src/setup.rs | 30 ++--- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/proxmox-installer-commo

[pve-devel] [PATCH installer v4 11/30] auto-installer: add utils

2024-04-04 Thread Aaron Lauterer
contains several utility structs and functions. For example: a simple pattern matcher that matches wildcards at the beginning or end of the filter. It currently uses a dedicated function (parse_answer) to generate the InstallConfig struct instead of a From implementation. This is because for now

[pve-devel] [PATCH installer v4 04/30] common: utils: add deserializer for CidrAddress

2024-04-04 Thread Aaron Lauterer
so it can be deserialized from a string Signed-off-by: Aaron Lauterer --- proxmox-installer-common/src/utils.rs | 11 +++ 1 file changed, 11 insertions(+) diff --git a/proxmox-installer-common/src/utils.rs b/proxmox-installer-common/src/utils.rs index 36b1d53..f6521eb 100644 --- a/prox

[pve-devel] [PATCH installer v4 07/30] add auto-installer crate

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- Cargo.toml| 1 + Makefile | 1 + proxmox-auto-installer/Cargo.toml | 10 ++ proxmox-auto-installer/src/lib.rs | 0 4 files changed, 12 insertions(+) create mode 100644 proxmox-auto-installer/Cargo.toml

[pve-devel] [PATCH installer v4 03/30] common: tui: use BTreeMap for predictable ordering

2024-04-04 Thread Aaron Lauterer
necessary for the disk selection and network interfaces maps to have tests with results that can be compared without much additional effort. Signed-off-by: Aaron Lauterer --- proxmox-installer-common/src/setup.rs | 8 proxmox-tui-installer/src/options.rs | 4 ++-- proxmox-tui-installer

[pve-devel] [PATCH installer v4 08/30] auto-installer: add dependencies

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- proxmox-auto-installer/Cargo.toml | 4 1 file changed, 4 insertions(+) diff --git a/proxmox-auto-installer/Cargo.toml b/proxmox-auto-installer/Cargo.toml index 75cfb2c..67218dd 100644 --- a/proxmox-auto-installer/Cargo.toml +++ b/proxmox-auto-installer/Car

[pve-devel] [PATCH installer v4 10/30] auto-installer: add struct to hold udev info

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- proxmox-auto-installer/src/lib.rs | 1 + proxmox-auto-installer/src/udevinfo.rs | 9 + 2 files changed, 10 insertions(+) create mode 100644 proxmox-auto-installer/src/udevinfo.rs diff --git a/proxmox-auto-installer/src/lib.rs b/proxmox-auto-instal

[pve-devel] [PATCH installer v4 16/30] unconfigured: add proxauto as option to start auto installer

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- unconfigured.sh | 8 1 file changed, 8 insertions(+) diff --git a/unconfigured.sh b/unconfigured.sh index 2b371f0..f02336a 100755 --- a/unconfigured.sh +++ b/unconfigured.sh @@ -5,6 +5,7 @@ trap "err_reboot" ERR # NOTE: we nowadays get exec'd by the in

[pve-devel] [PATCH installer v4 27/30] low-level: write low level config to /tmp

2024-04-04 Thread Aaron Lauterer
This helps to know how the system was set up in steps after the installation. For example in debug mode or when using post commands in the automatic/unattended installation. Signed-off-by: Aaron Lauterer --- proxmox-low-level-installer | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox-

[pve-devel] [PATCH installer v4 09/30] auto-installer: add answer file definition

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- proxmox-auto-installer/Cargo.toml| 1 + proxmox-auto-installer/src/answer.rs | 248 +++ proxmox-auto-installer/src/lib.rs| 1 + 3 files changed, 250 insertions(+) create mode 100644 proxmox-auto-installer/src/answer.rs diff -

[pve-devel] [PATCH installer v4 25/30] control: update build depends for auto installer

2024-04-04 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- debian/control | 10 ++ 1 file changed, 10 insertions(+) diff --git a/debian/control b/debian/control index 3ca208b..1326400 100644 --- a/debian/control +++ b/debian/control @@ -8,10 +8,20 @@ Build-Depends: cargo:native, libgtk3-perl,

[pve-devel] [PATCH installer v4 29/30] common: skip target_hd when deserializing InstallConfig

2024-04-04 Thread Aaron Lauterer
as only the 'path' property is serialized -> deserialization is problematic. The information would be present in the 'run-env-info-json', but for now there is no need for it in any code that deserializes the low-level config. Therefore we are currently skipping it on deserialization If we need it

[pve-devel] [PATCH installer v4 23/30] auto-installer: fetch: add http post utility module

2024-04-04 Thread Aaron Lauterer
It sends a http(s) POST request with the sysinfo as payload and expects an answer file in return. In order to handle non FQDN URLs (e.g. IP addresses) and self signed certificates, it can optionally take an SHA256 fingerprint of the certificate. This can of course also be used to pin a certificate

[pve-devel] [PATCH installer v4 15/30] auto-installer: add fetch answer binary

2024-04-04 Thread Aaron Lauterer
it is supposed to be run first and fetch an answer file. The initial implementation searches for a partition/filesystem called 'proxmoxinst' or 'PROXMOXINST' with an 'answer.toml' file in the root directory. Once it has an answer file, it will call the 'proxmox-auto-installer' and pipe in the con

[pve-devel] [PATCH installer v4 21/30] auto-installer: fetch: add gathering of system identifiers and restructure code

2024-04-04 Thread Aaron Lauterer
They will be used as payload when POSTing a request for an answer file. The idea is, that with this information, it should be possible to identify the system and generate a matching answer file on the fly. Many of these properties can also be found on the machine or packaging of the machine and cou

[pve-devel] [PATCH installer v4 24/30] auto-installer: fetch: add http plugin to fetch answer

2024-04-04 Thread Aaron Lauterer
This plugin will send a HTTP POST request with identifying sysinfo to fetch an answer file. The provided sysinfo can be used to identify the system and generate a matching answer file on demand. The URL to send the request to, can be defined in two ways. Via a custom DHCP option or a TXT record on

[pve-devel] [PATCH installer v4 30/30] add proxmox-chroot utility

2024-04-04 Thread Aaron Lauterer
it is meant as a helper utility to prepare an installation for chroot and clean up afterwards It tries to determine the used FS from the previous installation, will do what is necessary to mount/import the root FS to /target. It then will set up all bind mounts. Signed-off-by: Aaron Lauterer ---

[pve-devel] applied-series: [PATCH v3 pve-network 0/5] SDN: Add mocking to run tests in sbuild

2024-04-04 Thread Thomas Lamprecht
Am 02/04/2024 um 13:07 schrieb Stefan Lendl: > Extract and mock functions that otherwise access system files which is not > possible in a clean sbuild environment. > Namely /etc/network/interfaces as well as /etc/frr/frr.config.local > Added .gitignore for sbuild artifacts > > Changes v2 -> v3: >

[pve-devel] applied: [PATCH proxmox] notify: fix #5274: also set 'X-Gotify-Key' header for authentication

2024-04-04 Thread Thomas Lamprecht
Am 03/04/2024 um 10:08 schrieb Lukas Wagner: > Versions of Gotify < 2.2.0 only supported the 'X-Gotify-Key' header > for passing the API token. This comment sets this header in addition > to the regular 'Authorization' header in order to be compatible with > older Gotify servers. > > Signed-off-by

[pve-devel] [PATCH installer v4 26/30] auto installer: factor out fetch-answer and autoinst-helper

2024-04-04 Thread Aaron Lauterer
Putting proxmox-fetch-answer into it's own crate, will keep the use of OpenSSL localized to where we need it. Otherwise building other binaries will always depend on OpenSSL as well, even without actually needing it. Having a dedicated crate for the proxmox-autoinst-helper should make it easier to

[pve-devel] [PATCH installer v4 19/30] auto-installer: add proxmox-autoinst-helper tool

2024-04-04 Thread Aaron Lauterer
It can parse an answer file to check against syntax errors, test match filters against the current hardware and list properties of the current hardware to match against. Since this tool should be able to run outside of the installer environment, it does not rely on the device information provided

Re: [pve-devel] [PATCH guest-common v2 1/6] guest helpers: add helper to overrule active tasks of a specific type

2024-04-04 Thread Thomas Lamprecht
Am 30/01/2024 um 18:10 schrieb Friedrich Weber: Maybe start of with "Add a helper to abort all tasks from a specific (type, user, vmid) tuple. It will be used ... > This helper is used to abort any active qmshutdown/vzshutdown tasks > before attempting to stop a VM/CT (if requested). > > Signed-o

[pve-devel] applied: [PATCH container v2 2/6] api: status: move config locking from API handler into worker

2024-04-04 Thread Thomas Lamprecht
Am 30/01/2024 um 18:10 schrieb Friedrich Weber: > Previously, container start/stop/shutdown/suspend would try to acquire > the config lock in the API handler prior to forking a worker. If the > lock was currently held elsewhere, this would block the API handler > and thus the pvedaemon worker threa