Commit Graph

7343 Commits

Author SHA1 Message Date
Lukas Wagner
878d9af62b fix #5067: vzdump: include total backup size in notification
The old backup job notification mails from before the notification
system overhaul included the total time as well as the total size.

The total size was missing from the new, template-based backup report,
thus we add it back in this commit.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
[FE: style fix - use parentheses for returning list]
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-01-29 10:31:52 +01:00
Hannes Duerr
e308895fc7 add missing library packages
Signed-off-by: Hannes Duerr <h.duerr@proxmox.com>
2024-01-12 16:48:24 +01:00
Alexander Zeidler
dd9ee03bf6 report: format iptables output for readability
Signed-off-by: Alexander Zeidler <a.zeidler@proxmox.com>
2024-01-10 10:42:49 +01:00
Alexander Zeidler
86700f9caf pvesubscription: update set-offline-key description
and point users to proxmox-offline-mirror-helper

Signed-off-by: Alexander Zeidler <a.zeidler@proxmox.com>
2024-01-10 10:36:18 +01:00
Thomas Lamprecht
395dbe6b7b d/postinst: fix up whitespace indentation
we actually use a sane one here so do not mess with that

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-01-10 10:35:43 +01:00
Thomas Lamprecht
ec5affc9e4 bump version to 8.1.4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-01-10 10:30:41 +01:00
Stefan Hanreich
250d7b07f1 postinst: filter rbds in lvm
Since LVM 2.03.15 RBD devices are also scanned by default [1]. This
can lead to guest volumes being recognized and displayed on the host
when using KRBD for RBD-backed disks. In order to prevent this we add
an additional filter to the LVM config to avoid scanning rbds.

This also prevents a bug where LVM created a very high amount of
archive entries when there were logical volumes with the same path
available. This could happen when two guests with RBD disks had the
same LVM layout or a guest and host had the same layout.

previous behavior:
If there is no marker in the LVM conf and global_filter does not
contain '/dev/zd.*': replace the global_filter with our version

new behavior:
Replace the global_filter iff:
- There is no marker and global_filter is empty
- The global_filter is exactly the old default

If we don't replace the filter and it is a non-default value: We print
a warning. Addtionally we force this function to run once when
upgrading from older versions.

The previous versions could replace custom global_filters where the
comment had been removed and the zvol directive removed. The new
behavior is slightly more conservative, but works the same in other
cases.

[1] 6a431eb242

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2024-01-09 10:33:27 +01:00
Aaron Lauterer
c75ee959c5 ui: DirEdit: LVMEdit: add hint when to enable shared
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
2024-01-09 10:29:46 +01:00
Hannes Duerr
9a9b908a41 report: add packet counter to iptables output
Signed-off-by: Hannes Duerr <h.duerr@proxmox.com>
2024-01-03 11:59:51 +01:00
Fiona Ebner
4fb7e9e434 fix #5121: ui: node status: avoid invalid array access for certain foreign kernels
with custom build date format, which would prevent the panel from loading.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2023-12-14 13:53:32 +01:00
Lukas Wagner
4f0d58394f api: replication: allow users to enumerate accessible replication jobs
Previously, the /cluster/replication API handler would fail completely
with a HTTP 403 if a user does have VM.Audit permissions for
a single VM/CT. That was due to the 'noerr' parameter not set for
$rpcenv->check()

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-12-04 16:53:38 +01:00
Fiona Ebner
ac7127388f ui: iso selector: disable all fields to avoid bogus validation
The validation logic of the inner fields from the ISO selector was not
disabled, so a user would need to select a valid storage and ISO file
before being able to make any other choice for the general CD-ROM
drive source (no-media or physical-drive).

Call the parent method to ensure all the inner fields get actually
disabled so that their validators also get disarmed if not relevant.

Reported in the communiy forum:
https://forum.proxmox.com/threads/136960/post-611704

Fixes: fc7b556d ("ui: refactor iso-selector out of the cd input panel")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [ TL: add more background to commit message/subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-12-04 16:47:05 +01:00
Fabian Grünbichler
8113229eb7 node: add guard for missing secure-boot efi var
some (old) systems might have efivars, but don't have the SecureBoot one.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-11-28 13:42:06 +01:00
Thomas Lamprecht
b81057a926 api: apt versions: track dnsmasq and frr-pythontools as optional packages
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-23 11:33:58 +01:00
Thomas Lamprecht
b46aac3b42 bump version to 8.1.3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-23 11:20:06 +01:00
Dominik Csapak
cb92b114f3 ui: pool view: fix editing nested pools
for nested pools we have to provide the pool id via a get parameter
instead of in the path, and also we have to extract the data from the
returned array.

To do this, changet the cbind url handler, remove the autoLoad one,
and handle the load ourselves.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-11-23 11:12:33 +01:00
Thomas Lamprecht
38d153d6c7 bump version to 8.1.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-23 11:00:27 +01:00
Lukas Wagner
d31e7f13c6 ui: perm paths: change /mapping/notification to /mapping/notifications
The ACL path was changed during the notification system rework.
This change adapts the list of predefined ACL paths in the
'Add {User,Group,API Token} Permission' dialog window to reflect
this change.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-23 10:58:34 +01:00
Thomas Lamprecht
95ece724d5 d/control: bump versioned dependency for libpve-guest-common-perl
Ensure new notification-mode property is recognized for backup jobs.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-23 10:40:57 +01:00
Dominik Csapak
b877366ade ui: resource tree: remove wrong comment
that function is not only there for the storage indicators, but
generally for adding additional information, such as tags, and for
wrapping in a span for making tooltip selection easier.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-11-23 09:39:19 +01:00
Dominik Csapak
fa17629b5f ui: resource tree: fix extra space inconsistency in some node elements
When a node element was updated, it was put through the 'setText'
method which accidentally added a space before it's name.

Fix this by putting the space into the status variable.

Without this patch one could observe a vertical misalignment when some
nodes had guests on them but others had none.

Fixes: 2f414c50 ("ui: resource tree: limit tooltip to icon and text")
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-23 09:36:57 +01:00
Thomas Lamprecht
4a88465546 ui: drop various translations of fixed strings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-23 09:23:23 +01:00
Thomas Lamprecht
f635d06744 ui: iso selector: fix layout, stretch items again to full space
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 20:40:29 +01:00
Thomas Lamprecht
3f088b4a50 bump version to 8.1.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 19:37:14 +01:00
Thomas Lamprecht
88dde360d0 ui: sdn zone base: fix indentation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 19:35:41 +01:00
Stefan Hanreich
58d4207bd3 sdn: zone: fix edit for dns zone
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-22 19:13:31 +01:00
Stefan Hanreich
9029252357 sdn: adapt edit panels for new API endpoints
PUT endpoints have changed so they work like the other SectionConfig
endpoints. Reflect those changes in the UI.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-22 19:13:31 +01:00
Thomas Lamprecht
92759ae1b4 api: node status: cache boot mode info
it's not that expensive but we call the endpoint that returns the boot
mode info very frequently, and EFI vars are provided by the firmware,
and there are lots of known cases where firmware was just a plain
mess.

So, don't risk that overly frequent reads will cause some weird side
effect and rather just cache the whole info, it cannot change without
a reboot anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 16:09:15 +01:00
Christian Ebner
01df797d03 ui: sdn: use all upper case for acronyms
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2023-11-22 15:24:51 +01:00
Thomas Lamprecht
4898513c4e bump version to 8.1.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 14:56:12 +01:00
Thomas Lamprecht
c6a1e4e8f0 d/control: upgrade libpve-network-perl dependency to recommendation
could actually be a hard dependency too

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 14:56:00 +01:00
Stefan Hanreich
024017cffa ipam: send ip to delete endpoint
The ip parameter has been added to the delete endpoint, so only a
specific mapping gets deleted instead of all mappings for that mac
address. Reflect this change in the UI.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-22 14:35:49 +01:00
Thomas Lamprecht
1f1d8bf388 ui: node summary: add boot-mode information
Add a extra row for showing the current boot mode, for that we need to
grow the height of the status panel and graphs to have enough space
again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 13:55:12 +01:00
Thomas Lamprecht
81fd95cf63 api: nodes: add info about current boot mode
report if the node is booted in EFI or Legacy BIOS mode, for the
former also pass along the secure boot state.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 13:45:42 +01:00
Thomas Lamprecht
be04f8ee8a ui: node summary: reduce noise in current kernel version
use the new 'current-kernel' object returned by the node status API to
render a more useable (less noise) version information.

Keep fallback for old one to better work with upgrades (major and
minor) to this version in a cluster, where the web UI one uses might
be the new one, but a node one looks at still have the old manager.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 13:45:42 +01:00
Thomas Lamprecht
20ad4e0e01 api: nodes: add full info about current kernel from uname call
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 13:45:42 +01:00
Thomas Lamprecht
fd6fb85870 ui: node summary: drop PVE prefix for manager version
the value on the right already includes pve-manager and the user has
already loaded the PVE gui, so this is a bit superfluous

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-22 13:45:42 +01:00
Stefan Hanreich
ad1278fae8 sdn: subnet: proper change detect for dhcp range panel
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-21 21:02:45 +01:00
Stefan Hanreich
14f46dbb97 sdn: Update IPAM API endpoints
The IPAM-related API endpoints were moved, reflect those changes in
the UI as well.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-21 20:54:11 +01:00
Stefan Hanreich
a3c059c559 sdn: ipam: add ipam panel
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-21 20:27:38 +01:00
Stefan Hanreich
1d2ee4a255 sdn: subnet: add panel for editing dhcp ranges
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-21 20:27:38 +01:00
Stefan Hanreich
4977ff7f50 sdn: add DHCP option to Zone dialogue
Co-Authored-by: Stefan Lendl <s.lendl@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-21 20:27:38 +01:00
Stefan Hanreich
c216d1d288 sdn: regenerate DHCP config on reload
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2023-11-21 20:27:38 +01:00
Lukas Wagner
464ef9f6c4 ui: dc: config: remove onlineHelp for notification config view
The 'onlineHelp' is now set in the component definition in
'proxmox-widget-toolkit'.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-21 17:38:09 +01:00
Lukas Wagner
fb5b81796f ui: backup job: change field text for 'mailnotification' field
... to highlight that this setting only affects the 'legacy-sendmail'
mail notifications.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-21 14:41:15 +01:00
Lukas Wagner
c202b169f5 ui: backup: add 'notification-mode' param for one-shot backup jobs.
This selector allows one to selected between the 'old' (send email
directly via sendmail) or the 'new' notification system.

The default is 'auto', which sends and email if one is configured,
and uses the notification system if no email address is set.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-21 14:41:15 +01:00
Lukas Wagner
66b2086269 ui: backup jobs: add 'notification-mode' selector for backup jobs
This selector allows one to selected between the 'old' (send email
directly via sendmail) or the 'new' notification system.

The default is 'auto', which sends and email if one is configured,
and uses the notification system if no email address is set.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-21 14:41:15 +01:00
Lukas Wagner
38035bdf60 vzdump: support 'notification-mode' parameter
This parameter lets us choose between the 'legacy' notification
system (sendmail to some email addresses) and the 'new' notification
system (pub-sub based system with targets and matchers).
'auto' (default) will use the 'legacy' system if a mail address is
provided and the 'new' system if not.
This is allows users to opt-in/opt-out from the new notification
system, which might be a bit chatty by default.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-21 14:41:15 +01:00
Thomas Lamprecht
571bc9e2f7 ui: qemu os type edit: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-21 14:40:20 +01:00
Aaron Lauterer
cfcb74ab96 ui: ceph pool edit: rework with controller and formulas
instead of relying purely on listeners that then manually change other
components, we can use binds, formulas and a basic controller.

This makes it quite a bit easier to let multiple components react to
changes.

A cbind is used for the size component to set the initial start value.
Other options, like using setValue in the controller init, will trigger
the change listener and therefore can affect the min size without any
user interaction.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-21 14:39:28 +01:00