[pve-devel] [PATCH manager 2/3] lxc: create: add checkbox for creating HA resource upon CT creation

2025-10-06 Thread Michael Köppl
The new checkbox allows users to create a HA resource for the CT right away. The 'state' of the HA resource will match the value of the "Start after creation" checkbox. Signed-off-by: Michael Köppl --- www/manager6/lxc/CreateWizard.js | 17 ++--- 1 file changed,

[pve-devel] [PATCH manager 3/3] ui: restore: add checkbox for adding HA resource upon restore of guest

2025-10-06 Thread Michael Köppl
Matching the checkbox in the CreateWizard dialogs for VMs and CTs, add the option to create a HA resource when restoring a guest. Signed-off-by: Michael Köppl --- www/manager6/window/Restore.js | 12 1 file changed, 12 insertions(+) diff --git a/www/manager6/window/Restore.js b

Re: [pve-devel] [PATCH FOLLOW-UP manager/widget-toolkit 0/2] replace SafeDestroy

2025-10-02 Thread Michael Köppl
On Tue Sep 30, 2025 at 12:00 PM CEST, Thomas Lamprecht wrote: > Am 24.09.25 um 18:17 schrieb Michael Köppl: >> The ConfirmRemoveDialog window covers the SafeDestroy window's >> functionality, but makes it more general-purpose/flexible. It can be >> used for both ye

Re: [pve-devel] superseded: [PATCH container/docs/ha-manager/manager/proxmox-widget-toolkit/qemu-server v2 0/8] fix #6613: update HA rules upon resource deletion

2025-10-02 Thread Michael Köppl
Superseded-by: https://lore.proxmox.com/pve-devel/20250930145848.263162-1-m.koe...@proxmox.com/ On 9/24/25 6:07 PM, Michael Köppl wrote: > This patch series aims to fix #6613 [0]. Although an implementation was > proposed in the past, it was not applied since it was unclear how to > h

Re: [pve-devel] [PATCH FOLLOW-UP manager/widget-toolkit 0/2] replace SafeDestroy

2025-09-30 Thread Michael Köppl
This is made obsolete by: https://lore.proxmox.com/pve-devel/20250930145848.263162-1-m.koe...@proxmox.com/ On 9/24/25 6:17 PM, Michael Köppl wrote: > This is a follow-up to another series implementing an additional purge > param for resource removal [0]. > > The ConfirmRemoveD

[pve-devel] [PATCH widget-toolkit v3 4/4] window: add more general base dialog, make SafeDestroy concrete

2025-09-30 Thread Michael Köppl
. SafeDestroy is now a special case of ConfirmRemoveDialog. This also avoids changes for dialog windows extending SafeDestroy. Also makes ConfirmRemoveDialog a non-dangerous yes/no dialog by default, setting dangerous = true and the "Remove" in SafeDestroy explicitly. Signed-off-by: Mic

[pve-devel] [PATCH widget-toolkit v3 1/4] window: refactor construction of SafeDestroy items

2025-09-30 Thread Michael Köppl
This is done to make extending SafeDestroy with additional functionality easier. Signed-off-by: Michael Köppl --- No functional change intended here. I mostly split the widget-toolkit patches up into multiple parts to make review of the individual extensions of the dialog easier. This is the

[pve-devel] [PATCH manager v3 2/2] ui: use ConfirmRemoveResource window for removing resources

2025-09-30 Thread Michael Köppl
This allows users to additionally choose whether they want to purge referenced rules that only include the resource that is to be deleted. Signed-off-by: Michael Köppl --- www/manager6/ha/Resources.js | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/www

[pve-devel] [PATCH ha-manager v3 2/2] api: add purge parameter for resource deletion

2025-09-30 Thread Michael Köppl
Signed-off-by: Michael Köppl Tested-by: Daniel Kral Reviewed-by: Daniel Kral --- src/PVE/API2/HA/Resources.pm | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/PVE/API2/HA/Resources.pm b/src/PVE/API2/HA/Resources.pm index 894fe90..09fe954 100644 --- a/src/PVE

Re: [pve-devel] [PATCH widget-toolkit v2 1/1] window: add ConfirmRemoveDialog

2025-09-30 Thread Michael Köppl
On Fri Sep 26, 2025 at 4:15 PM CEST, Daniel Kral wrote: > I think it's a good idea to combine these, but at the same time it's a > bit hard to review not seeing the diff from Proxmox.window.SafeDestroy > here directly.. > > I diffed them locally and if it's not too much work, it might be nice to >

[pve-devel] [PATCH qemu-server v2 1/1] fix #6613: pass purge param to delete_service_from_config

2025-09-25 Thread Michael Köppl
This covers the case where users want to delete a VM that is also a HA resource. If the purge param is set, the HA resource will also be removed from the affinity rules referencing the resource. If the affected rule only contains this one resource, the rule is also deleted. Signed-off-by: Michael

[pve-devel] [PATCH FOLLOW-UP manager 1/1] ui: replace SafeDestroy with ConfirmRemoveDialog

2025-09-24 Thread Michael Köppl
The ConfirmRemoveDialog offers additional customization, but covers SafeDestroy's feature set. This is done mostly to streamline the implementation, basing dialogs to remove guests, storage, or resources on the same component. Signed-off-by: Michael Köppl --- www/manager6/w

Re: [pve-devel] superseded: [PATCH container/docs/ha-manager/manager/qemu-server 0/7] fix #6613: update HA rules upon resource deletion

2025-09-24 Thread Michael Köppl
Superseded-by: https://lore.proxmox.com/pve-devel/20250924160747.430018-1-m.koe...@proxmox.com/ On 9/17/25 1:53 PM, Michael Köppl wrote: > This patch series aims to fix #6613 [0]. Although an implementation was > proposed in the past, it was not applied since it was unclear how to > h

Re: [pve-devel] [PATCH manager 2/2] ui: use SafeDestroyResource window for removing resources

2025-09-23 Thread Michael Köppl
On Tue Sep 23, 2025 at 9:50 AM CEST, Daniel Kral wrote: > On Wed Sep 17, 2025 at 1:53 PM CEST, Michael Köppl wrote: >> This allows users to additionally choose whether they want to purge >> referenced rules that only include the resource that is to be deleted. >> >> S

[pve-devel] [PATCH manager 1/1] ui: ha: rules: make status icon unclickable if there are no errors

2025-09-19 Thread Michael Köppl
The check icon should not be clickable since it is misleading if clicking it triggers no action, so add a class to the element that disables pointer events if there is no error. Signed-off-by: Michael Köppl --- www/manager6/ha/Rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[pve-devel] [PATCH manager 1/2] ui: ha: remove focus from VM/CT dropdown in resource edit window

2025-09-19 Thread Michael Köppl
Signed-off-by: Michael Köppl --- www/manager6/ha/ResourceEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js index 428672a82..18ed166ad 100644 --- a/www/manager6/ha/ResourceEdit.js +++ b/www/manager6/ha/ResourceEdit.js

[pve-devel] [PATCH manager 2/2] ui: ha: do not allow an empty VM/CT dropdown in resource edit window

2025-09-19 Thread Michael Köppl
This does not only improve visual feedback to the user in the form of red highlighting, but also disables the "Add" button while the field is still empty. Signed-off-by: Michael Köppl --- www/manager6/ha/ResourceEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/m

[pve-devel] [PATCH manager 0/2] improve UX in resource edit dialog

2025-09-19 Thread Michael Köppl
allow blank inputs, giving users better visual feedback. pve-manager: Michael Köppl (2): ui: ha: remove focus from VM/CT dropdown in resource edit window ui: ha: do not allow an empty VM/CT dropdown in resource edit window www/manager6/ha/ResourceEdit.js | 2 ++ 1 file changed, 2 insertions

[pve-devel] [PATCH manager/widget-toolkit 0/2] make rule status checkmark

2025-09-19 Thread Michael Köppl
such elements appear as non-clickable and the second patch applies this class to the status icon for rules. proxmox-widget-toolkit: Michael Köppl (1): css: add class for making elements unclickable src/proxmox-dark/scss/proxmox/_general.scss | 5 + 1 file changed, 5 insertions(+) pve

[pve-devel] [PATCH widget-toolkit 1/1] css: add class for making elements unclickable

2025-09-19 Thread Michael Köppl
This is useful for elements which have a click handler defined, but the action of that handler is dependent on some condition. Without adding pointer-events:none; the element would be displayed as clickable. Signed-off-by: Michael Köppl --- src/proxmox-dark/scss/proxmox/_general.scss | 5

Re: [pve-devel] [PATCH ha-manager/manager/proxmox-widget-toolkit 0/3] remove

2025-09-19 Thread Michael Köppl
On Fri Sep 19, 2025 at 4:41 PM CEST, Daniel Kral wrote: > Just to link these here, there were two community forum posts [0] and > [1], which added some more viewpoints how HA groups are/were used and > what could still be improved for the HA rules. > > The pain points were primarily that users coul

[pve-devel] [PATCH ha-manager/manager/proxmox-widget-toolkit 0/3] remove

2025-09-19 Thread Michael Köppl
ompared to finding the group for information that can be be viewed in a less cluttered manner on the rules page. pve-manager: Michael Köppl (1): ui: ha: remove group info from HA status string in guest status view www/manager6/Utils.js | 3 --- 1 file changed, 3 deletions(-) proxmox-widg

[pve-devel] [PATCH widget-toolkit 1/1] remove unused groupText mapping

2025-09-19 Thread Michael Köppl
Groups have been replaced by rules. Since the guest status view no longer displays information about rules, this mapping can also be removed. Signed-off-by: Michael Köppl --- src/Utils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Utils.js b/src/Utils.js index a0c6ca5..beb9df2

[pve-devel] [PATCH ha-manager 1/1] config: remove groups field from service status data

2025-09-19 Thread Michael Köppl
Groups have been replaced by rules. Since rules are no longer displayed as part of the service status and fetching the relevant rules would add more complexity compared to getting the group, this information is omitted altogether. Signed-off-by: Michael Köppl --- src/PVE/HA/Config.pm | 1 - 1

[pve-devel] [PATCH manager 1/1] ui: ha: remove group info from HA status string in guest status view

2025-09-19 Thread Michael Köppl
, finding the rules of which the resource is a part of adds a lot more complexity than getting the group did. Thus, the information is omitted from the status text altogether. Signed-off-by: Michael Köppl --- www/manager6/Utils.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/www/manager6

[pve-devel] [PATCH ha-manager 2/2] api: add purge parameter for resource deletion

2025-09-17 Thread Michael Köppl
Signed-off-by: Michael Köppl --- src/PVE/API2/HA/Resources.pm | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/PVE/API2/HA/Resources.pm b/src/PVE/API2/HA/Resources.pm index 894fe90..09fe954 100644 --- a/src/PVE/API2/HA/Resources.pm +++ b/src/PVE/API2/HA

[pve-devel] [PATCH ha-manager 1/2] fix #6613: update rules containing the resource to be deleted

2025-09-17 Thread Michael Köppl
resources no longer exist. Signed-off-by: Michael Köppl --- src/PVE/HA/Config.pm | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/PVE/HA/Config.pm b/src/PVE/HA/Config.pm index 301c62f..9a7ed0e 100644 --- a/src/PVE/HA/Config.pm +++ b/src/PVE/HA/Config.pm

[pve-devel] [PATCH manager 1/2] ui: add SafeDestroyResource window

2025-09-17 Thread Michael Köppl
Add an extended removal dialog for HA resources, which also allows setting a purge parameter through the checkbox. By default, the purge option is enabled, updating rules referencing the resource and deleting any rules that only have this resource left. Signed-off-by: Michael Köppl --- www

[pve-devel] [PATCH manager 2/2] ui: use SafeDestroyResource window for removing resources

2025-09-17 Thread Michael Köppl
This allows users to additionally choose whether they want to purge referenced rules that only include the resource that is to be deleted. Signed-off-by: Michael Köppl --- www/manager6/ha/Resources.js | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/www

[pve-devel] [PATCH container/docs/ha-manager/manager/qemu-server 0/7] fix #6613: update HA rules upon resource deletion

2025-09-17 Thread Michael Köppl
m/pve-devel/c004b755-ba3c-46cd-b559-ee2c131d9...@proxmox.com pve-ha-manager: Michael Köppl (2): fix #6613: update rules containing the resource to be deleted api: add purge parameter for resource deletion src/PVE/API2/HA/Resources.pm | 10 +- src/PVE/HA/Config.pm | 15

[pve-devel] [PATCH docs 1/1] add notes about effects of purge flag for resource and guest removal

2025-09-17 Thread Michael Köppl
Signed-off-by: Michael Köppl --- ha-manager.adoc | 4 pct.adoc| 3 +++ qm.adoc | 3 +++ 3 files changed, 10 insertions(+) diff --git a/ha-manager.adoc b/ha-manager.adoc index ea477cc0..5c17f115 100644 --- a/ha-manager.adoc +++ b/ha-manager.adoc @@ -220,6 +220,10 @@ the

[pve-devel] [PATCH container 1/1] fix #6613: pass purge param to delete_service_from_config

2025-09-17 Thread Michael Köppl
This covers the case where users want to delete a CT that is also a HA resource. If the purge param is set, the HA resource will also be removed from the affinity rules referencing the resource. If the affected rule only contains this one resource, the rule is also deleted. Signed-off-by: Michael

[pve-devel] [PATCH qemu-server 1/1] fix #6613: pass purge param to delete_service_from_config

2025-09-17 Thread Michael Köppl
This covers the case where users want to delete a VM that is also a HA resource. If the purge param is set, the HA resource will also be removed from the affinity rules referencing the resource. If the affected rule only contains this one resource, the rule is also deleted. Signed-off-by: Michael

[pve-devel] [PATCH widget-toolkit 1/1] fix: utils: correctly append id to task description text

2025-09-16 Thread Michael Köppl
Without this change, only the value of the type variable would be used as the task description for task types without an entry in the task_desc_table. Signed-off-by: Michael Köppl --- src/Utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.js b/src/Utils.js

Re: [pve-devel] [PATCH manager] ui: fix datacenter notes toolbar visibility

2025-09-12 Thread Michael Köppl
Since I was just now encountering this problem, gave this a quick spin. Works as advertised, did not notice anything off. Tested-by: Michael Köppl On Fri Sep 12, 2025 at 1:32 PM CEST, Dominik Csapak wrote: > the recent commit > d2660fc7 (ui: resource tree: improve performance on initial

Re: [pve-devel] [PATCH proxmox_dart_api_client/pve_flutter_frontend v2 0/3] fix: android: add support to honor user installed certificate

2025-09-05 Thread Michael Köppl
Since the v2 of this series features only minor changes to the commit messages that I suggested in my review of v1, please consider this: Reviewed-by: Michael Köppl Tested-by: Michael Köppl On Thu Sep 4, 2025 at 12:09 PM CEST, Shan Shaji wrote: > The app was not honoring the user instal

Re: [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation

2025-09-03 Thread Michael Köppl
Tested this by manually calling both API endpoints. With the patches applied, the returned filename now contains the data sources provided in the params and also returns data for the image again. Tested-by: Michael Köppl On Thu Aug 28, 2025 at 2:58 PM CEST, Aaron Lauterer wrote: > This ser

Re: [pve-devel] [PATCH proxmox_dart_api_client/pve_flutter_frontend 0/3] fix: android: add support to honor user installed certificate

2025-09-03 Thread Michael Köppl
such scenarios, but could IMO also be added in a separate patch. With my comment for proxmox_dart_api_client 1/2 addressed consider this: Tested-by: Michael Köppl Reviewed-by: Michael Köppl On Tue Sep 2, 2025 at 12:17 PM CEST, Shan Shaji wrote: > The app was not honoring the user instal

Re: [pve-devel] [PATCH proxmox_dart_api_client 1/2] fix: android: use `crone_http` package to honor user custom certificates

2025-09-03 Thread Michael Köppl
On Tue Sep 2, 2025 at 12:17 PM CEST, Shan Shaji wrote: > In android when a user installs a custom certificate the app was not > honoring the installed certificate and was still throwing > `HandShakeException`. > > To fix the issue, used the `crone_http` [0] package which will honor the nit: s/cron

Re: [pve-devel] [PATCH pve_flutter_frontend v2] feat: ui: add edit button in guests options page

2025-09-03 Thread Michael Köppl
Gave this a spin in my Android emulator. Works as expected. I also checked that there's no state change, etc. when rotating to landscape and back and that options are locked again upon re-opening the VM/LXC options view. Did not notice anything off. Consider this Tested-by: Michael Köppl I

Re: [pve-devel] [PATCH ha-manager 10/18] compile ha rules to a more compact representation

2025-09-02 Thread Michael Köppl
On Fri Aug 29, 2025 at 3:42 PM CEST, Daniel Kral wrote: >>> diff --git a/src/PVE/HA/Rules.pm b/src/PVE/HA/Rules.pm >>> index a075feac..d7593532 100644 >>> --- a/src/PVE/HA/Rules.pm >>> +++ b/src/PVE/HA/Rules.pm >>> @@ -47,6 +47,12 @@ Each I is required to implement the methods >>> C>, >>> C>, and

Re: [pve-devel] [PATCH ha-manager 18/18] factor out counting of active services into helper

2025-08-29 Thread Michael Köppl
During my review I was wondering why 16/18 and 17/18 added similar checks to both the manager's and the API's active service counting and why they're not combined into a single helper function, only to then notice that the final patch does exactly that. Is there a reason it's done in this order? Ot

Re: [pve-devel] [PATCH pve_flutter_frontend] feat: ui: add edit button in guests options page

2025-08-29 Thread Michael Köppl
It seems this patch does not apply anymore due to f263217. On Wed Jul 30, 2025 at 2:37 PM CEST, Shan Shaji wrote: > On the options page for VMs and CTs it was easy to change the > configs by mistake. To avoid that, added an edit button on the top > of the screen. The toggle buttons will only be en

Re: [pve-devel] [PATCH ha-manager 00/18] HA rules fixes + cleanup + performance improvements

2025-08-29 Thread Michael Köppl
ture. With my comments on the individual patches addressed, please consider this series Reviewed-by: Michael Köppl Tested-by: Michael Köppl On Thu Aug 21, 2025 at 4:35 PM CEST, Daniel Kral wrote: > I put the patches in decreasing priority: > > PATCH 1fix output of get_resource_inf

Re: [pve-devel] [PATCH ha-manager 10/18] compile ha rules to a more compact representation

2025-08-29 Thread Michael Köppl
2 comments inline On Thu Aug 21, 2025 at 4:35 PM CEST, Daniel Kral wrote: > sub write_rules_config { > @@ -391,8 +391,9 @@ sub get_resource_motion_info { > my $ss = $manager_status->{service_status}; > my $ns = $manager_status->{node_status}; > > -my $rules = read_and_

Re: [pve-devel] [PATCH ha-manager 04/18] rules: resource affinity: inter-consistency check with merged positive rules

2025-08-29 Thread Michael Köppl
One nit inline On Thu Aug 21, 2025 at 4:35 PM CEST, Daniel Kral wrote: > @@ -248,58 +255,6 @@ __PACKAGE__->register_check( > > =cut > > -my $sort_by_lowest_resource_id = sub { > -my ($rules) = @_; > - > -my $lowest_rule_resource_id = {}; > -for my $ruleid (keys %$rules) { > -

Re: [pve-devel] [PATCH ha-manager 15/18] manager: move group migration cooldown variable into helper

2025-08-29 Thread Michael Köppl
On Thu Aug 21, 2025 at 4:35 PM CEST, Daniel Kral wrote: > The variable is only used in the try_persistent_group_migration(...) > helper. While at it, add a comment and change the name to make its > meaning clearer. > > Signed-off-by: Daniel Kral > --- > src/PVE/HA/Manager.pm | 11 ++- > 1

Re: [pve-devel] [PATCH ha-manager 02/18] manager: retranslate rules if nodes are added or removed

2025-08-27 Thread Michael Köppl
2 minor suggestions inline On Thu Aug 21, 2025 at 4:35 PM CEST, Daniel Kral wrote: > Some rule checks depend on the list of cluster nodes, e.g., to check > whether a negative resource affinity rule doesn't specify more HA > resources than cluster nodes. > > The HA Manager retranslate rules only in

Re: [pve-devel] superseded: [PATCH i18n 1/1] update German translations

2025-08-26 Thread Michael Köppl
Superseded by v2: https://lore.proxmox.com/pve-devel/20250826155854.344897-1-m.koe...@proxmox.com On 8/26/25 4:45 PM, Michael Köppl wrote: > Signed-off-by: Michael Köppl > --- > Note that I left the translation of "Now refreshing" marked as fuzzy > since I'd per

[pve-devel] [PATCH i18n v2 1/1] update German translations

2025-08-26 Thread Michael Köppl
Signed-off-by: Michael Köppl --- I think the translation for "Now refreshing" is a bit clumsy. Maybe someone's more creative regarding this one, but personally I'd prefer to change the original text to "Refreshing..." and translate it as "Aktualisiert..."

[pve-devel] [PATCH i18n 1/1] update German translations

2025-08-26 Thread Michael Köppl
Signed-off-by: Michael Köppl --- Note that I left the translation of "Now refreshing" marked as fuzzy since I'd personally prefer changing the original string to something like "Refreshing..." because otherwise the German translation (maybe other languages as well)

[pve-devel] [PATCH i18n 1/1] fix typos and grammar errors in German translation

2025-08-05 Thread Michael Köppl
Signed-off-by: Michael Köppl --- de.po | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/de.po b/de.po index 8808913..5aa5a57 100644 --- a/de.po +++ b/de.po @@ -483,7 +483,7 @@ msgstr "Knoten hinzufügen" #: proxmox-datacenter-mana

Re: [pve-devel] [PATCH docs 1/5] ha: affinity rules: simplify overly verbose rule conflicts and errors section

2025-08-05 Thread Michael Köppl
Apart from a typo I noted on 5/5 and the comments already made by Hannes, I did not notice any errors and the changes improve the comprehensibility of the docs IMO, so consider these changes: Reviewed-by: Michael Köppl On 8/4/25 16:12, Daniel Kral wrote: > Suggested-by: Hannes Dürr >

Re: [pve-devel] [PATCH docs 3/5] ha: rules: document crs behavior for split positive resource affinity

2025-08-05 Thread Michael Köppl
On 8/4/25 16:12, Daniel Kral wrote: > Signed-off-by: Daniel Kral > --- > ha-manager.adoc | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/ha-manager.adoc b/ha-manager.adoc > index 5d75287..e18a14d 100644 > --- a/ha-manager.adoc > +++ b/ha-manager.adoc > @@ -787,6 +787,11 @@ HA resou

Re: [pve-devel] [PATCH docs 5/5] ha: replace in-text references to ha groups with ha rules

2025-08-05 Thread Michael Köppl
1 typo noted inline On 8/4/25 16:12, Daniel Kral wrote: > As HA groups are replaced by HA node affinity rules and user can > implement new CRS behavior with HA resource affinity rules now, update > texts that reference HA groups with references to HA rules instead. > > While at it, also replace r

[pve-devel] [PATCH manager 1/2] ui: ha: refresh rules lists on edit to display conflicts immediately

2025-08-01 Thread Michael Köppl
: Michael Köppl --- Note: I moved the stores from the RulesBaseView outside to the RulesView, which encapsulates the NodeAffinityRulesView and the ResourceAffinityRulesView. I did this to make it easier to refresh both stores when the datachanged event is fired. Open to suggestions, though. www/manager6

[pve-devel] [PATCH manager 2/2] run make tidy

2025-08-01 Thread Michael Köppl
Signed-off-by: Michael Köppl --- www/manager6/ha/Rules.js | 175 +++ 1 file changed, 86 insertions(+), 89 deletions(-) diff --git a/www/manager6/ha/Rules.js b/www/manager6/ha/Rules.js index c8d4c1dac..5fd02b7ba 100644 --- a/www/manager6/ha/Rules.js +++ b/www

[pve-devel] [PATCH manager 0/2] refresh affinity rules on edit to display conflicts

2025-08-01 Thread Michael Köppl
formatting through `make tidy`. pve-manager: Michael Köppl (2): ui: ha: refresh rules lists on edit to display conflicts immediately run make tidy www/manager6/ha/Rules.js | 118 --- 1 file changed, 73 insertions(+), 45 deletions(-) Summary over all repositories

Re: [pve-devel] [PATCH manager] pve8to9: don't report already migrated files as needing to be migrated

2025-08-01 Thread Michael Köppl
warning was not displayed anymore. Looks good to me. Consider this: Tested-by: Michael Köppl On 8/1/25 11:13, Shannon Sterz wrote: > the find command previously also found the already migrated rrd files > under `pve-{vm,node,storage}-9.0` and reported them as needing to > migrate

Re: [pve-devel] [PATCH docs/ha-manager/manager v4 00/25] HA Rules

2025-07-30 Thread Michael Köppl
Gave this version another spin today, focusing on the migration from groups to rules. I tested this 3-node and 5-node clusters. Went through the following scenarios: 1) At least one of the nodes in the cluster not at minimum version required for migration to rules 2) At least one node offline duri

Re: [pve-devel] [PATCH proxmox-datacenter-manager v2 1/2] add context to translatable strings

2025-07-30 Thread Michael Köppl
On 7/30/25 12:39, Maximiliano Sandoval wrote: > Signed-off-by: Maximiliano Sandoval > --- > ui/src/dashboard/top_entities.rs | 1 + > ui/src/pve/qemu.rs | 2 ++ > ui/src/remotes/add_wizard.rs | 1 + > 3 files changed, 4 insertions(+) > > diff --git a/ui/src/dashboard/top_entiti

Re: [pve-devel] [PATCH ha-manager v3 04/13] rules: add global checks between node and resource affinity rules

2025-07-29 Thread Michael Köppl
On 7/4/25 20:20, Daniel Kral wrote: > > diff --git a/src/PVE/HA/Rules.pm b/src/PVE/HA/Rules.pm > index 3121424..892e7aa 100644 > --- a/src/PVE/HA/Rules.pm > +++ b/src/PVE/HA/Rules.pm > @@ -6,6 +6,7 @@ use warnings; > use PVE::JSONSchema qw(get_standard_option); > use PVE::Tools; > > +use PVE::

Re: [pve-devel] [PATCH FOLLOW-UP ha-manager 0/2] fix errors during persistent migration of HA groups to rules

2025-07-23 Thread Michael Köppl
Superseded-by: https://lore.proxmox.com/pve-devel/20250723153524.288508-1-m.koe...@proxmox.com On 7/22/25 18:54, Michael Köppl wrote: > These 2 patches are meant as a follow-up for the HA affinity rules > series [0]. During testing, I encountered some errors during the > persistent

Re: [pve-devel] [PATCH cluster/docs/ha-manager/manager v3 00/20] HA Rules

2025-07-23 Thread Michael Köppl
On 7/22/25 18:38, Michael Köppl wrote: > The migrations based on the persisted rules seemed to work (apart from > failback). Of course, without the second series, the current state is > that the groups are migrated and then are simply gone and there is > nothing to replace them, so it&

[pve-devel] [PATCH FOLLOW-UP ha-manager v2 4/4] ha: check for actual disable value during rule checks

2025-07-23 Thread Michael Köppl
When exclude_disabled_rules was enabled, rules would be excluded from the check even if the value was actually false, since it still existed. The check now makes sure that the rule is really disabled before excluding it. Signed-off-by: Michael Köppl --- src/PVE/HA/Rules.pm | 2 +- 1 file

[pve-devel] [PATCH FOLLOW-UP ha-manager v2 1/4] config: use entire path to groups.cfg path in delete_group_config

2025-07-23 Thread Michael Köppl
Prepend /etc/pve/ to the path, as is done for other read and write functions for the groups.cfg file. Otherwise, removing the file does not work. Signed-off-by: Michael Köppl --- src/PVE/HA/Config.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/HA/Config.pm b

[pve-devel] [PATCH FOLLOW-UP manager v2 1/1] ui: add overview and edit components for node affinity rules

2025-07-23 Thread Michael Köppl
Add the rules overview that replaces the groups overview and displays node affinity rules. In addition, the edit dialogs for node affinity rules are added, allowing both creation and editing of node affinity rules. Signed-off-by: Michael Köppl Originally-by: Daniel Kral --- This is based on the

[pve-devel] [PATCH FOLLOW-UP ha-manager v2 3/4] api: return disable field for rules endpoint

2025-07-23 Thread Michael Köppl
Signed-off-by: Michael Köppl --- src/PVE/API2/HA/Rules.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/API2/HA/Rules.pm b/src/PVE/API2/HA/Rules.pm index 2e5e382..817aa1d 100644 --- a/src/PVE/API2/HA/Rules.pm +++ b/src/PVE/API2/HA/Rules.pm @@ -25,6 +25,7 @@ my $get_api_ha_rule

[pve-devel] [PATCH FOLLOW-UP ha-manager/manager v2 0/5] fix rule migration errors and add UI components

2025-07-23 Thread Michael Köppl
y. - Add UI part for pve-manager pve-ha-manager: Michael Köppl (4): config: use entire path to groups.cfg path in delete_group_config ha: decode JSON string with version info returned by get_node_kv api: return disable field for rules endpoint ha: check for actual disable value during r

[pve-devel] [PATCH FOLLOW-UP ha-manager v2 2/4] ha: decode JSON string with version info returned by get_node_kv

2025-07-23 Thread Michael Köppl
The value returned by get_node_kv is a JSON string and has to be decoded to read the version of the node. Signed-off-by: Michael Köppl --- src/PVE/HA/Env/PVE2.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PVE/HA/Env/PVE2.pm b/src/PVE/HA/Env/PVE2.pm index aecffc0

Re: [pve-devel] [PATCH docs] notifications: adapt to latest notification system UI changes

2025-07-23 Thread Michael Köppl
The changes good to me. I think this also improves clarity and I did not notice any typos or grammatical errors. Reviewed-by: Michael Köppl On 7/23/25 11:54, Lukas Wagner wrote: > The latest updates to the backup-job UI completely drop the term > "Notification System" from th

Re: [pve-devel] [RFC ha-manager v3 15/15] manager: persistently migrate ha groups to ha rules

2025-07-22 Thread Michael Köppl
On 7/22/25 18:38, Michael Köppl wrote: > This results in the following error: > Abort HA group migration: failed to remove group config: No such file > or directory > > The value in $ha_groups_config is only part of the path to the > groups.cfg file. It works for the r

[pve-devel] [PATCH FOLLOW-UP ha-manager 0/2] fix errors during persistent migration of HA groups to rules

2025-07-22 Thread Michael Köppl
-manager.git: Michael Köppl (2): config: use entire path to groups.cfg path in delete_group_config ha: decode JSON string with version info returned by get_node_kv src/PVE/HA/Config.pm | 3 ++- src/PVE/HA/Env/PVE2.pm | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) Summary over all

[pve-devel] [PATCH FOLLOW-UP ha-manager 2/2] ha: decode JSON string with version info returned by get_node_kv

2025-07-22 Thread Michael Köppl
The version info entries for each node returned by get_node_kv are JSON strings and need to be decoded to read the version of the node. Signed-off-by: Michael Köppl --- src/PVE/HA/Env/PVE2.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PVE/HA/Env/PVE2.pm b/src/PVE

[pve-devel] [PATCH FOLLOW-UP ha-manager 1/2] config: use entire path to groups.cfg path in delete_group_config

2025-07-22 Thread Michael Köppl
Prepend /etc/pve/ to the path, as is done for other read and write functions for the groups.cfg file. Otherwise, removing the file does not work. Signed-off-by: Michael Köppl --- src/PVE/HA/Config.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/HA/Config.pm b

Re: [pve-devel] [RFC ha-manager v3 15/15] manager: persistently migrate ha groups to ha rules

2025-07-22 Thread Michael Köppl
Left 2 comments inline. On 7/4/25 20:16, Daniel Kral wrote: > > diff --git a/src/PVE/HA/Config.pm b/src/PVE/HA/Config.pm > index 424a6e1..59bafd7 100644 > --- a/src/PVE/HA/Config.pm > +++ b/src/PVE/HA/Config.pm > @@ -234,6 +234,11 @@ sub read_group_config { > return cfs_read_file($ha_groups_

Re: [pve-devel] [PATCH cluster/docs/ha-manager/manager v3 00/20] HA Rules

2025-07-22 Thread Michael Köppl
I've had a look at this series without looking at the second series that extends this (yet). As Dano noted, there are multiple TODOs for the final ha-manager patch in this series that tries to persist the migration from groups to rules. During my testing I quickly ran into some problems with this p

Re: [pve-devel] [PATCH ha-manager v3 10/15] manager: migrate ha groups to node affinity rules in-memory

2025-07-22 Thread Michael Köppl
Left 2 comments inline, just some minor nits. On 7/4/25 20:16, Daniel Kral wrote: > Migrate the currently configured groups to node affinity rules > in-memory, so that they can be applied as such in the next patches and > therefore replace HA groups internally. > > HA node affinity rules in their

Re: [pve-devel] [PATCH installer 1/1] remove network and broadcast address checks

2025-07-16 Thread Michael Köppl
Missed some of the original changes, sorry about that. Superseded-by: https://lore.proxmox.com/pve-devel/20250716104351.46784-1-m.koe...@proxmox.com On 7/16/25 12:30, Michael Köppl wrote: > To avoid artificially limiting what users can do, remove the checks > that ascertain if a su

[pve-devel] [PATCH installer v2 1/1] remove network and broadcast address checks

2025-07-16 Thread Michael Köppl
-off-by: Michael Köppl --- proxmox-auto-installer/tests/parse-answer.rs | 2 -- .../parse_answer/ipv4_and_subnet_31.json | 19 -- .../parse_answer/ipv4_and_subnet_31.toml | 18 -- .../ipv4_and_subnet_addr_is_network.json | 3

[pve-devel] [PATCH installer 1/1] remove network and broadcast address checks

2025-07-16 Thread Michael Köppl
-off-by: Michael Köppl --- proxmox-auto-installer/tests/parse-answer.rs | 1 - .../ipv4_and_subnet_addr_is_network.json | 3 -- .../ipv4_and_subnet_addr_is_network.toml | 18 --- proxmox-installer-common/src/utils.rs | 32 --- 4 files changed, 54

Re: [pve-devel] [PATCH container/qemu-server/storage v8 00/10] fix #3711 and adapt drive detach/remove behavior

2025-07-15 Thread Michael Köppl
On 7/8/25 13:09, Lukas Wagner wrote: > Something that I have noticed is that when you have a second disk/mountpoint > on > some storage, detach the disk/mountpoint, remove the storage and then > try to remove the unused disk, there is a difference in behavior between > containers and VMs. For VMs,

Re: [pve-devel] superseded: [PATCH docs/installer v4 0/9] add early disk and network sanity checks

2025-07-15 Thread Michael Köppl
Superseded-by: https://lore.proxmox.com/pve-devel/20250715094021.154914-1-m.koe...@proxmox.com On 7/11/25 18:27, Michael Köppl wrote: > The goal of this series is to add additional sanity checks to the > auto-installer and the TUI and GUI installers. The following checks were > added:

Re: [pve-devel] [PATCH installer v4 3/8] close #5887: add sanity check for LVM swapsize

2025-07-15 Thread Michael Köppl
On 7/11/25 19:54, Thomas Lamprecht wrote: > Am 11.07.25 um 18:27 schrieb Michael Köppl: >> Check that the configured swapsize is not greater than hdsize / 8 as >> stated in the admin guide [0]. Define the behavior for the auto-installer as >> well as the TUI and GUI installers

[pve-devel] [PATCH installer v5 3/8] close #5887: add sanity check for LVM swapsize

2025-07-15 Thread Michael Köppl
Check that the configured swapsize is not greater than hdsize / 8 as stated in the admin guide [0]. Define the behavior for the auto-installer as well as the TUI and GUI installers. [0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#advanced_lvm_options Signed-off-by: Michael Köppl

[pve-devel] [PATCH installer v5 1/8] auto: add early answer file sanity check for RAID configurations

2025-07-15 Thread Michael Köppl
the user experience by avoiding failure during the actual installation. Signed-off-by: Michael Köppl --- proxmox-auto-install-assistant/src/main.rs| 3 +- proxmox-auto-installer/src/utils.rs | 18 ++- proxmox-auto-installer/tests/parse-answer.rs | 4

[pve-devel] [PATCH installer v5 6/8] tui: change get_value return type for easier error handling

2025-07-15 Thread Michael Köppl
Adapt the return type of CidrAddressEditView's get_value implementation for the FormViewGetValue trait to handle errors in case of invalid CIDR similarly to other (parsing) errors done in the TUIs network dialog. Signed-off-by: Michael Köppl --- proxmox-tui-installer/src/main.rs

[pve-devel] [PATCH installer v5 4/8] auto: add check for duplicate disks in answer file

2025-07-15 Thread Michael Köppl
Signed-off-by: Michael Köppl --- proxmox-auto-installer/src/utils.rs | 12 +++- proxmox-auto-installer/tests/parse-answer.rs | 1 + .../parse_answer_fail/duplicate_disk.json | 3 +++ .../parse_answer_fail/duplicate_disk.toml | 15 +++ 4

[pve-devel] [PATCH docs v5 1/1] installation: remove maxroot size requirement and mention default instead

2025-07-15 Thread Michael Köppl
cks, relax the documentation regarding this requirement and instead refer to the defaults used during installation to provide guidance for users. [0] https://lore.proxmox.com/pve-devel/d9p1yxb42lgj.ulii1huip...@proxmox.com/ Signed-off-by: Michael Köppl --- pve-installation.adoc | 4 +++- 1 f

[pve-devel] [PATCH installer v5 7/8] common: add checks for valid subnet mask and IPv4 address within subnet

2025-07-15 Thread Michael Köppl
the 2 available addresses to be valid host addresses. [0] https://datatracker.ietf.org/doc/html/rfc3021 Signed-off-by: Michael Köppl --- proxmox-auto-installer/tests/parse-answer.rs | 3 + .../parse_answer/ipv4_and_subnet_31.json | 19 + .../parse_answer/ipv4_and_subnet_31.toml

[pve-devel] [PATCH installer v5 2/8] move RAID setup checks to RAID level enum implementations

2025-07-15 Thread Michael Köppl
Instead of having parts of the RAID setup checks scattered in multiple places, move the core of the checks to implementations of the ZfsRaidLevel and BtrfsRaidLevel enums. Additionally, also move the unit tests accordingly. Signed-off-by: Michael Köppl --- proxmox-installer-common/src

[pve-devel] [PATCH installer v5 8/8] tui, gui: streamline error messages around disk and RAID checks

2025-07-15 Thread Michael Köppl
Adapt error messages around these checks to follow a similar structure as in the TUI (: ) instead of displaying them as warnings, since they actually stop users from continuing anyway. Signed-off-by: Michael Köppl --- This is mostly to have both the TUI and GUI display actual errors with context

[pve-devel] [PATCH docs/installer v5 0/9] add early disk and network sanity checks

2025-07-15 Thread Michael Köppl
pve-docs: Michael Köppl (1): installation: remove maxroot size requirement and mention default instead pve-installation.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) pve-installer: Michael Köppl (8): auto: add early answer file sanity check for RAID configurations move

[pve-devel] [PATCH installer v5 5/8] common: add more descriptive errors for invalid network configs

2025-07-15 Thread Michael Köppl
Signed-off-by: Michael Köppl --- proxmox-installer-common/src/utils.rs | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/proxmox-installer-common/src/utils.rs b/proxmox-installer-common/src/utils.rs index 8adcec0..1f225c8 100644 --- a/proxmox-installer

[pve-devel] [PATCH installer v4 8/8] tui, gui: streamline error messages around disk and RAID checks

2025-07-11 Thread Michael Köppl
Adapt error messages around these checks to follow a similar structure as in the TUI (: ) instead of displaying them as warnings, since they actually stop users from continuing anyway. Signed-off-by: Michael Köppl --- This is mostly to have both the TUI and GUI display actual errors with context

[pve-devel] [PATCH installer v4 4/8] auto: add check for duplicate disks in answer file

2025-07-11 Thread Michael Köppl
Signed-off-by: Michael Köppl --- proxmox-auto-installer/src/utils.rs | 12 +++- proxmox-auto-installer/tests/parse-answer.rs | 1 + .../parse_answer_fail/duplicate_disk.json | 3 +++ .../parse_answer_fail/duplicate_disk.toml | 15 +++ 4

[pve-devel] [PATCH installer v4 5/8] common: add more descriptive errors for invalid network configs

2025-07-11 Thread Michael Köppl
Signed-off-by: Michael Köppl --- proxmox-installer-common/src/utils.rs | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/proxmox-installer-common/src/utils.rs b/proxmox-installer-common/src/utils.rs index 8adcec0..1f225c8 100644 --- a/proxmox-installer

[pve-devel] [PATCH installer v4 7/8] common: add checks for valid subnet mask and IPv4 address within subnet

2025-07-11 Thread Michael Köppl
the 2 available addresses to be valid host addresses. [0] https://datatracker.ietf.org/doc/html/rfc3021 Signed-off-by: Michael Köppl --- proxmox-auto-installer/tests/parse-answer.rs | 3 + .../parse_answer/ipv4_and_subnet_31.json | 19 + .../parse_answer/ipv4_and_subnet_31.toml

[pve-devel] [PATCH installer v4 2/8] move RAID setup checks to RAID level enum implementations

2025-07-11 Thread Michael Köppl
Instead of having parts of the RAID setup checks scattered in multiple places, move the core of the checks to implementations of the ZfsRaidLevel and BtrfsRaidLevel enums. Additionally, also move the unit tests accordingly. Signed-off-by: Michael Köppl --- proxmox-installer-common/src

[pve-devel] [PATCH installer v4 3/8] close #5887: add sanity check for LVM swapsize

2025-07-11 Thread Michael Köppl
Check that the configured swapsize is not greater than hdsize / 8 as stated in the admin guide [0]. Define the behavior for the auto-installer as well as the TUI and GUI installers. [0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#advanced_lvm_options Signed-off-by: Michael Köppl

  1   2   3   >