]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
11 months agod/control: bump versioned qemu-server dependency
Thomas Lamprecht [Mon, 19 Jun 2023 05:41:34 +0000 (07:41 +0200)]
d/control: bump versioned qemu-server dependency

for the new x86-64-vN cpu models

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: bump versioned libpve-guest-common dependency
Thomas Lamprecht [Mon, 19 Jun 2023 05:40:46 +0000 (07:40 +0200)]
d/control: bump versioned libpve-guest-common dependency

for the mapping infrastructure

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: mappings: cleanup perl imports
Thomas Lamprecht [Mon, 19 Jun 2023 05:33:48 +0000 (07:33 +0200)]
api: mappings: cleanup perl imports

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: cluster jobs: fix perl module not ending with a true value
Thomas Lamprecht [Mon, 19 Jun 2023 05:16:29 +0000 (07:16 +0200)]
api: cluster jobs: fix perl module not ending with a true value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: PCI mappings: code/style cleanups
Thomas Lamprecht [Mon, 19 Jun 2023 05:15:14 +0000 (07:15 +0200)]
api: PCI mappings: code/style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: PCI mappings: rename errors to checks in response
Thomas Lamprecht [Mon, 19 Jun 2023 05:13:19 +0000 (07:13 +0200)]
api: PCI mappings: rename errors to checks in response

as it contains warnings too, so having it named errors might be
confusing.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: PCI mappings: complete return schema
Thomas Lamprecht [Mon, 19 Jun 2023 04:58:33 +0000 (06:58 +0200)]
api: PCI mappings: complete return schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: improve permission handling for hardware
Dominik Csapak [Fri, 16 Jun 2023 13:05:41 +0000 (15:05 +0200)]
ui: improve permission handling for hardware

qemu/HardwareView:

with the new Hardware privileges, we want to adapt a few places where
we now allow to show the add/edit window with those permissions.

form/{PCI,USB}Selector:

increase the minHeight property of the PCI/USBSelector, so that
the user can see the error message if he has not enough permissions.

data/PermPathStore:

add '/hardware' to the list of acl paths

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: guest migrate: allow mapped devices for offline migrations
Dominik Csapak [Fri, 16 Jun 2023 13:05:40 +0000 (15:05 +0200)]
ui: guest migrate: allow mapped devices for offline migrations

if the migration is an offline migration and when the mapping on the
target node exists, otherwise not

this does not change the behaviour for 'raw' devices in the config
those can still be forced to be migrated, like before

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: allow configuring pci and usb mapping
Dominik Csapak [Fri, 16 Jun 2023 13:05:39 +0000 (15:05 +0200)]
ui: allow configuring pci and usb mapping

uses the new ResourceMapTree to add the CRUD interfaces for the
mappings.

We add both of them into a single panel, since the datacenter menu
already has many entries, and without a proper summary for the group, we
cannot really put them in a category

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: add ResourceMapTree
Dominik Csapak [Fri, 16 Jun 2023 13:05:38 +0000 (15:05 +0200)]
ui: add ResourceMapTree

this will be the base class for trees for the individual mapping types,
e.g. pci and usb mapping.

there are a few things to configure, but the overall code sharing is
still significant, and should work out fine for future mapping types

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: add edit window for usb mappings
Dominik Csapak [Fri, 16 Jun 2023 13:05:37 +0000 (15:05 +0200)]
ui: add edit window for usb mappings

very similar to the PCIMapEdit window, but we only ever allow one
mapping per host

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: add edit window for pci mappings
Dominik Csapak [Fri, 16 Jun 2023 13:05:36 +0000 (15:05 +0200)]
ui: add edit window for pci mappings

This contains the window to edit a PCI mapping for a single host.
It is designed to work in 3 modes:

* without an id and a nodename: for new mappings
* with an id but without nodename: for adding new host mappings to an
  existing one
* with id and nodename: when editing an existing host mapping

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: form: add MultiPCISelector
Dominik Csapak [Fri, 16 Jun 2023 13:05:35 +0000 (15:05 +0200)]
ui: form: add MultiPCISelector

this is a grid field for selecting multiple pci devices at once, like we
need for the mapped pci ui. There we want to be able to select multiple
devices such that one gets selected automatically

we can select a whole slot here, but that disables selecting the
individual functions of that device.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: qemu/USBEdit: add 'mapped' device case
Dominik Csapak [Fri, 16 Jun 2023 13:05:34 +0000 (15:05 +0200)]
ui: qemu/USBEdit: add 'mapped' device case

to be able to select 'mapped' usb devices

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: qemu/PCIEdit: rework panel to add a mapped configuration
Dominik Csapak [Fri, 16 Jun 2023 13:05:33 +0000 (15:05 +0200)]
ui: qemu/PCIEdit: rework panel to add a mapped configuration

reworks the panel to use a controller, so that we can easily
add the selector for mapped pci devices

shows now a selection between 'raw' and 'mapped' devices, where
'raw' ones work like before, and 'mapped' ones take the values
form the hardware map config

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: form: add USBMapSelector
Dominik Csapak [Fri, 16 Jun 2023 13:05:32 +0000 (15:05 +0200)]
ui: form: add USBMapSelector

similar to PCIMapSelector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: form: add PCIMapSelector
Dominik Csapak [Fri, 16 Jun 2023 13:05:31 +0000 (15:05 +0200)]
ui: form: add PCIMapSelector

akin to the PCISelector, but uses the api for mapped devices

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: form/USBSelector: make it more flexible with nodename
Dominik Csapak [Fri, 16 Jun 2023 13:05:30 +0000 (15:05 +0200)]
ui: form/USBSelector: make it more flexible with nodename

similar to the pciselector, make it accept a plain nodename,
or no node at all and provide a setNodename function

to keep backwards compatibility, also check pveSelNode for the nodename

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: parser: add helper for lists of property strings
Dominik Csapak [Fri, 16 Jun 2023 13:05:29 +0000 (15:05 +0200)]
ui: parser: add helper for lists of property strings

namely the filtering while preserving the original string,
it's just one line, but having a shorthand for it still makes it a bit
nicer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoapi: add resource map api endpoints for PCI and USB
Dominik Csapak [Fri, 16 Jun 2023 13:05:28 +0000 (15:05 +0200)]
api: add resource map api endpoints for PCI and USB

this adds the typical section config crud API calls for
USB and PCI resource mapping to /cluster/mapping/{TYPE}

the only special thing that this series does is the list call
for both has a special 'check-node' parameter that uses the
'proxyto_callback' to reroute the api call to the given node
so that it can check the validity of the mapping for that node

in the future when we e.g. broadcast the lspci output via pmxcfs
we drop the proxyto_callback and directly use the info from
pmxcfs (or we drop the parameter and always check all nodes)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agopvesh: fix parameters for proxyto_callback
Dominik Csapak [Wed, 14 Jun 2023 08:46:07 +0000 (10:46 +0200)]
pvesh: fix parameters for proxyto_callback

in pve-http-server the proxyto_callback always has a complete list of
parameters, not only the ones in the url, so adapt the implementation
here to do the same

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agofirewall: add scope field to IPRefSelector
Leo Nunner [Tue, 13 Jun 2023 12:06:34 +0000 (14:06 +0200)]
firewall: add scope field to IPRefSelector

and send the scoped value to the firewall when choosing new values.
This happens for both IPSets and aliases.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
11 months agoui: realm sync job: code cleanup run-now handlers
Thomas Lamprecht [Wed, 14 Jun 2023 15:41:49 +0000 (17:41 +0200)]
ui: realm sync job: code cleanup run-now handlers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: realm sync job: clarify the function of the two enable checkboxes
Thomas Lamprecht [Wed, 14 Jun 2023 15:37:45 +0000 (17:37 +0200)]
ui: realm sync job: clarify the function of the two enable checkboxes

Most of the time this isn't an issue for job edits, but here we have
two "enable" checkboxes that control enabling newly synced users and
enabling the job itself, try to be absolutely clear on both to avoid
potential confusion.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: realm: clarify that the sync jobs really are for the realm
Thomas Lamprecht [Wed, 14 Jun 2023 15:33:38 +0000 (17:33 +0200)]
ui: realm: clarify that the sync jobs really are for the realm

it's somewhat redundant as onbe is already at the realm view, but for
panel titles it slightly helps if one doesn't have to string together
such "clues" oneself, i.e., it's easier to see where one is - e.g.,
if switching from some other task back to the web UI again, and we
have enough space here, so we ain't winning anything if keeping it
short.

Also add an emptyText to the grid, mostly as view's without anything
always look a bit off (like an error happened on load and one forgot
to mask)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: realm sync: add 'run now' button
Dominik Csapak [Tue, 13 Jun 2023 08:44:01 +0000 (10:44 +0200)]
ui: realm sync: add 'run now' button

by simply passing the sync job config to the 'sync' api endpoint, like
we do for vzdump jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: realm: move sync job panel into realm panel
Dominik Csapak [Tue, 13 Jun 2023 08:44:00 +0000 (10:44 +0200)]
ui: realm: move sync job panel into realm panel

and make it collapsible, so that users can hide it if they're not
interested in it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: realm sync: change enabled column rendering
Dominik Csapak [Tue, 13 Jun 2023 08:43:59 +0000 (10:43 +0200)]
ui: realm sync: change enabled column rendering

to make it consistent with the repositories ui, since having a checkbox
that is not clickable is confusing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: realm sync edit: improve ux when there is no ldap/ad realm
Dominik Csapak [Tue, 13 Jun 2023 08:43:58 +0000 (10:43 +0200)]
ui: realm sync edit: improve ux when there is no ldap/ad realm

by adding an empty text to the dropdown, and disabling the other
possibly invalid fields, so that it's clear why the panel is invalid

as soon as there is an ldap/ad realm, it gets autoselected anyway and
the fields get re-enabled.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: user list: fine-tune width-flex of group and comment column
Thomas Lamprecht [Wed, 14 Jun 2023 14:17:39 +0000 (16:17 +0200)]
ui: user list: fine-tune width-flex of group and comment column

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofix #4739: ui: user list: add column for group memberships
Dominik Csapak [Wed, 14 Jun 2023 12:31:31 +0000 (14:31 +0200)]
fix #4739: ui: user list: add column for group memberships

To get a fast overview in which groups each user is add a column that
shows all groups they are a member of.

To get that info we need to pass the 'full=1' parameter to the API
endpoint, which then adds tokens and groups for each user to the result.

This is basically only increasing transmission size a bit, as the
backend doesn't needs to do any extra parsing for this information.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [T: Reword commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: sdn: consistent usage of VNet & VLAN without gettext
Thomas Lamprecht [Wed, 14 Jun 2023 12:10:17 +0000 (14:10 +0200)]
ui: sdn: consistent usage of VNet & VLAN without gettext

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoqemu: processor : set x86-64-v2-AES as default cputype for create wizard
Alexandre Derumier [Thu, 8 Jun 2023 09:51:06 +0000 (11:51 +0200)]
qemu: processor : set x86-64-v2-AES as default cputype for create wizard

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 months agoui: add permissions management for "localnetwork" zone
Alexandre Derumier [Wed, 7 Jun 2023 12:03:57 +0000 (14:03 +0200)]
ui: add permissions management for "localnetwork" zone

add a default virtual zone called 'localnetwork' in the ressource tree,
and handle permissions like a true sdn zone

(no conflict with true sdn zone is possible, as they have 8 characters max)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 months agoui: add vnet permissions panel
Alexandre Derumier [Wed, 7 Jun 2023 12:03:56 +0000 (14:03 +0200)]
ui: add vnet permissions panel

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 months agocluster resources: correctly filter 'localnetwork'
Fabian Grünbichler [Mon, 12 Jun 2023 11:03:07 +0000 (13:03 +0200)]
cluster resources: correctly filter 'localnetwork'

it should only be displayed if sdn entries are requested, or all resource
types.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoapi2: cluster: ressources: add "localnetwork" zone
Alexandre Derumier [Wed, 7 Jun 2023 12:03:53 +0000 (14:03 +0200)]
api2: cluster: ressources: add "localnetwork" zone

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 months agobump version to 8.0.0~8
Thomas Lamprecht [Fri, 9 Jun 2023 09:11:49 +0000 (11:11 +0200)]
bump version to 8.0.0~8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: qemu: show progress bar for resize task
Fiona Ebner [Fri, 9 Jun 2023 08:25:50 +0000 (10:25 +0200)]
ui: qemu: show progress bar for resize task

The API call was changed to spawn a task now.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: mark batch-execute api calls root-only
Thomas Lamprecht [Fri, 9 Jun 2023 08:47:43 +0000 (10:47 +0200)]
api: mark batch-execute api calls root-only

This is weird and buggy and breaches the unpriv./priv. separation of
our api daemons, so root-only for now and possibly removal soon.

note that this had several limitations already anyway, like running
in sync context and thus failing after 30s.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: fixup lost closing parenthesis
Thomas Lamprecht [Fri, 9 Jun 2023 07:55:43 +0000 (09:55 +0200)]
ui: fixup lost closing parenthesis

...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: user view: fix calling order of gettext
Thomas Lamprecht [Fri, 9 Jun 2023 07:52:42 +0000 (09:52 +0200)]
ui: user view: fix calling order of gettext

One must not call gettext on the already formatted string, as we
cannot translate it for any possible value, rather the format string
it self needs to be gettext'd, then the translator can position the
variable template placeholders however it's correct for their
language without having to care about any value this could be called
with.

Fixes: d057929f ("ui: user view: fix calling order of gettext")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/postinst: remove re-generation of unique machine-ID for old ISOs
Thomas Lamprecht [Fri, 9 Jun 2023 06:26:12 +0000 (08:26 +0200)]
d/postinst: remove re-generation of unique machine-ID for old ISOs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/postinst: setup pvetest repo for beta
Thomas Lamprecht [Fri, 9 Jun 2023 06:23:00 +0000 (08:23 +0200)]
d/postinst: setup pvetest repo for beta

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoupdate shipped aplliance info index
Thomas Lamprecht [Thu, 8 Jun 2023 16:41:51 +0000 (18:41 +0200)]
update shipped aplliance info index

and pull it from the Proxmox VE 8 index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopve7to8: sync over from stable-7 branch
Thomas Lamprecht [Thu, 8 Jun 2023 11:07:05 +0000 (13:07 +0200)]
pve7to8: sync over from stable-7 branch

for after-upgrade checks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph: pool: add pool number as column
Aaron Lauterer [Wed, 22 Mar 2023 09:23:24 +0000 (10:23 +0100)]
ui: ceph: pool: add pool number as column

The pool number is shown in a few places, having it easily accessible
can help to understand which pool a warning/error refers to.

For example, the PG ID consists of '{pool nr}.{pg nr}' and is shown in
every warning concerning that PG.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
11 months agoui: override description for resize task
Fiona Ebner [Tue, 30 May 2023 13:52:05 +0000 (15:52 +0200)]
ui: override description for resize task

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: replication job status: allow querying disabled jobs too
Fiona Ebner [Tue, 30 May 2023 11:32:52 +0000 (13:32 +0200)]
api: replication job status: allow querying disabled jobs too

Rather than failing with an error claiming that the job doesn't exist.
The disabled status will be visible in the result of the call.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoui: qga: Add option to turn off QGA fs-freeze/-thaw on backup
Christoph Heiss [Thu, 23 Mar 2023 11:02:47 +0000 (12:02 +0100)]
ui: qga: Add option to turn off QGA fs-freeze/-thaw on backup

Adds a default-on checkbox to the QEMU Guest Agent feature selector
controlling the 'fs-freeze-on-backup' option. If unchecked, an
additional warning is displayed that backups can potentially corrupt
with this setting off.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agofix #3428: cloud-init: add toggle for automatic upgrades
Leo Nunner [Thu, 4 May 2023 10:55:02 +0000 (12:55 +0200)]
fix #3428: cloud-init: add toggle for automatic upgrades

to control the newly introduced "ciupgrade" config parameter.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
11 months agoui: cloudinit: match backend privilege checks
Fabian Grünbichler [Wed, 3 May 2023 07:52:01 +0000 (09:52 +0200)]
ui: cloudinit: match backend privilege checks

the cloudinit options except for ipconfig are all modifiable with just
"VM.Config.Cloudinit".

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: user view: add 'Unlock TFA' button
Wolfgang Bumiller [Tue, 6 Jun 2023 10:05:05 +0000 (12:05 +0200)]
ui: user view: add 'Unlock TFA' button

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agoui: user view: show tfa lock status
Wolfgang Bumiller [Tue, 6 Jun 2023 10:05:04 +0000 (12:05 +0200)]
ui: user view: show tfa lock status

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agoapi2: network: improve code readability
Fabian Grünbichler [Wed, 7 Jun 2023 09:49:07 +0000 (11:49 +0200)]
api2: network: improve code readability

nested conditionals stretching over multiple lines are always a bit hard to
untangle, so let's make it explicit:

1. is the interface a bridge
2. if it is, are we looking for one?
3. is it something else that we are looking for?

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoapi2: network: re-use existing variable tfilter
Fabian Grünbichler [Wed, 7 Jun 2023 09:40:21 +0000 (11:40 +0200)]
api2: network: re-use existing variable tfilter

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoapi2: network: check permissions for local bridges
Alexandre Derumier [Tue, 6 Jun 2023 13:19:20 +0000 (15:19 +0200)]
api2: network: check permissions for local bridges

always check permissions, also when not filtered

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 months agoapi: backup: check param permission before pool for consistency
Thomas Lamprecht [Wed, 7 Jun 2023 14:52:38 +0000 (16:52 +0200)]
api: backup: check param permission before pool for consistency

Like it did here before 9f65a584 ("api: backup: update: check
permissions of delete params too") and like it does in the create
case.

This should not have a practical effect, it's mostly for consistency
and to avoid anybody reading anything into the different orders of
checks between update and create.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: backup/vzdump: add get_storage_param helper
Fiona Ebner [Wed, 16 Nov 2022 14:04:35 +0000 (15:04 +0100)]
api: backup/vzdump: add get_storage_param helper

to capture the logic in a single place.

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: require Datastore.Allocate on storage
Fiona Ebner [Wed, 16 Nov 2022 14:04:34 +0000 (15:04 +0100)]
api: backup: require Datastore.Allocate on storage

In particular this ensures that the user is allowed to remove data on
the storage, because configuring low retention results in removed
older backups. Of course setting the storage itself also needs to
require the same privilege then.

This is a breaking API change, but it seems sensible to require
permissions on the affected storage too.

Jobs with a dumpdir setting can be configured by root only.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: update: check permissions of delete params too
Fiona Ebner [Wed, 16 Nov 2022 14:04:33 +0000 (15:04 +0100)]
api: backup: update: check permissions of delete params too

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: update: allow only deleting
Fiona Ebner [Wed, 16 Nov 2022 14:04:32 +0000 (15:04 +0100)]
api: backup: update: allow only deleting

Previously, it was required to set something at the same time.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: update: turn delete into a hash
Fiona Ebner [Wed, 16 Nov 2022 14:04:31 +0000 (15:04 +0100)]
api: backup: update: turn delete into a hash

makes it easier to check for keys in the following patches.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoui: firewall: refactor privilege checks and prevent double click
Dominik Csapak [Wed, 7 Jun 2023 07:18:48 +0000 (09:18 +0200)]
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>
11 months agoui: firewall panel/grids : add privilege checks on buttons
Alexandre Derumier [Mon, 27 Mar 2023 10:18:22 +0000 (12:18 +0200)]
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>
11 months agoui: qemu|lxc : fix firewall menu caps
Alexandre Derumier [Mon, 27 Mar 2023 10:18:21 +0000 (12:18 +0200)]
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>
11 months agoui: clean up remnants of in-tree font-awesome files
Christoph Heiss [Wed, 3 May 2023 09:50:40 +0000 (11:50 +0200)]
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>
11 months agoaplinfo: ensure keyring is in binary format
Thomas Lamprecht [Wed, 7 Jun 2023 09:49:33 +0000 (11:49 +0200)]
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>
11 months agoappliances: switch over to Proxmox VE 8 index
Thomas Lamprecht [Wed, 7 Jun 2023 08:59:12 +0000 (10:59 +0200)]
appliances: switch over to Proxmox VE 8 index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: bump versioned dependency for libpve-access-control-perl
Thomas Lamprecht [Wed, 7 Jun 2023 09:36:19 +0000 (11:36 +0200)]
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>
11 months agoui: add Realm Sync panel
Dominik Csapak [Tue, 17 Jan 2023 11:46:59 +0000 (12:46 +0100)]
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>
11 months agoapi: add realm-sync crud api to /cluster/jobs
Dominik Csapak [Tue, 17 Jan 2023 11:46:58 +0000 (12:46 +0100)]
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>
11 months agoJobs: add RealmSync Plugin and register it
Dominik Csapak [Tue, 17 Jan 2023 11:46:57 +0000 (12:46 +0100)]
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>
11 months agoJobs: include existing types in state file regex for deletion
Dominik Csapak [Tue, 17 Jan 2023 11:46:56 +0000 (12:46 +0100)]
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>
11 months agofix #4678: ui: don't sort storage backup content by vmid by default
Dominik Csapak [Tue, 25 Apr 2023 07:21:28 +0000 (09:21 +0200)]
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>
11 months agoui: storage: backup: refactor extraColumns assignment
Dominik Csapak [Tue, 25 Apr 2023 07:21:27 +0000 (09:21 +0200)]
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>
11 months agofix #4605: drop rsyncable from zstd invocation
Fabian Grünbichler [Mon, 17 Apr 2023 07:04:18 +0000 (09:04 +0200)]
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>
11 months agoceph CLI: osd details: code/style cleanups
Thomas Lamprecht [Tue, 6 Jun 2023 16:21:38 +0000 (18:21 +0200)]
ceph CLI: osd details: code/style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveceph: add osd details command
Aaron Lauterer [Mon, 19 Dec 2022 14:46:34 +0000 (15:46 +0100)]
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>
11 months agoui: fix duplicate references when using multiple disk storage selectors
Dominik Csapak [Tue, 21 Mar 2023 13:27:11 +0000 (14:27 +0100)]
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>
11 months agofix #2641: ui: storage: expose CIFS subdir parameter on add
Leo Nunner [Wed, 8 Feb 2023 09:05:26 +0000 (10:05 +0100)]
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>
11 months agoapi: nodes: add 'migrateall' to index
Fiona Ebner [Wed, 29 Mar 2023 11:36:42 +0000 (13:36 +0200)]
api: nodes: add 'migrateall' to index

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoui: add beta text with link to bugtracker
Thomas Lamprecht [Tue, 6 Jun 2023 07:49:23 +0000 (09:49 +0200)]
ui: add beta text with link to bugtracker

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~7
Thomas Lamprecht [Mon, 5 Jun 2023 16:54:12 +0000 (18:54 +0200)]
bump version to 8.0.0~7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: dc summary: code style fix
Thomas Lamprecht [Mon, 5 Jun 2023 16:14:00 +0000 (18:14 +0200)]
ui: dc summary: code style fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph install: add pmx-hint class to hint field-label
Thomas Lamprecht [Mon, 5 Jun 2023 16:12:22 +0000 (18:12 +0200)]
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>
11 months agoui: ceph install: add hints depending on selected repo and subscriptions
Thomas Lamprecht [Mon, 5 Jun 2023 16:03:46 +0000 (18:03 +0200)]
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>
11 months agoui: ceph install wizard: allow selecting repository
Thomas Lamprecht [Mon, 5 Jun 2023 16:02:41 +0000 (18:02 +0200)]
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>
11 months agoui: ceph install: increase dimension of window with 4:3 ratio
Thomas Lamprecht [Mon, 5 Jun 2023 16:12:02 +0000 (18:12 +0200)]
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>
11 months agoui: ceph: fix code indentation in onShow of wizard
Thomas Lamprecht [Mon, 5 Jun 2023 11:42:47 +0000 (13:42 +0200)]
ui: ceph: fix code indentation in onShow of wizard

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoceph install: output some hints depending repo choice and subscription
Thomas Lamprecht [Mon, 5 Jun 2023 11:23:38 +0000 (13:23 +0200)]
ceph install: output some hints depending repo choice and subscription

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveceph: support new enterprise repository
Thomas Lamprecht [Mon, 5 Jun 2023 11:07:48 +0000 (13:07 +0200)]
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>
11 months agocli: subscription: simplify printing output in get command
Thomas Lamprecht [Mon, 5 Jun 2023 11:27:01 +0000 (13:27 +0200)]
cli: subscription: simplify printing output in get command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: subscription: factor out check for cache being valid
Thomas Lamprecht [Mon, 5 Jun 2023 11:25:42 +0000 (13:25 +0200)]
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>
11 months agoapi: subscription: style cleanups
Thomas Lamprecht [Mon, 5 Jun 2023 11:25:17 +0000 (13:25 +0200)]
api: subscription: style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: USB selector: fix typo
Thomas Lamprecht [Mon, 5 Jun 2023 10:15:09 +0000 (12:15 +0200)]
ui: USB selector: fix typo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~6
Wolfgang Bumiller [Mon, 5 Jun 2023 08:05:38 +0000 (10:05 +0200)]
bump version to 8.0.0~6

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agovzdump: add comment about why we still split_args for arrays
Wolfgang Bumiller [Mon, 5 Jun 2023 08:02:58 +0000 (10:02 +0200)]
vzdump: add comment about why we still split_args for arrays

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agovzdump: prepare 'exclude-path' for array format
Dominik Csapak [Fri, 12 May 2023 12:23:51 +0000 (14:23 +0200)]
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>