Commit Graph

7360 Commits

Author SHA1 Message Date
Thomas Lamprecht
33b0c265ef appliance index: use upper case for constant like variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-28 14:28:09 +01:00
Thomas Lamprecht
c6611893f6 appliance index: warn if log rotation fails
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-28 14:27:19 +01:00
Fiona Ebner
11064d3263 appliance index: fix precedence in size check for log rotation
In Perl, > takes precedence over ||, see perldoc perlop, so currently
the check will trigger with any size.

Fixes: 805cae93 ("appliance index: rotate update log if bigger than 256 KiB")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-02-28 14:23:26 +01:00
Thomas Lamprecht
8e0b18ff3b ui: IP set: fix indentation and whitespace issues
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-28 14:23:17 +01:00
Thomas Lamprecht
4467a5d2f2 api: node status: document boot-info and current-kernel in return schema
I recently added the same info to PMG and added them to the return
schema, so copying them over here comes for free, and while far from
complete but better than nothing.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-26 16:55:13 +01:00
Alexandre Derumier
591c2d7beb ui: qemu: bump max cores to 256 by socket
New AMD Epyc CPUs already supports 168 threads and QEMU 8.1 support
1024 cores with q35.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-20 13:45:30 +01:00
Thomas Lamprecht
805cae93fd appliance index: rotate update log if bigger than 256 KiB
50 KiB is really tiny and while this log file is not _that_ important,
spending a few KiB more to keep much older logs around is almost
always a win-win situation, now that root storage size is rather some
hundred GB in most setups.

Drop the unused size variable while touching this, which was the
actual thing that made me look closer here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-20 13:40:41 +01:00
Dominik Csapak
6e7cef4923 fix #5106: ui: ceph status: make column wrap the summary text on expand
with this the title is now completely visible when the column is
expanded, even if it's originally too narrow.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
 [TL: fix eslint warning for missing space after comma ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-19 14:54:51 +01:00
Fiona Ebner
7304254a76 ui: node: system: avoid using 'Syslog'
Reported in the community forum [0]. Since Proxmox VE 8/Debian 12,
rsyslog is not installed by default for new installations anymore [1].
The information gathered by the API call comes from the systemd
journal. While 'Syslog' could be interpreted as a shorthand for
"System Log", it's better to be explicit to avoid any confusion.

In addition, the systemd journal does much more than plain syslog
messages, as argued by Fabian [2].

[0]: https://forum.proxmox.com/threads/141631/post-634675
[1]: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#changes-to-system-logging
[2]: https://lists.proxmox.com/pipermail/pve-devel/2024-February/061765.html

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [TL: Mention and link to Fabian's argument ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-19 14:42:59 +01:00
Thomas Lamprecht
a74e269c82 build-sys: allow a multi-digit release number
future proofing at this point, but let's rather fix this already
before we forget...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-19 14:42:59 +01:00
Fabian Grünbichler
04ed3d1b9c ceph: config hash fallback style improvement
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-02-12 14:06:55 +01:00
Max Carrara
68b6c23956 ceph: fix edge case of wrong files being deleted on purge
Having a file named e.g. "60" in your current directory will cause it
to be deleted when executing `pveceph purge`. This commit fixes that
by making the config hash differ between which values represent file
paths and which don't.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
2024-02-12 14:05:08 +01:00
Alexander Zeidler
1e5f1bc8f1 pvesubscription: add missing return statement
to avoid a failing null check and its error message. This confused
users since the activation was successful anyway.

Signed-off-by: Alexander Zeidler <a.zeidler@proxmox.com>
2024-02-02 19:16:49 +01:00
Fiona Ebner
267dc2bdf9 ui: lvm: expose saferemove setting
It can be security-relevant in some environments. The LVM storage
documentation can be reached via the "Help" button and contains a few
more details.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-02-02 17:13:53 +01:00
Thomas Lamprecht
e1a0e868c7 ui: adapt to fix of Korean language code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-02 17:07:33 +01:00
Aaron Lauterer
8c260fdbc5 ui: storage: zfs: set blocksize placeholder to 16k
to reflect current ZFS defaults.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2024-02-01 13:38:12 +01:00
Lukas Wagner
374304dbab vzdump: make helper functions for sending notifications private
The helpers were split out from the original 'sendmail' function when
migrating to the new notification system. They are not needed anywhere
else and can thus be private.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-01-29 10:32:31 +01:00
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