]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
2 years agopartially close #438: vzdump: support setting notes-template
Fabian Ebner [Wed, 27 Apr 2022 15:41:10 +0000 (17:41 +0200)]
partially close #438: vzdump: support setting notes-template

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: restore: fix syntax error introduced in previous commit
Fabian Ebner [Thu, 28 Apr 2022 09:29:42 +0000 (11:29 +0200)]
ui: restore: fix syntax error introduced in previous commit

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: restore overrides: switch from column to hbox+panel layout
Thomas Lamprecht [Thu, 28 Apr 2022 09:12:19 +0000 (11:12 +0200)]
ui: restore overrides: switch from column to hbox+panel layout

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: restore: display "Hostname" for container
Fabian Ebner [Thu, 28 Apr 2022 07:04:09 +0000 (09:04 +0200)]
ui: restore: display "Hostname" for container

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: restore: group override settings in a fieldset
Fabian Ebner [Thu, 28 Apr 2022 07:04:08 +0000 (09:04 +0200)]
ui: restore: group override settings in a fieldset

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: restore: allow override of some settings
Fabian Ebner [Tue, 26 Apr 2022 12:30:54 +0000 (14:30 +0200)]
ui: restore: allow override of some settings

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: restore: disallow empty storage selection if it wouldn't work
Fabian Ebner [Tue, 26 Apr 2022 12:30:53 +0000 (14:30 +0200)]
ui: restore: disallow empty storage selection if it wouldn't work

Namely, if there is a storage in the backup configuration that's not
available on the current node.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui; datacenter options: add next-id editor
Thomas Lamprecht [Wed, 27 Apr 2022 18:34:37 +0000 (20:34 +0200)]
ui; datacenter options: add next-id editor

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix replication fail count tests & bump libpve-guest-common-perl b-d
Thomas Lamprecht [Wed, 27 Apr 2022 16:53:27 +0000 (18:53 +0200)]
fix replication fail count tests & bump libpve-guest-common-perl b-d

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi2: network: anybridge: re-add regular bridges
Fabian Grünbichler [Wed, 27 Apr 2022 11:36:00 +0000 (13:36 +0200)]
api2: network: anybridge: re-add regular bridges

commit 89d146f207225bb8ca2e01d7e79000bb37a227d1 introduced permission
checks here that caused all regular bridges to be removed from the
returned list as soon as the SDN package is installed, unless the user
is root@pam or there exists a VNET with the same ID.

this is arguably a breaking change, so limit the priv check to actually
defined VNETs for the time being, and add ALL regular bridges
uncondtionally like before.

get_local_vnets already filters by the same prvs, so we need to get the
full config to find out which IDs are VNETs and which are not.

once/iff we introduce ACL paths for *all* bridges in the future, we can
limit accordingly here.

CC: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoapi: next-id: honor new datacenter.cfg upper/lower range option
Thomas Lamprecht [Wed, 27 Apr 2022 11:14:13 +0000 (13:14 +0200)]
api: next-id: honor new datacenter.cfg upper/lower range option

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: support setting protected status
Fabian Ebner [Thu, 7 Apr 2022 10:05:40 +0000 (12:05 +0200)]
vzdump: support setting protected status

Check the number of protected backups early if the protected flag
is set.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agofix #3955: vzdump: new: also send mail for error during job-init hook
Fabian Ebner [Tue, 19 Apr 2022 08:45:22 +0000 (10:45 +0200)]
fix #3955: vzdump: new: also send mail for error during job-init hook

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: new: add add_error helper
Fabian Ebner [Tue, 19 Apr 2022 08:45:21 +0000 (10:45 +0200)]
vzdump: new: add add_error helper

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: sdn: zone evpn: delete exitnodes-primary if empty
Alexandre Derumier [Wed, 20 Apr 2022 14:19:38 +0000 (16:19 +0200)]
ui: sdn: zone evpn: delete exitnodes-primary if empty

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoreplication: split out error handling and include more info in mail
Thomas Lamprecht [Wed, 27 Apr 2022 07:49:11 +0000 (09:49 +0200)]
replication: split out error handling and include more info in mail

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoreplication: sent always mail for first three tries and move helper
Thomas Lamprecht [Wed, 27 Apr 2022 07:48:27 +0000 (09:48 +0200)]
replication: sent always mail for first three tries and move helper

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: replication: don't send mails about failed replication only once
Fabian Ebner [Fri, 22 Apr 2022 12:15:48 +0000 (14:15 +0200)]
api: replication: don't send mails about failed replication only once

but rather multiple times becoming exponentially less frequent.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agod/control: bump proxmox-widget-toolkit dependency to 3.4-9
Thomas Lamprecht [Tue, 26 Apr 2022 14:06:03 +0000 (16:06 +0200)]
d/control: bump proxmox-widget-toolkit dependency to 3.4-9

to have the moved markdown notes component available, among other
things

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dont show '__default__' in renderer
Dominik Csapak [Tue, 26 Apr 2022 07:34:27 +0000 (09:34 +0200)]
ui: dont show '__default__' in renderer

with the recent rework of the render/maps/arrays, we now
show 'Default (__default__)'. Since '__default__' is only an internal
value in the gui, don't expose it by explicitely checking for it

in the other render functions it works already because we either construct
the text differently (console_map) or we check the result from
parsing (vga_driver)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: realm sync: use fieldset for remove-vanished & ux/wording
Thomas Lamprecht [Tue, 26 Apr 2022 12:25:36 +0000 (14:25 +0200)]
ui: realm sync: use fieldset for remove-vanished & ux/wording

Use fieldsets, which are just way nicer for grouping these things.

Disable the "remove properties" checkbox if we'd remove the whole
user anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: realm sync: replace 'full' and 'purge' with 'remove-vanished'
Dominik Csapak [Mon, 28 Mar 2022 12:38:06 +0000 (14:38 +0200)]
ui: realm sync: replace 'full' and 'purge' with 'remove-vanished'

in default sync options and the sync window. We do this by exposing
the individual flags as checkboxes. We get the mapped value from the
backend so we do not have to handle 'old' values here.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agod/control: drop unused liblocale-po-perl build dependency
Thomas Lamprecht [Tue, 26 Apr 2022 11:28:05 +0000 (13:28 +0200)]
d/control: drop unused liblocale-po-perl build dependency

Became unused with commit 2bb03197d3f7c33d19f0979eb08e76d5814be162
that moved the locale stuff to its own repo proxmox-i18n

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: utils: drop some useles _array helpers, just use Object.entries
Thomas Lamprecht [Tue, 26 Apr 2022 07:05:35 +0000 (09:05 +0200)]
ui: utils: drop some useles _array helpers, just use Object.entries

if we need to enforce ordering it may help to reintroduce them
though.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: utils: rework kvm-vga/keymaps and console-viewer schema handling
Thomas Lamprecht [Tue, 26 Apr 2022 06:59:15 +0000 (08:59 +0200)]
ui: utils: rework kvm-vga/keymaps and console-viewer schema handling

shave off some bloat

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: Utils: remove unnecessary render_kvm_vga_driver
Dominik Csapak [Wed, 9 Mar 2022 14:09:14 +0000 (15:09 +0100)]
ui: Utils: remove unnecessary render_kvm_vga_driver

the 'value' here is already the rendered text, passing it through
render again does not make sense

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoceph: services: broadcast versions: improve requesting old version
Fabian Ebner [Tue, 30 Nov 2021 10:38:12 +0000 (11:38 +0100)]
ceph: services: broadcast versions: improve requesting old version

to avoid a "malformed JSON string" warning when there is no old
version present (e.g. after starting a cluster).

get_node_kv will always return something that evaluates to true, so
instead, test if the result has an entry for the current node. Also,
it's enough to request the kv for the current node only.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: fix adding hostpci > 5
Dominik Csapak [Fri, 11 Mar 2022 07:45:45 +0000 (08:45 +0100)]
ui: fix adding hostpci > 5

by using the limits from PVE.Utils

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: vm display: refactor and cleanup
Thomas Lamprecht [Sun, 24 Apr 2022 10:03:34 +0000 (12:03 +0200)]
ui: vm display: refactor and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup restore: add hint to window title on overwrite restore
Thomas Lamprecht [Sat, 23 Apr 2022 11:24:17 +0000 (13:24 +0200)]
ui: backup restore: add hint to window title on overwrite restore

we prompt for confirmation in that case anyway, but some subtle, but
extra difference may still help

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup restore: show "make unique" field also for self-overrride-existing
Thomas Lamprecht [Sat, 23 Apr 2022 11:03:43 +0000 (13:03 +0200)]
ui: backup restore: show "make unique" field also for self-overrride-existing

For example, relevant if the filterVMID checkbox got turned off. But
a user may also want to make the restored VM unique in other cases
too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup restore: use displayEdit field for guest selector
Thomas Lamprecht [Sat, 23 Apr 2022 11:00:46 +0000 (13:00 +0200)]
ui: backup restore: use displayEdit field for guest selector

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup restore: rework to leverage more viewcontroller and cleanup
Thomas Lamprecht [Sat, 23 Apr 2022 10:39:28 +0000 (12:39 +0200)]
ui: backup restore: rework to leverage more viewcontroller and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: disk storage selector: support storage with multiple formats without qcow2
Fabian Ebner [Thu, 17 Mar 2022 08:37:48 +0000 (09:37 +0100)]
ui: disk storage selector: support storage with multiple formats without qcow2

For future or external storages where the assumption "multiple formats implies
qcow2 is supported" doesn't hold.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: disk storage selector: never send format when hideFormat is true
Fabian Ebner [Thu, 17 Mar 2022 08:37:47 +0000 (09:37 +0100)]
ui: disk storage selector: never send format when hideFormat is true

The backend will pick an appropriate format when nothing is specified. The
comment made it sound like 'raw' would be sent, but that didn't actually happen
on file-based storages, and now no format is sent, so adapt the comment too.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: lxc resources: modernize & simplify
Thomas Lamprecht [Thu, 14 Apr 2022 05:50:25 +0000 (07:50 +0200)]
ui: lxc resources: modernize & simplify

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: move NotesView panel and NotesEdit window to widget kit
Stefan Sterz [Tue, 12 Apr 2022 10:34:22 +0000 (12:34 +0200)]
ui: move NotesView panel and NotesEdit window to widget kit

this removes the NotesView panel and NotesEdit and replaces them with
with the version from the widget kit. requires a bump of the widget
toolkit.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
2 years agoui: disk reasign: condense code, some style improvements
Thomas Lamprecht [Wed, 13 Apr 2022 09:34:31 +0000 (11:34 +0200)]
ui: disk reasign: condense code, some style improvements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: disk reassign: improve title and field-label
Thomas Lamprecht [Fri, 8 Apr 2022 13:00:58 +0000 (15:00 +0200)]
ui: disk reassign: improve title and field-label

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: disk reassign: drop useless intermediate form
Thomas Lamprecht [Fri, 8 Apr 2022 12:56:55 +0000 (14:56 +0200)]
ui: disk reassign: drop useless intermediate form

The form is basically a 1:1 copy from what the edit window gives us
for free already anyway, so just drop it.

best viewed with `git show -w`

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: disk reassign: improve default focus behavior
Thomas Lamprecht [Fri, 8 Apr 2022 12:55:06 +0000 (14:55 +0200)]
ui: disk reassign: improve default focus behavior

avoid that opening the edit window makes the guest-selectors combobox
"jump" in ones face.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: move disk reassign into window/ folder
Thomas Lamprecht [Thu, 7 Apr 2022 12:33:58 +0000 (14:33 +0200)]
ui: move disk reassign into window/ folder

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: hdmove: modernize/refactor
Aaron Lauterer [Tue, 5 Apr 2022 12:30:16 +0000 (14:30 +0200)]
ui: hdmove: modernize/refactor

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: BusTypeSelector: change noVirtIO to withVirtIO
Aaron Lauterer [Tue, 5 Apr 2022 12:30:15 +0000 (14:30 +0200)]
ui: BusTypeSelector: change noVirtIO to withVirtIO

Double negated properties make it harder than necessary to parse
conditions.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: lxc/qemu: add disk reassign and action submenu
Aaron Lauterer [Tue, 5 Apr 2022 12:30:14 +0000 (14:30 +0200)]
ui: lxc/qemu: add disk reassign and action submenu

For the new HDReassign component, we follow the approach of HDMove to
have one componend for qemu and lxc.

To avoid button clutter, a new "Disk/Volume action" button is
introduced. It holds the Move, Reassign and Resize buttons in a
sub-menu.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: utils: add nextFreeMP
Aaron Lauterer [Tue, 5 Apr 2022 12:30:13 +0000 (14:30 +0200)]
ui: utils: add nextFreeMP

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: utils: refactor mps to mp
Aaron Lauterer [Tue, 5 Apr 2022 12:30:12 +0000 (14:30 +0200)]
ui: utils: refactor mps to mp

Using the actual config key instead of the pluralization, makes it
easier in the situations where we need to match against it.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: lxc: resources: consider rootfs as a disk again
Fabian Ebner [Thu, 7 Apr 2022 12:15:44 +0000 (14:15 +0200)]
ui: lxc: resources: consider rootfs as a disk again

Commit 809f6b6e ("ui: lxc resources: switch to vector based font
awesome icons") seems like an innocent change, but it broke the
(very brittle) logic here by removing the tdCls for rootfs.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: storage edit: retention: add max-protected-backups setting
Fabian Ebner [Tue, 29 Mar 2022 12:53:16 +0000 (14:53 +0200)]
ui: storage edit: retention: add max-protected-backups setting

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: always pass full list to prune marking
Fabian Grünbichler [Wed, 6 Apr 2022 12:05:53 +0000 (14:05 +0200)]
vzdump: always pass full list to prune marking

else this single call site is subtly different from all the rest, which
could cause problems further down the line if we ever change the prune
logic.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agovzdump: backup limit: only count unprotected backups
Fabian Ebner [Tue, 29 Mar 2022 12:53:15 +0000 (14:53 +0200)]
vzdump: backup limit: only count unprotected backups

since they are the ones relevant for pruning and protected backups
have their own separate limit.

Since get_backup_file_list is only used in places where the
unprotected backups are needed, adapt the helper accordingly.

If there is a storage, use PVE::Storage::volume_list to count the
unprotected backups. This avoids a direct invocation of the
proxmox-backup-client for PBS and the limit check can also work for
external storage plugins which might not be dir-based or name the
backups differently.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: backup file list: drop unused parameter
Fabian Ebner [Tue, 29 Mar 2022 12:53:14 +0000 (14:53 +0200)]
vzdump: backup file list: drop unused parameter

It's not used anymore since 77c7945123724564ea909439ea51b537a5d0b6c2
aligned pruning in a dumpdir with pruning on a storage.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agofix #3976: api/backup: make schedule/starttime truly optional on update
Dominik Csapak [Fri, 1 Apr 2022 06:14:13 +0000 (08:14 +0200)]
fix #3976: api/backup: make schedule/starttime truly optional on update

on create we require either starttime (+dow) or a schedule, but when
updating an existing job, this is not necessary

before we changed to schedules, the starttime was not optional either on
update, but i think there is no reason to require the user to send the
schedule/startime along every time.

the gui will send all values every time, so that was never a problem there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: render storage type: improve fallback
Thomas Lamprecht [Fri, 1 Apr 2022 15:28:36 +0000 (17:28 +0200)]
ui: render storage type: improve fallback

We support external storage plugins, e.g., for proprietary
technology, so a "unknown" value here may not actually mean that we
missed anything, so just return the type value 1:1 as fallback, that
gives the user a better idea about such a storage entry.

Reported-by: Joshua Huber <jhuber@blockbridge.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoJobs: don't schedule jobs with no computable next event
Dominik Csapak [Fri, 1 Apr 2022 11:24:44 +0000 (13:24 +0200)]
Jobs: don't schedule jobs with no computable next event

if we have a schedule that has no 'next event' we should skip the scheduling
instead of schedule every round

this can happen if someone sets an schedule that has no next match.
some examples:
* 2-31 00:00 (there is not February 31st)
* mon 2022-04-02 (this would be a saturday, not monday)
* 1970-1-1 (or every other exact date in the past)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: vm hardware: module wide refactoring/cleanups/style changes/fixes
Thomas Lamprecht [Fri, 1 Apr 2022 14:43:52 +0000 (16:43 +0200)]
ui: vm hardware: module wide refactoring/cleanups/style changes/fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: vm hardware: fix add-menu itemId casing
Thomas Lamprecht [Fri, 1 Apr 2022 14:41:44 +0000 (16:41 +0200)]
ui: vm hardware: fix add-menu itemId casing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: vm: factor out add-HW menu handler to higher order fn
Thomas Lamprecht [Fri, 1 Apr 2022 14:06:14 +0000 (16:06 +0200)]
ui: vm: factor out add-HW menu handler to higher order fn

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: lxc resources: refactor add menu handler
Thomas Lamprecht [Fri, 1 Apr 2022 11:35:10 +0000 (13:35 +0200)]
ui: lxc resources: refactor add menu handler

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: lxc resources: switch to vector based font awesome icons
Thomas Lamprecht [Fri, 1 Apr 2022 09:20:54 +0000 (11:20 +0200)]
ui: lxc resources: switch to vector based font awesome icons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: lxc resources: support font awesome icons directly
Thomas Lamprecht [Fri, 1 Apr 2022 08:44:01 +0000 (10:44 +0200)]
ui: lxc resources: support font awesome icons directly

like we do for the VMs hardware view

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: icons: swap pci bitmap to svg
Thomas Lamprecht [Fri, 1 Apr 2022 08:38:08 +0000 (10:38 +0200)]
ui: icons: swap pci bitmap to svg

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: vzdump: extract config: add content type check
Fabian Ebner [Wed, 30 Mar 2022 10:24:35 +0000 (12:24 +0200)]
api: vzdump: extract config: add content type check

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopveam: remove: add content type check
Fabian Ebner [Wed, 30 Mar 2022 10:24:34 +0000 (12:24 +0200)]
pveam: remove: add content type check

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoapi: vzdump: extract config: check for VM.Backup privilege
Fabian Ebner [Wed, 30 Mar 2022 10:24:27 +0000 (12:24 +0200)]
api: vzdump: extract config: check for VM.Backup privilege

In preparation to have check_volume_access() always allow access for
users with Datastore.Allocate privilege. As to not automatically give
all such users permission to extract the config too.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: css: set correct font awesome grid font-size
Thomas Lamprecht [Thu, 31 Mar 2022 14:53:07 +0000 (16:53 +0200)]
ui: css: set correct font awesome grid font-size

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu: switch CD drive icon to SVG
Thomas Lamprecht [Thu, 31 Mar 2022 14:52:39 +0000 (16:52 +0200)]
ui: qemu: switch CD drive icon to SVG

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu: switch memory icon to SVG
Thomas Lamprecht [Thu, 31 Mar 2022 14:52:14 +0000 (16:52 +0200)]
ui: qemu: switch memory icon to SVG

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: cpu icon: enable crispEdges and increase stroke width slightly
Thomas Lamprecht [Thu, 31 Mar 2022 14:02:47 +0000 (16:02 +0200)]
ui: cpu icon: enable crispEdges and increase stroke width slightly

crisp edges avoids antialiasing, which is rather counterproductive on
this icon with straight lines that are in 90° to each other.

The higher stroke width makes it more similar to the previously used
bitmap one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu: switch processor icon to SVG
Thomas Lamprecht [Thu, 31 Mar 2022 13:43:40 +0000 (15:43 +0200)]
ui: qemu: switch processor icon to SVG

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocss: fix parenthesis opening style
Thomas Lamprecht [Thu, 31 Mar 2022 13:39:13 +0000 (15:39 +0200)]
css: fix parenthesis opening style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoreport: lsblk: merge/group parents of sub-trees
Thomas Lamprecht [Wed, 30 Mar 2022 13:33:10 +0000 (15:33 +0200)]
report: lsblk: merge/group parents of sub-trees

can cut down lines outputted, especially on lvm-thin or other systems
that have volumes listed duplicated. E.g.,

Note, if nothing can be merged the output is 1:1 the same as before,
so seems like a win-win to me.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoreport: lsblk: output more columns
Thomas Lamprecht [Wed, 30 Mar 2022 13:30:29 +0000 (15:30 +0200)]
report: lsblk: output more columns

Output columns that can help on debugging (e.g., physical sector
size, hot-pluggable, rotational, transport) or make it easier to
cross-correlate (model, fs-type)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoreport: report FS type in df call
Thomas Lamprecht [Wed, 30 Mar 2022 13:24:23 +0000 (15:24 +0200)]
report: report FS type in df call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: sdn: options: flex all and drop collapsible
Thomas Lamprecht [Tue, 29 Mar 2022 15:37:27 +0000 (17:37 +0200)]
ui: sdn: options: flex all and drop collapsible

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-12
Thomas Lamprecht [Tue, 29 Mar 2022 15:30:16 +0000 (17:30 +0200)]
bump version to 7.1-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: sdn: fix options panel headings case
Thomas Lamprecht [Tue, 29 Mar 2022 15:32:24 +0000 (17:32 +0200)]
ui: sdn: fix options panel headings case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapl info: update index to current repository state
Thomas Lamprecht [Tue, 29 Mar 2022 08:37:40 +0000 (10:37 +0200)]
apl info: update index to current repository state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: sdn : controllers: bgp : add bgp-multipath-as-path-relax
Alexandre Derumier [Fri, 11 Feb 2022 09:33:45 +0000 (10:33 +0100)]
ui: sdn : controllers: bgp : add bgp-multipath-as-path-relax

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoui: sdn: zones: evpn : add rt-import
Alexandre Derumier [Fri, 11 Feb 2022 09:33:44 +0000 (10:33 +0100)]
ui: sdn: zones: evpn : add rt-import

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoui: sdn: zones: evpn : move controller option on top of the form
Alexandre Derumier [Fri, 11 Feb 2022 09:33:43 +0000 (10:33 +0100)]
ui: sdn: zones: evpn : move controller option on top of the form

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoui: sdn: zones: evpn : add exitnodes-primary
Alexandre Derumier [Fri, 11 Feb 2022 09:33:42 +0000 (10:33 +0100)]
ui: sdn: zones: evpn : add exitnodes-primary

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoui: sdn: zones: evpn : add disable-arp-nd-suppression
Alexandre Derumier [Fri, 11 Feb 2022 09:33:41 +0000 (10:33 +0100)]
ui: sdn: zones: evpn : add disable-arp-nd-suppression

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoapl info: trailing whitespace cleanups
Thomas Lamprecht [Tue, 29 Mar 2022 04:53:28 +0000 (06:53 +0200)]
apl info: trailing whitespace cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: cluster: refactor and cleanup
Thomas Lamprecht [Thu, 24 Mar 2022 13:11:01 +0000 (14:11 +0100)]
api: cluster: refactor and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: add missing libproxmox-rs-perl dependency
Fabian Grünbichler [Mon, 28 Mar 2022 09:34:05 +0000 (11:34 +0200)]
d/control: add missing libproxmox-rs-perl dependency

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoapi: fill in nodeconfig schema
Wolfgang Bumiller [Thu, 17 Mar 2022 10:26:02 +0000 (11:26 +0100)]
api: fill in nodeconfig schema

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agonodeconfig: use common config parser
Wolfgang Bumiller [Thu, 17 Mar 2022 10:26:01 +0000 (11:26 +0100)]
nodeconfig: use common config parser

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agod/control: bump versioned dependency for pve-common
Thomas Lamprecht [Thu, 17 Mar 2022 13:23:03 +0000 (14:23 +0100)]
d/control: bump versioned dependency for pve-common

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-11
Thomas Lamprecht [Thu, 17 Mar 2022 13:09:16 +0000 (14:09 +0100)]
bump version to 7.1-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoswitch to Proxmox::RS::CalendarEvent
Wolfgang Bumiller [Tue, 1 Mar 2022 14:55:48 +0000 (15:55 +0100)]
switch to Proxmox::RS::CalendarEvent

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoapi: sdn: code/whitespace refactor/fixes
Thomas Lamprecht [Wed, 16 Mar 2022 16:00:50 +0000 (17:00 +0100)]
api: sdn: code/whitespace refactor/fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi2 : network: anybridge: don't display bridges if user have access to vnets.
Alexandre Derumier [Mon, 4 Oct 2021 06:08:51 +0000 (08:08 +0200)]
api2 : network: anybridge: don't display bridges if user have access to vnets.

This remove vmbr* from bridgeselector if user have access to vnets.
if user need to have also access to vmbr, we can add a permission
in path "/sdn/vnets/vmbrX"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agopermpathstore: add sdn zones
Alexandre Derumier [Mon, 4 Oct 2021 06:08:50 +0000 (08:08 +0200)]
permpathstore: add sdn zones

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoui: sdn: zones: evpn : add exitnodes-local-routing && advertise-subnets
Alexandre Derumier [Sun, 5 Sep 2021 07:37:26 +0000 (09:37 +0200)]
ui: sdn: zones: evpn : add exitnodes-local-routing && advertise-subnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agoui: lxc options: disable features edit as non-root when container is privileged
Fabian Ebner [Fri, 13 Aug 2021 09:10:12 +0000 (11:10 +0200)]
ui: lxc options: disable features edit as non-root when container is privileged

The backend won't allow any edits in this case, so better just disable
the edit button altogether.

Co-developed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agogui: add help button to qm guest agent window
Aaron Lauterer [Mon, 25 Jan 2021 14:54:10 +0000 (15:54 +0100)]
gui: add help button to qm guest agent window

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: fw grid: eslint auto-fixes
Thomas Lamprecht [Wed, 16 Mar 2022 14:21:37 +0000 (15:21 +0100)]
ui: fw grid: eslint auto-fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: firwall: change icmp type selector to a combogrid
Mira Limbeck [Fri, 29 May 2020 12:22:06 +0000 (14:22 +0200)]
ui: firwall: change icmp type selector to a combogrid

The combogrid contains all valid icmp types that iptables accepts. In
addition to the names, the Type[/Code] value is shown as well. But
specifying Type[/Code] is not supported.

As the simple solution with setStore() does not work to change the
store for the combogrid, we simply have 2 different
ICMPTypeSelectors, one for IPv4, the other for IPv6, which are
switched depending on the specified protocol.

As disabled fields don't submit their value, we can keep the values
for the dport and both icmp-type fields when switching protocols.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodaily update timer: start already on 01:00 to avoid dst change issue
Thomas Lamprecht [Mon, 14 Mar 2022 08:04:25 +0000 (09:04 +0100)]
daily update timer: start already on 01:00 to avoid dst change issue

see https://github.com/systemd/systemd/issues/5595

Has also the side effect of spreading out the updates for our most
used product over a longer time span, reducing load on the CDN.

Note, this is now the same timer setting as PBS used from the start.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>