]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
23 months agofix #4026: add 'repeat-missed' option for jobs
Dominik Csapak [Mon, 13 Jun 2022 13:24:08 +0000 (15:24 +0200)]
fix #4026: add 'repeat-missed' option for jobs

like systemd-timers 'persistent'. so that the user can configure it to not be
run after powering up when it was previously missed

this reverses the default behaviour to not run missed jobs after pvescheduler
was started, since most of the time that's not the desired behaviour

since we don't use it for updated schedules anymore, rename
'updated_job_schedule' to 'update_last_runtime'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
23 months agofix #4111: replication: don't send mail when fail count is zero
Fabian Ebner [Tue, 14 Jun 2022 09:47:32 +0000 (11:47 +0200)]
fix #4111: replication: don't send mail when fail count is zero

which can happen when failing to obtain the guest's migration lock.
This led to a lot of mails being sent during migration (timeout for
obtaining lock is only 2 seconds and we run it in a loop).

One could argue that obtaining the lock should increase the fail
count, but without the lock, the job state should not be touched and
even the first three mails upon migration could be considered spam.

Fixes: fa4bb659 ("replication: sent always mail for first three tries and move helper")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
23 months agofix #3961: pveam: error on 'list' if storage doesn't exist
Oguz Bektas [Mon, 13 Jun 2022 10:13:16 +0000 (12:13 +0200)]
fix #3961: pveam: error on 'list' if storage doesn't exist

storage_check_enabled() already dies with an appropriate error message
so we don't have to handle it here

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
23 months agofix #3597: ui: ceph setup: avoid autofill of monitor network
Aaron Lauterer [Mon, 2 May 2022 14:05:05 +0000 (16:05 +0200)]
fix #3597: ui: ceph setup: avoid autofill of monitor network

By not auto filling the Ceph public network we can avoid accidental
clicks on 'Next' which will cause the first Mon to be created with a
potentially wrong network. While that is fixable, it is tedious and
can be easily avoided by making the user always select the network to
use.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Tested-by: Stefan Hrdlicka<s.hrdlicka@proxmox.com>
 [ T: adapted commit subject to be more specific and match our common
   style ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoapi: ceph: mon: make checking for duplicate addresses more robust
Fabian Ebner [Fri, 4 Mar 2022 13:09:08 +0000 (14:09 +0100)]
api: ceph: mon: make checking for duplicate addresses more robust

Because $mon->{addr} might come with a port attached (affects monitors
created with PVE 5.4 as reported in the community forum [0]), or even
be a hostname (according to the code in Ceph/Services.pm). Although
the latter shouldn't happen for configurations created by PVE.

[0]: https://forum.proxmox.com/threads/105904/

Fixes: 9e989449 ("api: ceph: mon: fix handling of IPv6 addresses in assert_mon_prerequisites")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoreport: add ceph device list
Aaron Lauterer [Tue, 31 May 2022 12:44:30 +0000 (14:44 +0200)]
report: add ceph device list

Can help a lot to identify which OSD is using which physical disk

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: qemu disk edit: fix typo in view model variable name
Matthias Heiserer [Fri, 27 May 2022 11:48:06 +0000 (13:48 +0200)]
ui: qemu disk edit: fix typo in view model variable name

Worked before because we always set the correct one manually in the
view controllers init and scsi-controller change handler.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
 [ T: added actual subject and reworded commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agominor code style clenaup and comment wording
Thomas Lamprecht [Sat, 28 May 2022 07:12:21 +0000 (09:12 +0200)]
minor code style clenaup and comment wording

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-4
Thomas Lamprecht [Thu, 12 May 2022 15:36:46 +0000 (17:36 +0200)]
bump version to 7.2-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoconfigs: vzdump: add notes-template default
Fabian Ebner [Mon, 9 May 2022 10:34:13 +0000 (12:34 +0200)]
configs: vzdump: add notes-template default

so users can see that it can be configured here.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: manual backup: also set notes-template default
Fabian Ebner [Mon, 9 May 2022 10:34:12 +0000 (12:34 +0200)]
ui: manual backup: also set notes-template default

like is done for other vzdump options already.

Requested in the community forum:
https://forum.proxmox.com/threads/108970/#post-468655

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: avoid 'requires' constraint when parsing defaults
Fabian Ebner [Mon, 9 May 2022 10:34:11 +0000 (12:34 +0200)]
vzdump: avoid 'requires' constraint when parsing defaults

to avoid warnings like
parse error in '/etc/vzdump.conf' - 'storage': missing property -
'notes-template' requires this property
when there is no default for the required property configured.

In new(), the defaults are mixed in with the regular CLI/API
parameters, so re-check if the required property is set. If it's not,
the defaults do not apply to the current run, and can be dropped.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: manual backup: list possible template variables directly
Fabian Ebner [Mon, 9 May 2022 10:34:10 +0000 (12:34 +0200)]
ui: manual backup: list possible template variables directly

rather than as a tooltip.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: generate notes: initialize potentially undef values
Fabian Ebner [Mon, 9 May 2022 10:34:09 +0000 (12:34 +0200)]
vzdump: generate notes: initialize potentially undef values

For VMs, $task->{hostname} might be undef and when running on a
stand-alone node, there is no cluster name.

Reported-by: Marco Gabriel <mgabriel@inett.de>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: verify parameters: properly verify notes-template
Fabian Ebner [Mon, 9 May 2022 10:34:08 +0000 (12:34 +0200)]
vzdump: verify parameters: properly verify notes-template

instead of just checking for a newline, do a full check already.

Also do the check at the beginning of generate_notes() for consistency
and remove the check after expansion to avoid failing late for things
like '{{cl{{node}}er}}' (which can even expand to a valid variable
making the error even more confusing).

Co-developed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: move new node options below hosts entry
Thomas Lamprecht [Thu, 12 May 2022 14:40:39 +0000 (16:40 +0200)]
ui: move new node options below hosts entry

avoid splitting the related DNS and Hosts settings in the middle

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3994: ui: add Options entry in the node System menu
Daniel Tschlatscher [Fri, 6 May 2022 12:39:10 +0000 (14:39 +0200)]
fix #3994: ui: add Options entry in the node System menu

Add the subentry "Options" in the "System" menu to expose some
options in the GUI which were not exposed before.

Added a new file for displaying and editing the node config options
which were not exposed through the GUI yet. Namely those are the
settings for wakeonlan and startall-on-boot-delay. Edited the
Makefile to include the newly created file.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
2 years agogui: VM Create wizard - display default scsi controller correctly
Daniel Tschlatscher [Thu, 12 May 2022 10:00:04 +0000 (12:00 +0200)]
gui: VM Create wizard - display default scsi controller correctly

Fixed a cosmetic issue where in the VM creation wizard the SCSI
controller would not be displayed correctly if the default value
"Default (LSI 53C895A)" was selected. In this case, "__default__"
would be printed for the user after progressing into the next "Disks"
pane.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
2 years agod/control: bump versioned dependency for libpve-storage-perl
Thomas Lamprecht [Thu, 12 May 2022 13:08:01 +0000 (15:08 +0200)]
d/control: bump versioned dependency for libpve-storage-perl

to ensure we can add and use namespaces for PBS storages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: storage: add namespace support when creating PBS storage
Thomas Lamprecht [Thu, 12 May 2022 13:07:38 +0000 (15:07 +0200)]
ui: storage: add namespace support when creating PBS storage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix # 4044: ui: hd move: avoid bogus progress bar, show task viewer
Thomas Lamprecht [Wed, 11 May 2022 14:23:11 +0000 (16:23 +0200)]
fix # 4044: ui: hd move: avoid bogus progress bar, show task viewer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-3
Thomas Lamprecht [Wed, 4 May 2022 06:46:56 +0000 (08:46 +0200)]
bump version to 7.2-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: fix unknown variable name error, add newline
Thomas Lamprecht [Wed, 4 May 2022 06:19:35 +0000 (08:19 +0200)]
vzdump: fix unknown variable name error, add newline

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: notes-template: improve check for unknown variable
Fabian Ebner [Tue, 3 May 2022 11:17:59 +0000 (13:17 +0200)]
vzdump: notes-template: improve check for unknown variable

so that '{{foo}}{{bar}}' is not detected as being an unknown variable
named 'foo}}{{bar', but as 'foo' (and 'bar').

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: notes-template: avoid escaping meta-characters upon replace
Fabian Ebner [Tue, 3 May 2022 11:17:58 +0000 (13:17 +0200)]
vzdump: notes-template: avoid escaping meta-characters upon replace

which is caused by the quoting operators \Q...\E. The actual intention
was to avoid such surprises.

Fixes: e01438a7 ("partially close #438: vzdump: support setting notes-template")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoapi: ceph pool: reword ec desc full textwidth and reword slightly
Thomas Lamprecht [Wed, 4 May 2022 05:14:56 +0000 (07:14 +0200)]
api: ceph pool: reword ec desc full textwidth and reword slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoceph pools create: enhance erasure-code description
Aaron Lauterer [Tue, 3 May 2022 11:58:08 +0000 (13:58 +0200)]
ceph pools create: enhance erasure-code description

Mention which optional parameters will be used for the replicated
metadata pool but won't have an effect on the erasure coded data pool.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoceph pools create: remove crush_rule for ec pool data
Aaron Lauterer [Tue, 3 May 2022 11:58:07 +0000 (13:58 +0200)]
ceph pools create: remove crush_rule for ec pool data

The crush rule is an optional paramter which can be used for the
metadata pool, but the erasure coded data pool will always get its own
crush rule. Therefore this parameter can not be adapted.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoschedule-analyze: fix schedules with limited runs
Dominik Csapak [Tue, 3 May 2022 14:10:25 +0000 (16:10 +0200)]
schedule-analyze: fix schedules with limited runs

When a schedule only has a limited amount of runs it can happen
(e.g. 2022-10-01 8:00/30), $next will be undef after the last run.
Exit early in that case.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoupdate aplinfo
Thomas Lamprecht [Tue, 3 May 2022 05:23:22 +0000 (07:23 +0200)]
update aplinfo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-2
Thomas Lamprecht [Mon, 2 May 2022 15:33:40 +0000 (17:33 +0200)]
bump version to 7.2-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: disk reassign: remove unused reference and bind
Matthias Heiserer [Mon, 2 May 2022 14:24:23 +0000 (16:24 +0200)]
ui: disk reassign: remove unused reference and bind

They are not used anywhere else, so I assume they were left over from
an earlier version.
Also, sometimes "[object object] flashes in the Target Guest field
when opening the reassign window, with this removed it doesn't occur.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
Tested-By: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: snapshot tree: warn that current state is lost when confirming rollback
Fabian Ebner [Mon, 2 May 2022 12:21:53 +0000 (14:21 +0200)]
ui: snapshot tree: warn that current state is lost when confirming rollback

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: ceph pools: add pool type column
Aaron Lauterer [Mon, 2 May 2022 08:09:28 +0000 (10:09 +0200)]
ui: ceph pools: add pool type column

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: ceph pool edit: disable size and crush rule for erasure pools
Aaron Lauterer [Mon, 2 May 2022 08:09:27 +0000 (10:09 +0200)]
ui: ceph pool edit: disable size and crush rule for erasure pools

They cannot be changed after pool creation for erasure coded pools

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: ceph pools: add type to returned properties
Aaron Lauterer [Mon, 2 May 2022 12:36:24 +0000 (14:36 +0200)]
api: ceph pools: add type to returned properties

The osd dump already contains the pool type in numerical format.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoceph tools: set_pools: filter settings for erasure code pools
Aaron Lauterer [Mon, 2 May 2022 08:09:25 +0000 (10:09 +0200)]
ceph tools: set_pools: filter settings for erasure code pools

Erasure code pools cannot change certain settings after creation.
Trying to set them will cause errors on Cephs side.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: realm sync: let users set 'remove vanished options' independently
Dominik Csapak [Mon, 2 May 2022 13:15:20 +0000 (15:15 +0200)]
ui: realm sync: let users set 'remove vanished options' independently

and label it correctly. The 'Properties' option was mislabeled,
it means 'remove vanished fields from synced users', not 'remove
fields from vanished users'.

So don't couple that with the 'Entries' option, and update the label
to convey the right meaning.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: storage content: support filtering by notes for backups
Thomas Lamprecht [Mon, 2 May 2022 13:26:21 +0000 (15:26 +0200)]
ui: storage content: support filtering by notes for backups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/copyright: update years
Thomas Lamprecht [Fri, 29 Apr 2022 12:35:45 +0000 (14:35 +0200)]
d/copyright: update years

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-1
Thomas Lamprecht [Fri, 29 Apr 2022 12:29:33 +0000 (14:29 +0200)]
bump version to 7.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: ceph: fix description indentation style
Thomas Lamprecht [Fri, 29 Apr 2022 12:28:12 +0000 (14:28 +0200)]
api: ceph: fix description indentation style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: followup: code locality
Thomas Lamprecht [Fri, 29 Apr 2022 12:26:32 +0000 (14:26 +0200)]
api: followup: code locality

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: ceph ec pools: make add_storages overridable default
Aaron Lauterer [Fri, 29 Apr 2022 09:28:59 +0000 (11:28 +0200)]
api: ceph ec pools: make add_storages overridable default

The behavior of always adding the storage config was lost in commit
23c407e. But it is more sensible to make it a default that can be
changed if needed.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoapi: ceph ec pools: schema fixes and enhancements
Aaron Lauterer [Fri, 29 Apr 2022 09:28:58 +0000 (11:28 +0200)]
api: ceph ec pools: schema fixes and enhancements

Ceph has a min value for 'k' of 2. Adding default and description where
missing.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: dc/SyncWindow: realign to sync options
Dominik Csapak [Fri, 29 Apr 2022 10:23:36 +0000 (12:23 +0200)]
ui: dc/SyncWindow: realign to sync options

put the checkboxes in a fieldset and reuse their labels

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 7.1-13
Thomas Lamprecht [Thu, 28 Apr 2022 19:00:48 +0000 (21:00 +0200)]
bump version to 7.1-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: ceph ec pools: move to format-str, create ec in worker, reuse $rados
Thomas Lamprecht [Thu, 28 Apr 2022 18:23:24 +0000 (20:23 +0200)]
api: ceph ec pools: move to format-str, create ec in worker, reuse $rados

moved to a format string 'erasurce-coded', that allows also to drop
most of the param existence checking as we can set the correct
optional'ness in there.  Also avoids bloating the API to much for
just this.

Reuse the $rados connection more often to avoid to much
overhead/lingering sockets (the rados connection stays around in the
background to allow efficient reuse)

really should be three separate commits, but too intertwined and too
late for me to care tbh.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoceph tools: allow more rados connection reuse
Thomas Lamprecht [Thu, 28 Apr 2022 17:46:46 +0000 (19:46 +0200)]
ceph tools: allow more rados connection reuse

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoceph pools: allow to create erasure code pools
Aaron Lauterer [Thu, 28 Apr 2022 11:58:09 +0000 (13:58 +0200)]
ceph pools: allow to create erasure code pools

To use erasure coded (EC) pools for RBD storages, we need two pools. One
regular replicated pool that will hold the RBD omap and other metadata
and the EC pool which will hold the image data.

The coupling happens when an RBD image is created by adding the
--data-pool parameter. This is why we have the 'data-pool' parameter in
the storage configuration.

To follow already established semantics, we will create a 'X-metadata'
and 'X-data' pool. The storage configuration is always added as it is
the only thing that links the two together (besides naming schemes).

Different pg_num defaults are chosen for the replicated metadata pool as
it will not hold a lot of data.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoceph tools: add erasure code management functions
Aaron Lauterer [Thu, 28 Apr 2022 11:58:06 +0000 (13:58 +0200)]
ceph tools: add erasure code management functions

Functions to manage erasure code (EC) profiles:
* add
* remove
* check if exists
* get default prefixed name
* get pool properties
* destroy crush rule

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoapi: ceph: $get_storages check if data-pool too
Aaron Lauterer [Thu, 28 Apr 2022 11:58:05 +0000 (13:58 +0200)]
api: ceph: $get_storages check if data-pool too

When removing a pool, we check against any storage that might have that
pool configured.
We need to check if that pool is used as data-pool too.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoceph tools: make rados open if not reused shorter
Thomas Lamprecht [Thu, 28 Apr 2022 17:39:52 +0000 (19:39 +0200)]
ceph tools: make rados open if not reused shorter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: transform hook script checks to post-if notation
Thomas Lamprecht [Thu, 28 Apr 2022 16:44:20 +0000 (18:44 +0200)]
vzdump: transform hook script checks to post-if notation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: add error if passed in hook script doesn't exist
Dylan Whyte [Thu, 28 Apr 2022 14:57:06 +0000 (16:57 +0200)]
vzdump: add error if passed in hook script doesn't exist

Previously, if the '--script' argument was passed with a non-existent
file, it would state that a non-executable script was the reason for
failure. This adds a check to see if the hook script exists, in order
to provide a more accurate error message.

Also adds an 'Error:' prefix the 'script not executable' error.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
2 years agoui: add virgl GPU to possible VGA drivers
Thomas Lamprecht [Thu, 28 Apr 2022 14:36:31 +0000 (16:36 +0200)]
ui: add virgl GPU to possible VGA drivers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: check that notes-template is a single line
Fabian Ebner [Thu, 28 Apr 2022 08:07:39 +0000 (10:07 +0200)]
vzdump: check that notes-template is a single line

While vzdump itself wouldn't mind about unescaped newlines, the
parameter isn't supposed to contain any, and when used as part of the
job config, it has to be a single line too, so make it consistent.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: generate notes: die upon unexpected escape character or variable
Fabian Ebner [Wed, 27 Apr 2022 15:41:16 +0000 (17:41 +0200)]
vzdump: generate notes: die upon unexpected escape character or variable

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoclose #438: ui: backup job: allow setting a notes-template for a job
Fabian Ebner [Wed, 27 Apr 2022 15:41:13 +0000 (17:41 +0200)]
close #438: ui: backup job: allow setting a notes-template for a job

Add a tooltip to the comment field, to better distinguish it from the
notes-template.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup: allow setting protected and notes-template for manual backup
Fabian Ebner [Wed, 27 Apr 2022 15:41:12 +0000 (17:41 +0200)]
ui: backup: allow setting protected and notes-template for manual backup

Setting a width, so the text area can fill the horizontal space.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: util: add helpers for (un)escaping notes-template
Fabian Ebner [Wed, 27 Apr 2022 15:41:11 +0000 (17:41 +0200)]
ui: util: add helpers for (un)escaping notes-template

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
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>