Commit Graph

6791 Commits

Author SHA1 Message Date
Dominik Csapak
1056e10c4b ui: firewall: refactor privilege checks and prevent double click
factor out the relevant privilege checks in a variable and reuse that,
also add the check in the run_editor (or wrap it with a check) so that
the edit windows don't open with a double click without those privileges

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-06-07 13:22:03 +02:00
Alexandre Derumier
2e37e77902 ui: firewall panel/grids : add privilege checks on buttons
Use enableFn to enable/disable the toolbar buttons according to the
existing privileges.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
[ D: adapted commit subject and added commit message ]
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-06-07 13:21:48 +02:00
Alexandre Derumier
2c12348881 ui: qemu|lxc : fix firewall menu caps
The current VM.Console cap is wrong.

Only log panel needs VM.Console, the other ones only need VM.Audit.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
[ D: rewrite commit message a bit ]
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-06-07 13:21:48 +02:00
Christoph Heiss
5fcda825ea ui: clean up remnants of in-tree font-awesome files
Commit e97c2601 ("change to debian font-awesome") removed the usage of
the in-tree font-awesome files, replacing them with the Debian package.
Thus clear out these leftovers out, as they are completely usused.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 12:09:05 +02:00
Thomas Lamprecht
085cf362bd aplinfo: ensure keyring is in binary format
GnuPG chokes on it otherwise...

Fixes: 00ea2e4b ("aplinfo: use sequioa for key ring generation")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:49:35 +02:00
Thomas Lamprecht
63c8b37122 appliances: switch over to Proxmox VE 8 index
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:38:34 +02:00
Thomas Lamprecht
d7f0fd5581 d/control: bump versioned dependency for libpve-access-control-perl
To ensure that the new realm-sync modules are available.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:38:34 +02:00
Dominik Csapak
f44ce5955e ui: add Realm Sync panel
a typical CRUD panel for adding/editing/removing realm sync jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:38:34 +02:00
Dominik Csapak
9802297517 api: add realm-sync crud api to /cluster/jobs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ T: fix-up realm sync module namespace, moved to PVE::API2::Jobs ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:38:34 +02:00
Dominik Csapak
23d641254d Jobs: add RealmSync Plugin and register it
so that realmsync jobs get executed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:38:34 +02:00
Dominik Csapak
a1c51a74ca Jobs: include existing types in state file regex for deletion
otherwise, we cannot correctly match types that contain a hyphen,
since the id itself can also contain those.

creating a regex where the first part is the concrete allowed
types followed by a hyphen + id can also match those.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-07 11:38:34 +02:00
Dominik Csapak
63d74bb632 fix #4678: ui: don't sort storage backup content by vmid by default
instead, add the vmid as extra column, so that the user can still sort
by vmid if they wish to

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-06-06 19:16:43 +02:00
Dominik Csapak
73ea065ac2 ui: storage: backup: refactor extraColumns assignment
makes it easier to add columns, and uses less indentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-06-06 19:16:43 +02:00
Fabian Grünbichler
9a023d5540 fix #4605: drop rsyncable from zstd invocation
This reverts 7420d7ff ("zstd: add --rsyncable flag")

That flag causes severe slow downs on fast disks, and we still have
other rsyncable compressors available.

It was originally added based on wrong documentation that made the
performance impact look a lot smaller than it actually is.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-06-06 19:13:53 +02:00
Thomas Lamprecht
cf14758f5f ceph CLI: osd details: code/style cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-06 18:21:38 +02:00
Aaron Lauterer
b48ca5a7c0 pveceph: add osd details command
To provide similar output on the CLI as is possible in the GUI/API
regaring OSD details.

By default (output-format=text) a more concise output is shown. Using
json or yaml as output format will print all the available data.

The 'verbose' flag causes json-pretty output to be used.

The functionality is split between the actual function and the output
formatter as not all options/parameters are available in each.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2023-06-06 18:04:25 +02:00
Dominik Csapak
90d69e2dbc ui: fix duplicate references when using multiple disk storage selectors
by removing the references and change the one place where we used one
of the references.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-06 17:08:58 +02:00
Leo Nunner
711658f42c fix #2641: ui: storage: expose CIFS subdir parameter on add
makes it possible to optionally set the 'subdir' parameter when
adding a new CIFS storage.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
 [ T: reword/flow commit message slightly ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-06 17:07:38 +02:00
Fiona Ebner
8b3c353ed7 api: nodes: add 'migrateall' to index
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2023-06-06 17:05:06 +02:00
Thomas Lamprecht
44f9ab364d ui: add beta text with link to bugtracker
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-06 09:50:09 +02:00
Thomas Lamprecht
06c3062a7e bump version to 8.0.0~7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
13831d8d3d ui: dc summary: code style fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
4bbd64a2f8 ui: ceph install: add pmx-hint class to hint field-label
looks a bit odd as the background it produces goes over the text, but
is the least invasive method to apply something like this, and
highlighting the whole thing is too flashy here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
e6a1160f95 ui: ceph install: add hints depending on selected repo and subscriptions
None hint required if all nodes have subscriptions and enterprise
repo is selected, but otherwise give some hints for better UX and to
(hopefully) reduce the chance for mishaps.

We might want to highlight the label to improve visibility tough.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
b686fd3774 ui: ceph install wizard: allow selecting repository
provide a second combo box that allows one to select which specific
repository out of enterprise, no-subscription or test one would like
to use.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
35ff09a46e ui: ceph install: increase dimension of window with 4:3 ratio
especially the console window is rather on the small side otherwise..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
cd56fd5557 ui: ceph: fix code indentation in onShow of wizard
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
bbfbf0efe9 ceph install: output some hints depending repo choice and subscription
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
93542d7748 pveceph: support new enterprise repository
With Proxmox VE 8, we'll have support for a enterprise ceph repo,
accessed through Proxmox VE subscriptions, to provide more broadly
tested ceph updates for production setups.

Replace the test-repository parameter with an actual enum of
selectable repo types for:

- test (same as previously selected through setting test-repository)
- no-subscription (the previous default, then named "main")
- enterprise (new and the default now, recommended for production)

Note that writing the auth-part is a bit hacky and might/should be
improved.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
75d1eb55ae cli: subscription: simplify printing output in get command
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
fc3e061bd0 api: subscription: factor out check for cache being valid
multi-line post-if's are against our style guide.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
76a165a1f2 api: subscription: style cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 19:04:12 +02:00
Thomas Lamprecht
3211e833d9 ui: USB selector: fix typo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-05 12:15:09 +02:00
Wolfgang Bumiller
a4c38b8f08 bump version to 8.0.0~6
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-05 10:05:38 +02:00
Wolfgang Bumiller
6a75aa3396 vzdump: add comment about why we still split_args for arrays
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-05 10:02:58 +02:00
Dominik Csapak
d6d3e55b1d vzdump: prepare 'exclude-path' for array format
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 <d.csapak@proxmox.com>
2023-06-05 10:01:45 +02:00
Thomas Lamprecht
0b1eb12908 bump version to 8.0.0~5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-31 18:19:51 +02:00
Thomas Lamprecht
45d1707c75 pve7to8: cope with native version of proxmox-ve package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-31 18:19:21 +02:00
Thomas Lamprecht
ff166f9c58 bump version to 8.0.0~4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-31 18:10:20 +02:00
Thomas Lamprecht
de52feb88d drop outdated pve6to7 upgrade checker script for bookworm
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-31 18:02:39 +02:00
Thomas Lamprecht
a98193c295 update source of pve7to8 upgrade checker script
squashed from the respective commits of the stable-7 branch, which is
the canonical source for this specific script.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-31 18:00:07 +02:00
Thomas Lamprecht
37c01c901d buildsys: split list of CLI sources over multiple lines
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-31 18:00:07 +02:00
Thomas Lamprecht
c07ef53624 bump version to 8.0.0~3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 15:32:35 +02:00
Thomas Lamprecht
fa3dfb1c2c ui: ceph install wizard: drop releases not supported for Proxmox VE 8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 15:31:46 +02:00
Thomas Lamprecht
40d819c7bf bump version to 8.0.0~2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 15:19:29 +02:00
Thomas Lamprecht
ddd8927990 pveceph: drop special for octopus and pacific, unsupported in 8.x
sort the package list while at it

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 15:17:10 +02:00
Thomas Lamprecht
74ea1fb257 pveceph: update Ceph releases and repo dist for Bookworm
We'll only support Quincy and newer in Bookworm, and Reef isn't yet
released.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 15:16:19 +02:00
Thomas Lamprecht
03e1cd62c3 pve sources: update dist to bookworm
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 15:15:06 +02:00
Thomas Lamprecht
39075150e1 bump version to 8.0.0~1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
70d3278363 d/control: define compat level via build-depends and raise to 13
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00