]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
3 years agopvereport: get pressure stall information
Oguz Bektas [Tue, 11 May 2021 11:04:00 +0000 (13:04 +0200)]
pvereport: get pressure stall information

PSI can be queried in /proc/pressure/{cpu,io,memory} for the
corresponding resources. this helps us track down disruptions caused
by resource overcommitment.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
3 years agoapi: pools: fix typo/syntax error
Lorenz Stechauner [Mon, 10 May 2021 07:43:13 +0000 (09:43 +0200)]
api: pools: fix typo/syntax error

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
3 years agoapi: pools: whitespace, indentation and code cleanups
Thomas Lamprecht [Sun, 9 May 2021 16:58:42 +0000 (18:58 +0200)]
api: pools: whitespace, indentation and code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: pools: whitespace, indentation and code cleanups
Thomas Lamprecht [Sun, 9 May 2021 16:52:28 +0000 (18:52 +0200)]
api: pools: whitespace, indentation and code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-6
Thomas Lamprecht [Fri, 7 May 2021 16:19:43 +0000 (18:19 +0200)]
bump version to 6.4-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoproxy: fix wildcard address use
Stoiko Ivanov [Wed, 5 May 2021 14:36:25 +0000 (16:36 +0200)]
proxy: fix wildcard address use

This patch fixes a regression for hosts disabling ipv6 via kernel
commandline ('ipv6.disable=1')introduced in commit
e224b7d2e6a729b48e9669e200fd7aeb1e9b5702
(disabling IPv6 via sysctl did not exhibit these problems)

by hardcoding the address to '::', pveproxy and spiceproxy failed to
start with:
'unable to create socket - Address family not supported by protocol'

This patch depends on the commit in pve-common, which tries first
binding to '::' and then falling back to '0.0.0.0', and needs a
versioned dependency bump on libpve-common-perl.

With this patch the listening addresses are (`ss -tlnp |grep 8006` output)
* ipv6 disabled via kernel cmdline: '0.0.0.0:8006'
* sysctl net.ipv6.conf.all.disable_ipv6=1: '*:8006'
* sysctl net.ipv6.bindv6only=1: '[::]:8006'
* else: '*:8006'

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agoui: storage status: use SI units for usage for consitency with RRD chart
Thomas Lamprecht [Fri, 7 May 2021 16:15:05 +0000 (18:15 +0200)]
ui: storage status: use SI units for usage for consitency with RRD chart

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate aplinfo.dat
Thomas Lamprecht [Fri, 7 May 2021 08:05:47 +0000 (10:05 +0200)]
update aplinfo.dat

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: acme: fix API index entry for challenge-schema
Thomas Lamprecht [Wed, 5 May 2021 13:52:49 +0000 (15:52 +0200)]
api: acme: fix API index entry for challenge-schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: nodes: whitespace cleanup
Thomas Lamprecht [Tue, 4 May 2021 09:58:55 +0000 (11:58 +0200)]
api: nodes: whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-5
Thomas Lamprecht [Mon, 3 May 2021 13:06:52 +0000 (15:06 +0200)]
bump version to 6.4-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoRevert "fix #2745: ui: backup: allow specifying remove parameter for manual backup"
Thomas Lamprecht [Mon, 3 May 2021 12:41:15 +0000 (14:41 +0200)]
Revert "fix #2745: ui: backup: allow specifying remove parameter for manual backup"

Pushed this one out by mistake when commit a fixup, so do revert now
as I did not fully reviewed it and saw some UI changes I'd like to
do.

This reverts commit cfc6d15ed057a8c3f9637785701b95373f6b8cb0.

3 years agopveceph: fixup syntax issue
Thomas Lamprecht [Mon, 3 May 2021 12:38:11 +0000 (14:38 +0200)]
pveceph: fixup syntax issue

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #2745: ui: backup: allow specifying remove parameter for manual backup
Fabian Ebner [Tue, 6 Apr 2021 10:41:52 +0000 (12:41 +0200)]
fix #2745: ui: backup: allow specifying remove parameter for manual backup

and also show the retention options that will be used for a given storage. A
user with Datastore.AllocateSpace and VM.Backup can already remove backups from
the GUI manually, so it shouldn't be a problem if they can set the remove flag
when starting a manual backup in the GUI.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: backup: fill in some of the configured vzdump defaults
Fabian Ebner [Tue, 6 Apr 2021 10:41:51 +0000 (12:41 +0200)]
ui: backup: fill in some of the configured vzdump defaults

Do not fill in the default for compression, because the initial default for the
backend is to not compress, while the current default for the UI is zstd, which
is preferable.

The 'defaults' API call expects the user to have permissions on the storage,
because retention options are storage-dependent. Use a flag initialDefaults to
make sure storage-independent properties are only set once, so they are not
reset when a user changes the storage after editing them.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoapi: vzdump: add call to get currently configured vzdump defaults
Fabian Ebner [Tue, 6 Apr 2021 10:41:50 +0000 (12:41 +0200)]
api: vzdump: add call to get currently configured vzdump defaults

on a given node (and storage).

There is no datacenter/storage fallback for the bandwidth limit, so the default
can just be returned as is. While the bandwidth limit is a root-only option when
executing the backup, it still makes sense to return it for all users, so they
can see what's going to be used.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: ceph code cleanup
Thomas Lamprecht [Mon, 3 May 2021 12:35:43 +0000 (14:35 +0200)]
ui: ceph code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: reload API daemons after installation
Thomas Lamprecht [Mon, 3 May 2021 12:07:56 +0000 (14:07 +0200)]
ceph: reload API daemons after installation

To make them load the updated librados2, as else they may potentially
not be able to communicate with the potentially newer ceph monitors,
as Debian 10 ships Jewel (12.2) by default...

While we could do some more fancy signaling to the workers to reload
the lib, that is rather a PITA and complex solution for something
that happens once in a blue moon.

We may want to add a trigger in ceph for this on updates though, that
would effectively fix this too - but needs to be thought out better.
So for now lets go with the simplest solution.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: code/indentation cleanup
Thomas Lamprecht [Mon, 3 May 2021 12:03:32 +0000 (14:03 +0200)]
ceph: code/indentation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-4
Thomas Lamprecht [Tue, 27 Apr 2021 11:03:58 +0000 (13:03 +0200)]
bump version to 6.4-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: ceph/monitor: automatically disable insecure global ID reclaim after creating...
Thomas Lamprecht [Tue, 27 Apr 2021 10:29:58 +0000 (12:29 +0200)]
api: ceph/monitor: automatically disable insecure global ID reclaim after creating first monitor

nautilus 14.2.20 and octopus 15.2.11 fixed a security issue with
reclaiming the global ID auth (CVE-2021-20288). As fixing this issue
means that older client won't be able to connect anymore, the fix was
done behind a switch, with a HEALTH warning if it was not active
(i.e., disallowed connection from older clients).

New installations have this switch also at the insecure level, for
compat reasons, so lets deactivate it ourself after monitor creation
to avoid the health warning and slightly insecure setup (in default
PVE ceph the whole issue was of rather low impact/risk). But, only do
so when creating the first monitor of a ceph cluster, to avoid
breaking existing setups by accident.

An admin can always switch it back again, e.g., if they're recovering
from some failure and need to setup fresh monitors but have still old
clients.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopveceph: octopus is OK and wanted to be installed/used
Thomas Lamprecht [Tue, 27 Apr 2021 10:27:32 +0000 (12:27 +0200)]
pveceph: octopus is OK and wanted to be installed/used

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-3
Thomas Lamprecht [Mon, 26 Apr 2021 18:20:00 +0000 (20:20 +0200)]
bump version to 6.4-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: rbd: move namespace to advanced section
Thomas Lamprecht [Mon, 26 Apr 2021 18:16:45 +0000 (20:16 +0200)]
ui: rbd: move namespace to advanced section

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: RBDStorage: add field for RBD namespace
Aaron Lauterer [Mon, 19 Apr 2021 07:52:25 +0000 (09:52 +0200)]
ui: RBDStorage: add field for RBD namespace

Makes it possible to configure the RBD namespace via the GUI.

RBD namespaces must be configured manually. The most likely use case is
when connecting to an external Ceph cluster as this makes it possible to
separate client PVE clusters by namespace, not by pool.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoui: sdn vnets: disable subnet create button if no vnet is selected
Thomas Lamprecht [Mon, 26 Apr 2021 18:08:03 +0000 (20:08 +0200)]
ui: sdn vnets: disable subnet create button if no vnet is selected

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: sdn: eslint fixes and code cleanups
Thomas Lamprecht [Mon, 26 Apr 2021 17:48:02 +0000 (19:48 +0200)]
ui: sdn: eslint fixes and code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: sdn: eslint auto fixes
Thomas Lamprecht [Mon, 26 Apr 2021 13:44:57 +0000 (15:44 +0200)]
ui: sdn: eslint auto fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosdn: controllers: bgp: use node as controllerid
Alexandre Derumier [Wed, 21 Apr 2021 21:53:39 +0000 (23:53 +0200)]
sdn: controllers: bgp: use node as controllerid

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: controller: bgp: add ebgp-multihop option
Alexandre Derumier [Wed, 21 Apr 2021 21:53:38 +0000 (23:53 +0200)]
sdn: controller: bgp: add ebgp-multihop option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: move mac option from vnet to evpn zone plugin
Alexandre Derumier [Wed, 21 Apr 2021 21:53:37 +0000 (23:53 +0200)]
sdn: move mac option from vnet to evpn zone plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: add subnet/ipam/sdn management
Alexandre Derumier [Wed, 21 Apr 2021 21:53:36 +0000 (23:53 +0200)]
sdn: add subnet/ipam/sdn management

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoui: ceph: pool edit: set emptyValue to 0 for target-size field
Thomas Lamprecht [Mon, 26 Apr 2021 12:12:00 +0000 (14:12 +0200)]
ui: ceph: pool edit: set emptyValue to 0 for target-size field

ensure it gets "deleted" (ceph resets it on setting this to zero)
when modified to empty.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: size field: allow to specifiy emptyValue
Thomas Lamprecht [Mon, 26 Apr 2021 12:10:27 +0000 (14:10 +0200)]
ui: size field: allow to specifiy emptyValue

I.e., the value the empty field should resolve for the submit value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: pool edit: drop allowZero from numberfield
Thomas Lamprecht [Mon, 26 Apr 2021 12:11:16 +0000 (14:11 +0200)]
ui: ceph: pool edit: drop allowZero from numberfield

not a thing there, so do not be misleading and suggest this is
required

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph status: use two column layout for 1600+ window width
Thomas Lamprecht [Mon, 26 Apr 2021 10:30:56 +0000 (12:30 +0200)]
ui: ceph status: use two column layout for 1600+ window width

Looks already OK at that size, and one gets a better overview.

We have a slightly complex layout here (to columns which should be
above each other) so we cannot just use the generic helper, but
that's OK here - it *is* a special view.

Note, not all people use full-sized windows all the time, so the
widths here must not only be considered in terms of display
resolutions...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tasks: add ceph edit-pool and set-flags descriptions
Thomas Lamprecht [Mon, 26 Apr 2021 10:27:48 +0000 (12:27 +0200)]
ui: tasks: add ceph edit-pool and set-flags descriptions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: break overly long line
Thomas Lamprecht [Mon, 26 Apr 2021 10:27:14 +0000 (12:27 +0200)]
ui: break overly long line

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate shipped APL info
Thomas Lamprecht [Sun, 25 Apr 2021 16:22:58 +0000 (18:22 +0200)]
update shipped APL info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-2
Thomas Lamprecht [Sat, 24 Apr 2021 17:29:03 +0000 (19:29 +0200)]
bump version to 6.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph pools: fixup class names, drop extry xtype definition
Thomas Lamprecht [Sat, 24 Apr 2021 17:23:04 +0000 (19:23 +0200)]
ui: ceph pools: fixup class names, drop extry xtype definition

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: pool creation: default auto-scale value to "on"
Thomas Lamprecht [Sat, 24 Apr 2021 17:17:44 +0000 (19:17 +0200)]
ui: ceph: pool creation: default auto-scale value to "on"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: node config: fix internal code order for nav bar
Thomas Lamprecht [Sat, 24 Apr 2021 17:11:46 +0000 (19:11 +0200)]
ui: node config: fix internal code order for nav bar

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: status details: eslint fixes and code cleanup
Thomas Lamprecht [Sat, 24 Apr 2021 16:45:24 +0000 (18:45 +0200)]
ui: ceph: status details: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: status: eslint fixes and code cleanup
Thomas Lamprecht [Sat, 24 Apr 2021 16:45:13 +0000 (18:45 +0200)]
ui: ceph: status: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: services: eslint fixes and code cleanup
Thomas Lamprecht [Sat, 24 Apr 2021 16:44:57 +0000 (18:44 +0200)]
ui: ceph: services: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: service list: eslint fixes and code cleanup
Thomas Lamprecht [Sat, 24 Apr 2021 16:44:39 +0000 (18:44 +0200)]
ui: ceph: service list: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: pool: eslint fixes and code cleanup
Thomas Lamprecht [Sat, 24 Apr 2021 16:44:23 +0000 (18:44 +0200)]
ui: ceph: pool: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: fs: eslint fixes and code cleanup
Thomas Lamprecht [Sat, 24 Apr 2021 16:44:13 +0000 (18:44 +0200)]
ui: ceph: fs: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: install wizard: eslint fixes and code cleanup
Thomas Lamprecht [Sat, 24 Apr 2021 16:44:01 +0000 (18:44 +0200)]
ui: ceph: install wizard: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: factor out installation mask store monitoring
Thomas Lamprecht [Sat, 24 Apr 2021 16:43:07 +0000 (18:43 +0200)]
ui: ceph: factor out installation mask store monitoring

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: live-restore: refine notice
Thomas Lamprecht [Sat, 24 Apr 2021 13:20:53 +0000 (15:20 +0200)]
ui: live-restore: refine notice

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years ago ui: CT restore: make privilege level a tri-state radio group
Thomas Lamprecht [Sat, 24 Apr 2021 13:18:41 +0000 (15:18 +0200)]
 ui: CT restore: make privilege level a tri-state radio group

Default to keeping the state of the archive, as that has the highest
chance to fully work, but allow to enforce either level.

It'd be good to add some more feedback of the to be restored guest,
i.e., the whole config..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph crush: code cleanups
Thomas Lamprecht [Fri, 23 Apr 2021 16:55:46 +0000 (18:55 +0200)]
ui: ceph crush: code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph pools: avoid resetting crush rule hwne editing a pool
Thomas Lamprecht [Fri, 23 Apr 2021 16:51:57 +0000 (18:51 +0200)]
ui: ceph pools: avoid resetting crush rule hwne editing a pool

we are only allowed to set autoselect the first record after load on
creation, else we may change the value by mistake which, if the admin
does not notices when changing some other setting, can be quite fatal
as it can trigger a huge rebalance, where the cause may then not even
be obvious and thus an admin be quite baffled.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph pools: do not grey-out name field when editing
Thomas Lamprecht [Fri, 23 Apr 2021 16:00:10 +0000 (18:00 +0200)]
ui: ceph pools: do not grey-out name field when editing

The displayEdit field already shows it as display field in this case,
which is enough.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph pools: fix target size column renderer
Thomas Lamprecht [Fri, 23 Apr 2021 15:59:07 +0000 (17:59 +0200)]
ui: ceph pools: fix target size column renderer

Moved to widget toolkit recently..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.4-1
Thomas Lamprecht [Fri, 23 Apr 2021 15:14:39 +0000 (17:14 +0200)]
bump version to 6.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: bump versioned dependency of libpve-http-server-perl
Thomas Lamprecht [Fri, 23 Apr 2021 15:18:27 +0000 (17:18 +0200)]
d/control: bump versioned dependency of libpve-http-server-perl

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #417: proxy: allow settnig LISTEN_IP for pveproxy and spiceproxy
Oguz Bektas [Mon, 22 Mar 2021 14:00:44 +0000 (15:00 +0100)]
fix #417: proxy: allow settnig LISTEN_IP for pveproxy and spiceproxy

The $host variable is set to "::0" by default to listen on wildcard
(with 'Domain' => PF_INET6).

If 'LISTEN_IP' is defined in /etc/default/pveproxy, that IP will be used
instead.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
3 years agoui: storage: backups: allow to edit notes also here
Thomas Lamprecht [Fri, 23 Apr 2021 14:47:32 +0000 (16:47 +0200)]
ui: storage: backups: allow to edit notes also here

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: backup views: unfiy button order in storage and guest backup view
Thomas Lamprecht [Fri, 23 Apr 2021 14:46:07 +0000 (16:46 +0200)]
ui: backup views: unfiy button order in storage and guest backup view

and group better, avoid alternating by destroying and restoring
button (prune, file restore, remove) and place file restore and
restore together

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: guest backup grid: hide file-restore button if not a PBS storage
Thomas Lamprecht [Fri, 23 Apr 2021 14:44:58 +0000 (16:44 +0200)]
ui: guest backup grid: hide file-restore button if not a PBS storage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofile-restore: pass in full volume ID
Fabian Grünbichler [Fri, 23 Apr 2021 10:34:24 +0000 (12:34 +0200)]
file-restore: pass in full volume ID

not just the snapshot name.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agogui: add task name for 'pbs-download'
Stefan Reiter [Thu, 22 Apr 2021 15:47:39 +0000 (17:47 +0200)]
gui: add task name for 'pbs-download'

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobackupview: add file restore button
Stefan Reiter [Thu, 22 Apr 2021 15:47:38 +0000 (17:47 +0200)]
backupview: add file restore button

Adds it for both BackupViews, on VM view and storage view.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoui: set file name for spice console download in chrome
Lorenz Stechauner [Thu, 22 Apr 2021 07:49:02 +0000 (09:49 +0200)]
ui: set file name for spice console download in chrome

When the virt-viewer file is downloaded we already set a file name in
Android, so the file type may be recognized. Also doing this in
Chrome (and Chromium based browsers) allows users to "alyways open
files of this type". So the browser automatically opens the console
window without user interaction.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: use pmxInfoWidget instead of pveInfoWidget
Dominik Csapak [Fri, 23 Apr 2021 08:27:48 +0000 (10:27 +0200)]
ui: use pmxInfoWidget instead of pveInfoWidget

to prevent that they further diverge than they alread have
(pmxInfoWidget got an additional function that is compatible)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: firewall: rule: maxlength for source and dest
Aaron Lauterer [Thu, 22 Apr 2021 12:30:10 +0000 (14:30 +0200)]
ui: firewall: rule: maxlength for source and dest

Limiting the length of the source and dest paramters helps to avoid
problems with iptables-restore which would not apply a rule if a
parameter is larger than the parameter buffer (1024)[0]. As the API is
already limiting this, we should also reflect that in the GUI and give
people a hint that IP sets are most likely the better approach.

[0] http://git.netfilter.org/iptables/tree/iptables/xshared.c?h=v1.8.7#n469

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agofix #3385: api: network: check for used ports before writing
Stoiko Ivanov [Mon, 19 Apr 2021 18:11:28 +0000 (20:11 +0200)]
fix #3385: api: network: check for used ports before writing

Currently the check for used ports for bonds and bridges happens
while rendering '/etc/network/interfaces.new' in PVE::Inotify
(pve-common).
However at that stage the new/updated interface is already merged
with the old settings, making it impossible to indicate where a NIC
is currently used.

The code is adapted from the renderer in
PVE::Inotify::__write_etc_network_interfaces.

Tested on a virtual PVE instance.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: bump versioned proxmox-widget-toolkit dependency
Thomas Lamprecht [Thu, 22 Apr 2021 18:43:37 +0000 (20:43 +0200)]
d/control: bump versioned proxmox-widget-toolkit dependency

bunch of stuff moved over or got added there...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: panel/StatusView: use from widget-toolkit instead
Dominik Csapak [Mon, 19 Apr 2021 11:00:48 +0000 (13:00 +0200)]
ui: panel/StatusView: use from widget-toolkit instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: Utils: use updateColumns from widget-toolkit
Dominik Csapak [Mon, 19 Apr 2021 11:00:47 +0000 (13:00 +0200)]
ui: Utils: use updateColumns from widget-toolkit

it was moved there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: use some icons from widget-toolkit
Dominik Csapak [Mon, 19 Apr 2021 11:00:46 +0000 (13:00 +0200)]
ui: use some icons from widget-toolkit

we moved them there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: Utils: use render functions from widget-toolkit
Dominik Csapak [Mon, 19 Apr 2021 11:00:45 +0000 (13:00 +0200)]
ui: Utils: use render functions from widget-toolkit

they live there now, so we can delete them here and use the ones from
widget-toolkit instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: guest safe destroy: try to be a bit more telling in box/tooltip label
Thomas Lamprecht [Thu, 22 Apr 2021 11:20:43 +0000 (13:20 +0200)]
ui: guest safe destroy: try to be a bit more telling in box/tooltip label

Try to be more clear about what those checkboxes do, hopefully
reducing potential confusion by (newer) users.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: guest safe destroy: fix alias
Thomas Lamprecht [Thu, 22 Apr 2021 11:18:48 +0000 (13:18 +0200)]
ui: guest safe destroy: fix alias

`proxmoxSafeDestroy` is the one from the parent, also widget. missed
in general...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: remove SafeDestroy window
Fabian Ebner [Mon, 19 Apr 2021 13:14:41 +0000 (15:14 +0200)]
ui: remove SafeDestroy window

which has been moved to proxmox-widget-toolkit.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: use safe destroy window from proxmox-widget-toolkit
Fabian Ebner [Mon, 19 Apr 2021 13:14:40 +0000 (15:14 +0200)]
ui: use safe destroy window from proxmox-widget-toolkit

for the remaining (i.e. non-guests) users.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: safe destroy guest: add checkbox for removal of unreferenced disks
Fabian Ebner [Mon, 19 Apr 2021 13:14:39 +0000 (15:14 +0200)]
ui: safe destroy guest: add checkbox for removal of unreferenced disks

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: use new SafeDestroyGuest window
Fabian Ebner [Mon, 19 Apr 2021 13:14:38 +0000 (15:14 +0200)]
ui: use new SafeDestroyGuest window

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: add SafeDestroyGuest window
Fabian Ebner [Mon, 19 Apr 2021 13:14:37 +0000 (15:14 +0200)]
ui: add SafeDestroyGuest window

The purge parameter is always explicitly set, which is different from the
existing behavior, but it does not rely on what the default in the backend is.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: Parser: respect mtu in {parse, print}QemuNetwork
Dominik Csapak [Tue, 23 Mar 2021 12:27:11 +0000 (13:27 +0100)]
ui: Parser: respect mtu in {parse, print}QemuNetwork

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agohttp server: comment and refactor CSRF skip-check logic
Thomas Lamprecht [Thu, 22 Apr 2021 09:10:48 +0000 (11:10 +0200)]
http server: comment and refactor CSRF skip-check logic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agohttp-server: fix for api token csrf token check
Lorenz Stechauner [Thu, 22 Apr 2021 08:46:34 +0000 (10:46 +0200)]
http-server: fix for api token csrf token check

Do not check any csrf tokens for auth with api tokens.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
3 years agohttp-server: minor code/indentation/comment cleanups
Thomas Lamprecht [Thu, 22 Apr 2021 07:10:19 +0000 (09:10 +0200)]
http-server: minor code/indentation/comment cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #3389: Skip CSRF token check also for API tokens on file upload
Lorenz Stechauner [Wed, 21 Apr 2021 11:59:43 +0000 (13:59 +0200)]
fix #3389: Skip CSRF token check also for API tokens on file upload

On file upload, the check for CSRF tokens was already skipped when
performing user authentication. This now happens for API tokens also.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: Utils: change default Console order for vms
Dominik Csapak [Thu, 22 Apr 2021 06:39:02 +0000 (08:39 +0200)]
ui: Utils: change default Console order for vms

we want to use spice for vms more than xtermjs if both are available
(since spice must be chosen as display in that case)
so the resulting order of preference for vms is:
  spice
  xtermjs
  novnc

since all methods work for containers always, there we use
xtermjs by default, or what is chosen in the datacenter option

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoapi: ceph pool create: replace left-over complex error handling
Thomas Lamprecht [Wed, 21 Apr 2021 15:34:22 +0000 (17:34 +0200)]
api: ceph pool create: replace left-over complex error handling

this was from the time where we had a loop here to add two storages,
one for KRDB-only and one for KRBD-never. Nowadays we can handle the
mixed case just fine, but the patch dropping that forget to cleanup
the error handling..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add comment about disabling spice/xterm initially
Dominik Csapak [Wed, 21 Apr 2021 13:02:48 +0000 (15:02 +0200)]
ui: add comment about disabling spice/xterm initially

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoceph: pool set: fix printing problematic settings
Thomas Lamprecht [Wed, 21 Apr 2021 14:06:29 +0000 (16:06 +0200)]
ceph: pool set: fix printing problematic settings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: pool set: print settings as they are applied
Thomas Lamprecht [Wed, 21 Apr 2021 14:05:39 +0000 (16:05 +0200)]
ceph: pool set: print settings as they are applied

a bit of a weird place to print code-wise, but it shows up in the
task log just fine.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: pool set: improve handling "size" parameter
Thomas Lamprecht [Wed, 21 Apr 2021 13:49:38 +0000 (15:49 +0200)]
ceph: pool set: improve handling "size" parameter

instead of fully duplicating the code just order it first if it
exists...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: ceph/pool: fix formatting of API parameters
Thomas Lamprecht [Wed, 21 Apr 2021 13:45:35 +0000 (15:45 +0200)]
api: ceph/pool: fix formatting of API parameters

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph/pool: fix setting target ratio/size (back) to zero
Thomas Lamprecht [Wed, 21 Apr 2021 13:44:47 +0000 (15:44 +0200)]
ui: ceph/pool: fix setting target ratio/size (back) to zero

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph/pool: fix minWidths for columns to support 720p without scrolling
Thomas Lamprecht [Wed, 21 Apr 2021 13:41:03 +0000 (15:41 +0200)]
ui: ceph/pool: fix minWidths for columns to support 720p without scrolling

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: pool: make min_size constrain check more general
Thomas Lamprecht [Wed, 21 Apr 2021 12:19:50 +0000 (14:19 +0200)]
ceph: pool: make min_size constrain check more general

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: pool: min_size should be auto-set to > size/2
Thomas Lamprecht [Wed, 21 Apr 2021 12:18:36 +0000 (14:18 +0200)]
ceph: pool: min_size should be auto-set to > size/2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: pool edit: improve UX of target size/ratio fields
Thomas Lamprecht [Wed, 21 Apr 2021 11:27:30 +0000 (13:27 +0200)]
ceph: pool edit: improve UX of target size/ratio fields

s/Target Size Ratio/Target Ratio/, shorter and ceph docs call it also
that way, allows do drop the non-standard label width.

Add tooltips to explain both, target size and ratio, a bit.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: pools: use sizeField, nicer UX and less code
Thomas Lamprecht [Wed, 21 Apr 2021 11:15:32 +0000 (13:15 +0200)]
ceph: pools: use sizeField, nicer UX and less code

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