]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
3 years agoui: package versions: make taller, add copy button
Thomas Lamprecht [Thu, 5 Nov 2020 18:44:21 +0000 (19:44 +0100)]
ui: package versions: make taller, add copy button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: package versions: code cleanup, use template strings
Thomas Lamprecht [Thu, 5 Nov 2020 18:43:54 +0000 (19:43 +0100)]
ui: package versions: code cleanup, use template strings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorestore default value of 0 for remove/maxfiles
Stefan Reiter [Thu, 5 Nov 2020 15:21:51 +0000 (16:21 +0100)]
restore default value of 0 for remove/maxfiles

If neither the 'remove' option of vzdump nor the 'maxfiles' option in
the storage config are set, assume a value of 0, i.e. do not delete
anything and allow unlimited backups.

Restores previous behaviour that was broken in e6946086e3.

Also fixes a warning about using '== 0' on a non-number type.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoui: qemu: set correct disabled state for start button
Stefan Reiter [Mon, 19 Oct 2020 12:18:42 +0000 (14:18 +0200)]
ui: qemu: set correct disabled state for start button

If a guest's QEMU process is 'running', but QMP says 'shutdown' or
'prelaunch', the VM is ready to be booted anew, so we can show the
button.

The 'shutdown' button is intentionally not touched, as we always want to
give the user the ability to 'stop' a VM (and thus kill any potentially
leftover processes).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoapt: add libproxmox-backup-qemu0 to displayed packages
Stefan Reiter [Thu, 5 Nov 2020 09:21:06 +0000 (10:21 +0100)]
apt: add libproxmox-backup-qemu0 to displayed packages

Can provide important information for debugging issues in forum etc...

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 6.2-15
Thomas Lamprecht [Sun, 1 Nov 2020 19:35:03 +0000 (20:35 +0100)]
bump version to 6.2-15

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: fix regression with keep forever logic
Thomas Lamprecht [Sun, 1 Nov 2020 19:10:59 +0000 (20:10 +0100)]
vzdump: fix regression with keep forever logic

fixes commit f354fe47fcaa51002e385ab132760e202a81279c, which changed
the logic to the newer storage prune helpers, but those are designed
in the spirits of PBS, with a keep-option not set meaning to keep
none.

This does not respects the storage special handling of maxfiles.
While in the API/CLI that option must be > 0m in can be zero when set
in a storage configuration entry, and then it means keep all. So, set
the internal remove option to false if that special condition is met.

This would have been a clearer, and less prone to changes,
implementation to begin with.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: Utils: add product specific task descriptions
Dominik Csapak [Fri, 30 Oct 2020 13:02:57 +0000 (14:02 +0100)]
ui: Utils: add product specific task descriptions

move them from widget-toolkit to here
i took the chance, and sorted them alphabetically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: Add verify SSL cert checkbox for active directory
Dominic Jäger [Tue, 27 Oct 2020 11:34:25 +0000 (12:34 +0100)]
ui: Add verify SSL cert checkbox for active directory

Like for LDAP, the option is too important to be hidden in CLI.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agofollouwp whitespace fix
Thomas Lamprecht [Thu, 29 Oct 2020 08:12:22 +0000 (09:12 +0100)]
follouwp whitespace fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agostatus/metrics: make MTU configurable
Fabian Grünbichler [Thu, 29 Oct 2020 07:32:30 +0000 (08:32 +0100)]
status/metrics: make MTU configurable

since some users don't even have a full 1500 (and some systems might
have links with bigger MTU and not require as much fragmentation).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: osd: do not confuse view and controller scopes
Thomas Lamprecht [Wed, 28 Oct 2020 09:46:57 +0000 (10:46 +0100)]
ui: osd: do not confuse view and controller scopes

The me variable should only be assigned from `this`, else it gets
confusing and wrong fast.

here the managed listener tried to do a this.reload, but this is
ambiguous here, and not the controller.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: osd: eslint fixes
Thomas Lamprecht [Wed, 28 Oct 2020 09:46:05 +0000 (10:46 +0100)]
ui: osd: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: fix JS source makefile order
Thomas Lamprecht [Wed, 28 Oct 2020 09:35:24 +0000 (10:35 +0100)]
buildsys: fix JS source makefile order

they cannot really be alphabetically sorted, as else some elements
are tried to be accessed before they are defined, which makes ExtJS
do a HTTP request for them.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: window notes: refactor and code cleanup
Thomas Lamprecht [Wed, 28 Oct 2020 08:52:30 +0000 (09:52 +0100)]
ui: window notes: refactor and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-14
Thomas Lamprecht [Fri, 23 Oct 2020 08:38:09 +0000 (10:38 +0200)]
bump version to 6.2-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: avoid passing zero to prune in legacy handling of maxfiles
Thomas Lamprecht [Fri, 23 Oct 2020 08:05:19 +0000 (10:05 +0200)]
vzdump: avoid passing zero to prune in legacy handling of maxfiles

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-13
Thomas Lamprecht [Thu, 22 Oct 2020 16:50:47 +0000 (18:50 +0200)]
bump version to 6.2-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: correct NVMe casing
Thomas Lamprecht [Thu, 22 Oct 2020 16:49:54 +0000 (18:49 +0200)]
followup: correct NVMe casing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: gui: add device class select on OSD create
Alwin Antreich [Thu, 15 Oct 2020 08:12:45 +0000 (10:12 +0200)]
ceph: gui: add device class select on OSD create

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoui: boot order: handle cloudinit correctly
Thomas Lamprecht [Thu, 22 Oct 2020 16:43:45 +0000 (18:43 +0200)]
ui: boot order: handle cloudinit correctly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: boot order: eslint fixes
Thomas Lamprecht [Thu, 22 Oct 2020 16:43:31 +0000 (18:43 +0200)]
ui: boot order: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: do not name field as me, which is reserverd for this
Thomas Lamprecht [Thu, 22 Oct 2020 16:24:24 +0000 (18:24 +0200)]
followup: do not name field as me, which is reserverd for this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: Fix #2827: Add verify SSL cert checkbox for ldap
Dominic Jäger [Thu, 15 Oct 2020 10:00:18 +0000 (12:00 +0200)]
ui: Fix #2827: Add verify SSL cert checkbox for ldap

Because the option is too important to be hidden in CLI.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agoperlcritic fixes
Thomas Lamprecht [Thu, 22 Oct 2020 16:16:13 +0000 (18:16 +0200)]
perlcritic fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: simplify dropping defaults from common ceph options
Thomas Lamprecht [Thu, 22 Oct 2020 16:17:10 +0000 (18:17 +0200)]
followup: simplify dropping defaults from common ceph options

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: gui: add autoscale mode to pool create
Alwin Antreich [Mon, 19 Oct 2020 10:39:34 +0000 (12:39 +0200)]
ceph: gui: add autoscale mode to pool create

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: add pg_autoscale_mode to pool create
Alwin Antreich [Mon, 19 Oct 2020 10:39:33 +0000 (12:39 +0200)]
ceph: add pg_autoscale_mode to pool create

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: use pool common options pool create
Alwin Antreich [Mon, 19 Oct 2020 10:39:32 +0000 (12:39 +0200)]
ceph: use pool common options pool create

to keep the pool create & set in sync.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: allow to alter pool settings
Alwin Antreich [Mon, 19 Oct 2020 10:39:31 +0000 (12:39 +0200)]
ceph: allow to alter pool settings

after creation, so that users don't need to go the ceph tooling route.
Separate common pool options to reuse them in other places.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: split out pool set into own method
Alwin Antreich [Mon, 19 Oct 2020 10:39:30 +0000 (12:39 +0200)]
ceph: split out pool set into own method

to reduce code duplication and make it easier to add more options for
pool commands.

Use a new rados object for each 'osd pool set', as each command can set
an option independent of the previous commands success/failure. On
failure a new rados object would need to be created and that will
confuse task tracking of the REST environment.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agosimplify get_included_vmids function
Fabian Ebner [Thu, 22 Oct 2020 10:30:16 +0000 (12:30 +0200)]
simplify get_included_vmids function

by collecting all the guest IDs first.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agosort the skip list numerically
Fabian Ebner [Thu, 22 Oct 2020 10:30:15 +0000 (12:30 +0200)]
sort the skip list numerically

The skip list was not always sorted if there were external IDs for multiple
external nodes.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoorder guest IDs numerically in exec_backup
Fabian Ebner [Thu, 22 Oct 2020 10:30:14 +0000 (12:30 +0200)]
order guest IDs numerically in exec_backup

The assumption that they already are sorted is no longer valid,
because of the IDs for non-existent guests.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agobackup: include IDs for non-existent guests
Fabian Ebner [Thu, 22 Oct 2020 10:30:13 +0000 (12:30 +0200)]
backup: include IDs for non-existent guests

Like this, there will be a backup task (within the big worker task)
for such IDs, which will then visibly (i.e. also visible in the
notification mail) fail with, e.g.:
unable to find VM '123'

In get_included_guests, the key '' was chosen for the orphaned IDs,
because it cannot possibly denote a nodename.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoonly use plugin after truthiness check
Fabian Ebner [Thu, 22 Oct 2020 10:30:12 +0000 (12:30 +0200)]
only use plugin after truthiness check

Commit 1a87db9e566599d02e62d9daf4a248ef54e00469 introduced
a usage of plugin before the truthiness check for plugin.

At the moment it might not be possible to trigger this anymore,
because of the guest inclusion rework that happened later on.
But to make tasks for inexistent guest IDs visibly fail again,
this check will be necessary. Also, to get the error message in
the mail, it needs to fail inside the eval block.

Thus, keep the check in the eval block and move the block of code
using the plugin to below the check.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoremove outdated comment
Fabian Ebner [Thu, 22 Oct 2020 10:30:11 +0000 (12:30 +0200)]
remove outdated comment

Commit df5875b41e12d164cfe3c722e929f4c41fc94d34 moved the
all/exclude logic into the single method

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoremove unused variable
Fabian Ebner [Thu, 22 Oct 2020 10:30:10 +0000 (12:30 +0200)]
remove unused variable

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agopartially fix #3056: namespace vzdump tmpdir with vmid
Dominik Csapak [Mon, 19 Oct 2020 14:15:25 +0000 (16:15 +0200)]
partially fix #3056: namespace vzdump tmpdir with vmid

this fixes an issue where a rogue running backup would upload the vm
config of a later backup in a backup job

instead now that directory gets deleted and the config is not
available anymore

we cannot really keep those directories around until the end of the
backup job, since we temporarily save ct contents there, which could get
large very fast

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agod/control: bump versioned dependency for qemu-server
Thomas Lamprecht [Thu, 22 Oct 2020 14:16:31 +0000 (16:16 +0200)]
d/control: bump versioned dependency for qemu-server

to ensure we have the new boot order stuff available..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: bootorder: show device type as icon for UX
Thomas Lamprecht [Fri, 16 Oct 2020 12:47:10 +0000 (14:47 +0200)]
ui: bootorder: show device type as icon for UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: bootorder: define all column widths flex
Thomas Lamprecht [Fri, 16 Oct 2020 12:46:48 +0000 (14:46 +0200)]
ui: bootorder: define all column widths flex

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: bootorder: set minHeight for grid to conceal the long load time a bit
Thomas Lamprecht [Fri, 16 Oct 2020 12:45:35 +0000 (14:45 +0200)]
ui: bootorder: set minHeight for grid to conceal the long load time a bit

as else the window is not centered if it only grows in size after
ExtJS rendered it completely once.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: bootorder: set common options using the defaults property
Thomas Lamprecht [Fri, 16 Oct 2020 12:43:59 +0000 (14:43 +0200)]
ui: bootorder: set common options using the defaults property

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: improve boot order editor
Stefan Reiter [Tue, 6 Oct 2020 13:32:18 +0000 (15:32 +0200)]
ui: improve boot order editor

The new boot order property can express many more scenarios than the old
one. Update the editor so it can handle it.

Features a grid with all supported boot devices which can be reordered
using drag-and-drop, as well as toggled on and off with an inline
checkbox.

Support for configs still using the old format is given, with the first
write automatically updating the VM config to use the new one.

The renderer for the Options panel is updated with support for the new
format.

Note that it is very well possible to disable all boot devices, in which
case an empty 'boot: ' will be stored to the config file. I'm not sure
what that would be useful for, but there's no reason to forbid it
either, just warn the user that it's probably not what they want.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoui: FirewallRules.js: fix #3049 wider rule number column
Aaron Lauterer [Thu, 1 Oct 2020 12:18:40 +0000 (14:18 +0200)]
ui: FirewallRules.js: fix #3049 wider rule number column

Allows 2 digits rule numbers to be visible in the column. Made it a bit
wider than needed to account for potentially wider font rendering on
different platforms.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoAlways use prune-backups instead of maxfiles internally
Fabian Ebner [Tue, 29 Sep 2020 08:37:05 +0000 (10:37 +0200)]
Always use prune-backups instead of maxfiles internally

For the use case with '--dumpdir', it's not possible to call prune_backups
directly, so a little bit of special handling is required there.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoAllow prune-backups as an alternative to maxfiles
Fabian Ebner [Tue, 29 Sep 2020 08:37:04 +0000 (10:37 +0200)]
Allow prune-backups as an alternative to maxfiles

and make the two options mutally exclusive as long
as they are specified on the same level (e.g. both
from the storage configuration). Otherwise prefer
option > storage config > default (only maxfiles has a default currently).

Defines the backup limit for prune-backups as the sum of all
keep-values.

There is no perfect way to determine whether a
new backup would trigger a removal with prune later:
1. we would need a way to include the not yet existing backup
   in a 'prune --dry-run' check.
2. even if we had that check, if it's executed right before
   a full hour, and the actual backup happens after the full
   hour, the information from the check is not correct.

So in some cases, we allow backup jobs with remove=0, that
will lead to a removal when the next prune is executed.
Still, the job with remove=0 does not execute a prune, so:
1. There is a well-defined limit.
2. A job with remove=0 never removes an old backup.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agod/control: bump versioned dependency of libpve-guest-common-perl
Thomas Lamprecht [Wed, 30 Sep 2020 07:56:12 +0000 (09:56 +0200)]
d/control: bump versioned dependency of libpve-guest-common-perl

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: Fix typo in UPID error message
Dominic Jäger [Tue, 29 Sep 2020 08:07:13 +0000 (10:07 +0200)]
vzdump: Fix typo in UPID error message

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agoui: fix unchecking 'Filter VMID'
Dominik Csapak [Thu, 24 Sep 2020 13:18:20 +0000 (15:18 +0200)]
ui: fix unchecking 'Filter VMID'

if the checkbox is not checked, we set the value of the vmid filter to ''
but left 'exactMatch' enabled, which means we filter all out where
the vmid is not ''

what we instead want is to remove also the exactMatch so that we
get *all* entries back not *none*

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotasks: allow API tokens to query their own UPIDs
Fabian Grünbichler [Wed, 23 Sep 2020 08:38:48 +0000 (10:38 +0200)]
tasks: allow API tokens to query their own UPIDs

and regular users to read all their own tasks as well as those of their
associated tokens.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: qemu/AgentIPView: also filter out 0:0:0:0:0:0
Dominik Csapak [Tue, 22 Sep 2020 14:04:13 +0000 (16:04 +0200)]
ui: qemu/AgentIPView: also filter out 0:0:0:0:0:0

it seems that some guest-agents format an non-existant mac adress
differently (e.g. macos, see [0]) so filter that also out

0: https://forum.proxmox.com/threads/macos-vm-optischer-makel.76263/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: pbs: allow empty fingerprint
Thomas Lamprecht [Wed, 23 Sep 2020 13:09:46 +0000 (15:09 +0200)]
ui: pbs: allow empty fingerprint

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-12
Fabian Grünbichler [Mon, 21 Sep 2020 09:28:37 +0000 (11:28 +0200)]
bump version to 6.2-12

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agolxc: increase limit of max cores from 128 to 8192
Oguz Bektas [Tue, 15 Sep 2020 09:16:54 +0000 (11:16 +0200)]
lxc: increase limit of max cores from 128 to 8192

to match the recently change in the container backend

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: update versioned dependency for pve-common
Thomas Lamprecht [Mon, 7 Sep 2020 08:06:54 +0000 (10:06 +0200)]
d/control: update versioned dependency for pve-common

ensuring we have the new behavior of sendmail regarding empty from
available.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agouse PVE::Tools::sendmail for update notifications
Stoiko Ivanov [Thu, 3 Sep 2020 12:09:46 +0000 (14:09 +0200)]
use PVE::Tools::sendmail for update notifications

instead of calling /usr/sbin/sendmail directly.

Tested with:
```
echo "[]" > /var/lib/pve-manager/pkgupdates
pvesh create /nodes/rosa/apt/update --notify 1

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agoui: dc/Backup: disable pveCompressionSelector for pbs storages
Dominik Csapak [Thu, 3 Sep 2020 12:08:14 +0000 (14:08 +0200)]
ui: dc/Backup: disable pveCompressionSelector for pbs storages

like in window/Backup

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoContentView: block removal of in-use container image
Fabian Ebner [Thu, 27 Aug 2020 11:16:55 +0000 (13:16 +0200)]
ContentView: block removal of in-use container image

Since commit 5dae1a319b32ea3ebbb0b48a9f0b5e3abd1833c9 in pve-storage,
list_volumes correctly returns content type 'rootdir' for container images.
Adapt the relevant check here to make removal behave like it does
for VM images again.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoBump maximum number of container net interfaces from 10 to 32
Stephan Leemburg [Sun, 23 Aug 2020 11:38:28 +0000 (13:38 +0200)]
Bump maximum number of container net interfaces from 10 to 32

Signed-off-by: Stephan Leemburg <stephan.leemburg@it-functions.nl>
3 years agopveversion: track proxmox-backup-client
Thomas Lamprecht [Fri, 21 Aug 2020 08:54:49 +0000 (10:54 +0200)]
pveversion: track proxmox-backup-client

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agomake use of archive_info and archive_remove
Fabian Ebner [Thu, 9 Jul 2020 12:45:45 +0000 (14:45 +0200)]
make use of archive_info and archive_remove

to avoid some code duplication.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoreplication: followup: include guest node in error message
Thomas Lamprecht [Thu, 20 Aug 2020 11:48:50 +0000 (13:48 +0200)]
replication: followup: include guest node in error message

tell the user what check actually failed..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoreplication: check for source == target on job creation
Fabian Grünbichler [Tue, 11 Aug 2020 12:31:11 +0000 (14:31 +0200)]
replication: check for source == target on job creation

and die.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoreplication: target is a required parameter
Fabian Grünbichler [Tue, 11 Aug 2020 12:30:25 +0000 (14:30 +0200)]
replication: target is a required parameter

no need to check for definedness

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoreplication: refactor source checks on job creation
Fabian Grünbichler [Tue, 11 Aug 2020 12:30:24 +0000 (14:30 +0200)]
replication: refactor source checks on job creation

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoapi: ACME revoke: do not abort if CA is just expired
Thomas Lamprecht [Wed, 19 Aug 2020 16:52:00 +0000 (18:52 +0200)]
api: ACME revoke: do not abort if CA is just expired

Else, a user would need to renew it first before being able to revoke
it, which does not make much sense..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: ACME renew: handle error from revoking old cert gracefully
Thomas Lamprecht [Wed, 19 Aug 2020 16:47:08 +0000 (18:47 +0200)]
api: ACME renew: handle error from revoking old cert gracefully

this normally just means that the old cert is already expired, we do
not care for that - after all: we got a new (renewed) valid cert
successfully.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: fix PBS edit typos
Thomas Lamprecht [Wed, 19 Aug 2020 13:48:51 +0000 (15:48 +0200)]
ui: fix PBS edit typos

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: fixup gettext quoting
Thomas Lamprecht [Tue, 18 Aug 2020 16:27:43 +0000 (18:27 +0200)]
ui: fixup gettext quoting

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotest: fix mail_test for non-root user
Fabian Grünbichler [Thu, 13 Aug 2020 10:54:51 +0000 (12:54 +0200)]
test: fix mail_test for non-root user

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoSet source when creating a new replication job
Fabian Ebner [Mon, 10 Aug 2020 12:35:52 +0000 (14:35 +0200)]
Set source when creating a new replication job

If source is missing, pvesr will set it via job_status
on the next run. But the info is already present here,
so it doesn't hurt to use it.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: filter on exact vmid
Dominik Csapak [Mon, 27 Jul 2020 08:43:58 +0000 (10:43 +0200)]
ui: filter on exact vmid

so that backups of vmid 1000 do not show up on vm 100 with 'filte vmid'
enabled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobackup: fix #2913 order jobs numerically by VMID
Aaron Lauterer [Tue, 4 Aug 2020 09:46:38 +0000 (11:46 +0200)]
backup: fix #2913 order jobs numerically by VMID

At this point, the VMIDs are already numerically sorted by the
PVE::VZDump::check_vmids method. Calling another sort on the array,
especially without `{$a <=> $b}`, resulted in reordering the array
alphabetically.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agovzdump: use configured tmpdir for PBS
Fabian Grünbichler [Thu, 6 Aug 2020 14:03:03 +0000 (16:03 +0200)]
vzdump: use configured tmpdir for PBS

instead of always using the default hard-coded one.

otherwise, suspend mode container backups might run out of space even though the admin configured a big enough tmpdir.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: Close #2908: fixed password validator for adding PBS as storage
Hannes Laimer [Thu, 30 Jul 2020 10:25:34 +0000 (12:25 +0200)]
ui: Close #2908: fixed password validator for adding PBS as storage

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agofix #2890: also detect & renew DNS-only ACME certs
Fabian Grünbichler [Mon, 27 Jul 2020 08:53:32 +0000 (10:53 +0200)]
fix #2890: also detect & renew DNS-only ACME certs

this call site was apparently missed when we refactored the node config
/ ACME interaction.

Suggested/Reported-by: Frédéric Bourqui
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agobump version to 6.2-11
Thomas Lamprecht [Fri, 24 Jul 2020 17:22:30 +0000 (19:22 +0200)]
bump version to 6.2-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: use true as inputValue
Thomas Lamprecht [Fri, 24 Jul 2020 17:29:28 +0000 (19:29 +0200)]
followup: use true as inputValue

and normalize original value comparison, just to be sure.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: Proxmox Backup: allow to autogenerate an encryption key
Thomas Lamprecht [Fri, 24 Jul 2020 17:11:28 +0000 (19:11 +0200)]
ui: Proxmox Backup: allow to autogenerate an encryption key

a bit more complicated than wished, but if we want to have at least a
bsaic OK user experience we need to give good feedback that the key
will be deleted.

We definitively want to extend this, allow uploading their own,
export if root@pam, only move not delete on "removal", for safety.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: node/services: use safer reload as restart command
Thomas Lamprecht [Fri, 24 Jul 2020 13:23:28 +0000 (15:23 +0200)]
ui: node/services: use safer reload as restart command

avoids service interruptions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi/services: fallback to restart in reload
Thomas Lamprecht [Fri, 24 Jul 2020 11:55:57 +0000 (13:55 +0200)]
api/services: fallback to restart in reload

And document that it is preferred

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi/services: improve essential service check, allow reload and start
Thomas Lamprecht [Fri, 24 Jul 2020 11:48:42 +0000 (13:48 +0200)]
api/services: improve essential service check, allow reload and start

reload is actually preferred, and even if most of the time this even
won't reach the API, allowing to start them is still definitively
fine!

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi/services: whitespace cleanup, modern closure call
Thomas Lamprecht [Fri, 24 Jul 2020 11:47:39 +0000 (13:47 +0200)]
api/services: whitespace cleanup, modern closure call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: node: eslint and style fixes
Thomas Lamprecht [Fri, 24 Jul 2020 13:16:22 +0000 (15:16 +0200)]
ui: node: eslint and style fixes

xtype must be the first definition

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoAllow setting device class on osd create
Alwin Antreich [Thu, 23 Jul 2020 13:25:14 +0000 (15:25 +0200)]
Allow setting device class on osd create

In some situations Ceph's auto-detection doesn't recognize the device
class correctly. The option allows to set it directly on osd create,
instead of altering it afterwards. This way the cluster doesn't need to
shift data back and forth unnecessarily.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoui: running chart: assign getTime directly
Thomas Lamprecht [Wed, 22 Jul 2020 08:35:04 +0000 (10:35 +0200)]
ui: running chart: assign getTime directly

no sense in doing it everywhere the Date variables are used, if it's
the only  thing we do on them.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph status/running chart: disable trackRemoved
Thomas Lamprecht [Wed, 22 Jul 2020 08:30:51 +0000 (10:30 +0200)]
ui: ceph status/running chart: disable trackRemoved

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: running chart: avoid breakage if tooltip was on deleted record
Thomas Lamprecht [Wed, 22 Jul 2020 08:29:05 +0000 (10:29 +0200)]
ui: running chart: avoid breakage if tooltip was on deleted record

if we cleanup records and there was a "stale" tooltip on one of them
we get an access on undefined value exception here

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: comment length cleanup to improve readability
Thomas Lamprecht [Wed, 22 Jul 2020 08:27:43 +0000 (10:27 +0200)]
ui: comment length cleanup to improve readability

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph status: note that its recovery/rebalance#
Thomas Lamprecht [Tue, 21 Jul 2020 17:49:52 +0000 (19:49 +0200)]
ui: ceph status: note that its recovery/rebalance#

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add ceph recovery graph and progressbar
Dominik Csapak [Tue, 21 Jul 2020 13:06:18 +0000 (15:06 +0200)]
ui: add ceph recovery graph and progressbar

shows a runningChart (like for reads) for the recovery speed
also shows a progressbar of the health percentage of the cluster
with an estimate of how long the recovery might need
(unhealthy objects) / (objects per second)

only show them when a recovery is ongoing or there are unhealthy
objects

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobuildsys: www/manager: all target needs to be first one
Thomas Lamprecht [Mon, 20 Jul 2020 14:34:31 +0000 (16:34 +0200)]
buildsys: www/manager: all target needs to be first one

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-10
Thomas Lamprecht [Tue, 14 Jul 2020 08:28:44 +0000 (10:28 +0200)]
bump version to 6.2-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoVZDump: add TARFILE to environment for hookscripts
Stoiko Ivanov [Tue, 14 Jul 2020 08:09:19 +0000 (10:09 +0200)]
VZDump: add TARFILE to environment for hookscripts

The renaming of tarfile to target in 6cba1855d801545df3f3f81619dfa11cf2501858
can break existing vzdump hook scripts of users.
by setting the TARFILE variable in addition to TARGET the scripts will continue
to work.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agovzdump-hook-script: rename TARFILE to TARGET
Stoiko Ivanov [Tue, 14 Jul 2020 08:09:18 +0000 (10:09 +0200)]
vzdump-hook-script: rename TARFILE to TARGET

with the change introduced in 6cba1855d801545df3f3f81619dfa11cf2501858 the
exported variable name changed from tarfile to target.

this patch reflects the renaming in the example hook script.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agovzdump: use more general 'guest' instead of 'vm'
Thomas Lamprecht [Tue, 14 Jul 2020 08:26:47 +0000 (10:26 +0200)]
vzdump: use more general 'guest' instead of 'vm'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: render a duration of 0s as <1s
Thomas Lamprecht [Tue, 14 Jul 2020 08:26:14 +0000 (10:26 +0200)]
vzdump: render a duration of 0s as <1s

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: not backed: add emptyText to search field
Aaron Lauterer [Fri, 10 Jul 2020 08:38:19 +0000 (10:38 +0200)]
ui: not backed: add emptyText to search field

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>