]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
2 years agod/control: bump versioned proxmox-widget-toolkit dependency stable-6
Thomas Lamprecht [Tue, 15 Mar 2022 16:41:56 +0000 (17:41 +0100)]
d/control: bump versioned proxmox-widget-toolkit dependency

to ensure new EOL notice component is available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: fixup missing dangling comma
Thomas Lamprecht [Tue, 15 Mar 2022 16:46:08 +0000 (17:46 +0100)]
ui: fixup missing dangling comma

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoadd notice for nearing Proxmox VE 6.4 End-of-Life
Thomas Lamprecht [Tue, 29 May 2018 12:16:32 +0000 (14:16 +0200)]
add notice for nearing Proxmox VE 6.4 End-of-Life

As PVE 6.4 goes out of support in July, add a notice at the top with
a link to the faq, where the EOL dates are and also the upgrade
process is described and linked in short.

This year the base notice got added in proxmox-widget toolkit for
better reuse with our other two products.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 6.4-14
Thomas Lamprecht [Mon, 14 Mar 2022 09:48:28 +0000 (10:48 +0100)]
bump version to 6.4-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3620: ui: dc/storage: delete empty pbs fingerprint on edit
Dominik Csapak [Mon, 13 Sep 2021 08:29:31 +0000 (10:29 +0200)]
fix #3620: ui: dc/storage: delete empty pbs fingerprint on edit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit c6182270dae0b7af44acad3f858d961fa3f08a94)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agometrics: influx: preprare value: rename $quote to $force_quote
Thomas Lamprecht [Fri, 28 Jan 2022 10:06:25 +0000 (11:06 +0100)]
metrics: influx: preprare value: rename $quote to $force_quote

to avoid implying that it's *only* quoted if that parameter is
truthy.

Also, check the boolean before looks_like_number call, as that is
more expensive to do.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit b8608c53e773fad60d0008b0f1937e0cc5dd1c34)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3815: metrics: influxdb: coerce guest name always to string
Markus Frank [Fri, 28 Jan 2022 10:03:39 +0000 (11:03 +0100)]
fix #3815: metrics: influxdb: coerce guest name always to string

InfluxDB interprets the guest name '66601' as a number and the guest
name 'vm42' as a String. This leads to problematic metrics, that will
be dropped by influxdb. Whichever comes first decides how the
"schema" is defined.

To change that add a $to_quote hashmap to define which value
shouldn't get interpreted as number by always send it quoted.

For now only quote 'name'.

Note, that while the 'nodename' and 'host' properties would have the
same problem, they are tags in InfluxDB which are always interpreted
as strings:
https://docs.influxdata.com/influxdb/v2.1/reference/syntax/line-protocol/

Signed-off-by: Markus Frank <m.frank@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 988150664900d447e7bdb5d0e23edadb4bd82f35)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: update expected running kernel version to 5.13 or 5.15
Thomas Lamprecht [Mon, 14 Feb 2022 07:19:55 +0000 (08:19 +0100)]
pve6to7: update expected running kernel version to 5.13 or 5.15

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

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

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

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

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit f703b171e6ef7d06a3b751c50ed3d421db99fd45)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: pbs: suppress output from upload-log command
Fabian Ebner [Mon, 11 Oct 2021 07:14:23 +0000 (09:14 +0200)]
vzdump: pbs: suppress output from upload-log command

which ended up in the backup task log and can be confusing to users:

> INFO: Backup finished at 2021-10-11 08:40:38
> Result: {
>       "data": null
> }
> INFO: Backup job finished successfully

For proxmox-backup-server < 2.0.11-1, there was no output for the
upload-log command.

Reported in the community forum:
https://forum.proxmox.com/threads/backup-finishes-ok-but-data-null-info-on-finish.97740/

(cherry picked from commit 76897db1466870b03ed2f2d06db5164fee0b305f)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoAPI: Tasks: add more fields to return schema
Dominik Csapak [Fri, 9 Jul 2021 14:09:29 +0000 (16:09 +0200)]
API: Tasks: add more fields to return schema

so that they are documented and get displayed by pvesh/pvenode
all those fields must exists (since they come from the upid)
aside from the exitstatus, so marking that as optional

forum user reported that they are missing:
https://forum.proxmox.com/threads/ergebnis-eines-tasks-per-api-abfragen.92267/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 9777a9c4ae69b2f799c132bbc4086214d01b6ce8)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoOnly check deb sources.list entries
Rhonda D'Vine [Fri, 9 Jul 2021 07:24:41 +0000 (09:24 +0200)]
Only check deb sources.list entries

The check isn't specific enough, it also catches deb-src entries and
would give a false impression of security in certain circumstances, or
lead to false negatives in case you have a deb-src entry for
buster/updates even though you have bullseye-security in just the next
line -- something that isn't that uncommon for developers.

Signed-off-by: Rhonda D'Vine <rhonda@deb.at>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
(cherry picked from commit f00ebb3699621c795a515151b1f2632c731ed556)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 6.4-13
Thomas Lamprecht [Wed, 7 Jul 2021 16:07:41 +0000 (18:07 +0200)]
bump version to 6.4-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: storage content: ignore misconfigured unreferenced volumes
Fabian Ebner [Wed, 7 Jul 2021 10:22:50 +0000 (12:22 +0200)]
pve6to7: storage content: ignore misconfigured unreferenced volumes

If the same local storage is configured twice with content type
separation, migration in PVE 6 would lead to the volumes being
duplicated. As that would happen for every migration, such an issue
would likely be noticed already, and in PVE 7 such configuration is
not problematic for migration anymore. Also, misconfigured
unreferenced volumes are not an issue with respect to the upgrade
itself, just drop the check.

It's not necessary to scan storages with either 'images' or 'rootdir'
anymore, as only the log_info() remains.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 5dc51df910620a47459228e05675c2af81cbc46d)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: storage content: skip scanning storage if shared
Fabian Ebner [Wed, 7 Jul 2021 10:22:49 +0000 (12:22 +0200)]
pve6to7: storage content: skip scanning storage if shared

Shared storages are not scanned for migration either, so they cannot
be problematic in this context. This could lead to false positives
where it actually is completely unproblematic:

https://forum.proxmox.com/threads/proxmox-ve-7-0-released.92007/post-401165

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
(cherry picked from commit 5071033e2e76defdf83971a6c434f10a74d771e6)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: add check for Debian security repository
Fabian Ebner [Tue, 6 Jul 2021 12:31:55 +0000 (14:31 +0200)]
pve6to7: add check for Debian security repository

since the pattern for the suite changed.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
(cherry picked from commit e88941e826c1edc2418e1b7a5d4a236be105dec9)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: ha/ressources: fix toggling edit button on selection
Aaron Lauterer [Wed, 7 Jul 2021 11:36:34 +0000 (13:36 +0200)]
ui: ha/ressources: fix toggling edit button on selection

It needs to be a 'proxmoxButton' to get activated when selecting a HA
ressource. This was lost during the last code cleanup, commit d11524c.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
(cherry picked from commit 403476f8ef27989f0d7d14ba09938729211f672b)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: avoid parsing configs to often, merge lxc.cgroup check and note length one
Thomas Lamprecht [Wed, 7 Jul 2021 10:45:39 +0000 (12:45 +0200)]
pve6to7: avoid parsing configs to often, merge lxc.cgroup check and note length one

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit d0ec7e3e2fca754ed9a92716392c47af75efb4e9)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: remember if cgroup is forced to legacy
Thomas Lamprecht [Wed, 7 Jul 2021 10:40:43 +0000 (12:40 +0200)]
pve6to7: remember if  cgroup is forced to legacy

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 999b4335ef1dc69777198cdd2fd4c63bae0bbe97)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: add check for 'lxc.cgroup.' keys in container config
Stoiko Ivanov [Wed, 7 Jul 2021 08:44:19 +0000 (10:44 +0200)]
pve6to7: add check for 'lxc.cgroup.' keys in container config

The check is rather straight forward - and might help users who
passthrough devices to their containers.

Reported in our community forum:
https://forum.proxmox.com/threads/pve-7-0-lxc-intel-quick-sync-passtrough-not-working-anymore.92025/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
(cherry picked from commit 4cc5130b5678123135ae82ceb96e9c6da6fe1248)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 6.4-12
Thomas Lamprecht [Tue, 6 Jul 2021 13:51:10 +0000 (15:51 +0200)]
bump version to 6.4-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: adapt noout warn
Thomas Lamprecht [Tue, 6 Jul 2021 12:52:50 +0000 (14:52 +0200)]
pve6to7: adapt noout warn

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: enable noout before upgrade
Fabian Grünbichler [Tue, 6 Jul 2021 12:13:48 +0000 (14:13 +0200)]
pve6to7: enable noout before upgrade

even if the cluster-wide Ceph versions are uniform.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopve6to7: dont guard noout check on Ceph version
Fabian Grünbichler [Tue, 6 Jul 2021 12:13:47 +0000 (14:13 +0200)]
pve6to7: dont guard noout check on Ceph version

we don't have a mandatory Ceph major version upgrade this time around,
so this check does not make sense. instead, we want noout until the full
cluster is upgraded. let's use the simple approach and just flip the
switch to "turn off noout if all of Ceph is a single version" in the PVE
7.x branch.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 5617b13b915e79c582de5d2c9f8d8d814e79559a)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: check for >= Octopus
Fabian Grünbichler [Tue, 6 Jul 2021 12:13:46 +0000 (14:13 +0200)]
pve6to7: check for >= Octopus

and drop the Nautilus OSD upgrade check while we are at it..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit d1c51d86cab38d099fc64443f6b18717fb57eb9f)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: remove PASS noise for ceph
Fabian Grünbichler [Tue, 6 Jul 2021 12:13:45 +0000 (14:13 +0200)]
pve6to7: remove PASS noise for ceph

these were mostly relevant for the Luminous -> Nautilus upgrade, and we
don't need to list all the default passing states that our tooling sets
up anyway.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit efa7075778552938accc108368515f52343cbdfc)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: use new flags API
Fabian Grünbichler [Tue, 6 Jul 2021 12:13:44 +0000 (14:13 +0200)]
pve6to7: use new flags API

the old one is not available post-upgrade, let's use a single codepath
for this.

the new API only allows querying user-settable flags, but the only flags
we check besides 'noout' are not relevant for an upgrade of PVE 6.x to
7.x (PVE 6.x only supports Nautilus+ which requires these flags to be
set in order to work) so we can just drop those outdated checks instead
of extending/refactoring the API.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 05dc1ab498ff457b43723ab3e166fa27eff37063)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 6.4-11
Thomas Lamprecht [Mon, 5 Jul 2021 15:44:49 +0000 (17:44 +0200)]
bump version to 6.4-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: rework full-check skip-message slightly
Thomas Lamprecht [Mon, 5 Jul 2021 15:38:32 +0000 (17:38 +0200)]
pve6to7: rework full-check skip-message slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 8e0530c4130051ddde74fbc4567954de46f80ead)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: rework cgroup message slightly
Thomas Lamprecht [Mon, 5 Jul 2021 15:38:16 +0000 (17:38 +0200)]
pve6to7: rework cgroup message slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 4e55d526905dc1d182e7e98c2f4276261879c82d)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: try to iterate in a more stable fashion
Thomas Lamprecht [Mon, 5 Jul 2021 15:37:58 +0000 (17:37 +0200)]
pve6to7: try to iterate in a more stable fashion

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 8b805a70c8bd1f206a37b3f834600c35870af382)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: handle undefined ostype
Thomas Lamprecht [Mon, 5 Jul 2021 15:37:40 +0000 (17:37 +0200)]
pve6to7: handle undefined ostype

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 500ccca1a5cea8ccac2d18fb8d0b8ac8b5102768)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: add 'full' parameter for expensive checks
Stoiko Ivanov [Mon, 5 Jul 2021 10:57:17 +0000 (12:57 +0200)]
pve6to7: add 'full' parameter for expensive checks

and place the container cgroupv2 support checks behind it.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
(cherry picked from commit 98e6cd63cf5327ab522918f1a8001719bc0f5ae6)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: check for containers not supporting pure cgroupv2
Stoiko Ivanov [Mon, 5 Jul 2021 10:57:16 +0000 (12:57 +0200)]
pve6to7: check for containers not supporting pure cgroupv2

Helpers copied from pve-container to avoid versioned bumps.

Early returns when no containers are running, or the containers don't
use systemd, as well as returning after finding the first affected
container to minimize impact and resource usage.

Checking running containers first since following /proc/<pid>/root is
cheaper than mounting all volumes for a container

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
(cherry picked from commit 97441e982adcaaff52f80c8e7e28798817d18c44)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: make cert check only report on errors
Thomas Lamprecht [Mon, 5 Jul 2021 15:39:05 +0000 (17:39 +0200)]
pve6to7: make cert check only report on errors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 6.4-10
Thomas Lamprecht [Fri, 2 Jul 2021 09:55:53 +0000 (11:55 +0200)]
bump version to 6.4-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: cluster/resources: add 'name' property to return schema
Hannes Laimer [Mon, 28 Jun 2021 10:40:34 +0000 (12:40 +0200)]
api: cluster/resources: add 'name' property to return schema

VM names are returned by the endpoint anyway, therefore it makes sense
to add it to the endpoint specification so it also appears in the API
docs and is visible when using pvesh with text output.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: cluster: add backupinfo to subdirectories
Thomas Lamprecht [Fri, 2 Jul 2021 09:36:21 +0000 (11:36 +0200)]
api: cluster: add backupinfo to subdirectories

to make it actually show up in auto-completion and some docs..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: cluster/backupinfo: rework bogus index endpoint
Thomas Lamprecht [Fri, 2 Jul 2021 09:34:32 +0000 (11:34 +0200)]
api: cluster/backupinfo: rework bogus index endpoint

This had a myriad of issues:

* marked as protected, thus forwarded to the privileged daemon even
  if it just returned static information
* did not return directory index but a "stub" string, which does not
  makes sense.
* not named index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: fix description-length warning for guests
Thomas Lamprecht [Fri, 2 Jul 2021 09:49:48 +0000 (11:49 +0200)]
pve6to7: fix description-length warning for guests

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: drop PASS for Luminous -> Nautilus check
Fabian Grünbichler [Thu, 1 Jul 2021 07:58:57 +0000 (09:58 +0200)]
pve6to7: drop PASS for Luminous -> Nautilus check

this should pass on pretty much every system running hyper converged
Ceph on PVE 6.x ..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopve6to7: reduce number of cluster PASS statements
Fabian Grünbichler [Thu, 1 Jul 2021 07:58:56 +0000 (09:58 +0200)]
pve6to7: reduce number of cluster PASS statements

these were mostly releveant for upgrading from Corosync 2.x to 3.x - so
keep the warnings/errors, but reduce the noise a bit by skipping lots of
PASS output.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopve6to7: skip user.cfg if it does not exist
Dominik Csapak [Wed, 30 Jun 2021 13:32:23 +0000 (15:32 +0200)]
pve6to7: skip user.cfg if it does not exist

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 480445c500fd3b9c0c4b133428f9caeccd3f3236)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: more fine-grained detection of misconfigured guest volumes
Fabian Ebner [Wed, 30 Jun 2021 09:16:18 +0000 (11:16 +0200)]
pve6to7: more fine-grained detection of misconfigured guest volumes

If neither 'rootdir' nor 'images' are configured on a storage, but
there are guest images, just log the number of volumes found. If they
are relevant for migration, the check for unreferenced volumes will
catch them later.

Also detect content type mismatch for all volumes of existing guests,
which also covers the case of a VM image on a storage with only
'rootdir' and vice versa. To catch all such unreferenced volumes too,
it is necessary to scan all storages that do not have both content
types configured.

Change the message from 'will not work' to 'might not work'. If a
volume only referenced by a snapshot is misconfigured, it doesn't mean
that the guest doesn't work at all. Or it might be an ISO on a
misconfigured storage.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopve6to7: content check: fix detecting pass
Fabian Ebner [Wed, 30 Jun 2021 09:16:17 +0000 (11:16 +0200)]
pve6to7: content check: fix detecting pass

If there is a log_fail, because of misconfigured 'none' content type, the final
log_pass should not be printed.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobump version to 6.4-9
Thomas Lamprecht [Wed, 23 Jun 2021 18:46:45 +0000 (20:46 +0200)]
bump version to 6.4-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc: backup: fix job detail search
Aaron Lauterer [Tue, 22 Jun 2021 08:07:26 +0000 (10:07 +0200)]
ui: dc: backup: fix job detail search

'for...in array' returns the id in the array but not the value,
'for...of array' returns the values.

Another issue that I ran into was if the property did not exist.

Checking if the property evaluates to false will catch situations where
the property does not exist or is null. All other situations where there
is a value for the name, id or type, should evaluate to true if present
as they are strings or the VMID.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
(cherry picked from commit cfabe90ecb69a1b4120d37a6879c3bb4772d310c)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: make content-type check output an actual list
Thomas Lamprecht [Mon, 21 Jun 2021 15:09:43 +0000 (17:09 +0200)]
pve6to7: make content-type check output an actual list

As else it gets rather confusing when one has more than one or two
such images.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: check for misconfigured content type 'none'
Fabian Ebner [Mon, 21 Jun 2021 14:31:40 +0000 (16:31 +0200)]
pve6to7: check for misconfigured content type 'none'

which will be a hard error (i.e. section will be skipped when parsing) in PVE
7.0

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
(cherry picked from commit 1cad0c7fdf1398e08625077dfa30d53256ef475b)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: add check for guest images on misconfigured storages
Fabian Ebner [Mon, 21 Jun 2021 14:31:39 +0000 (16:31 +0200)]
pve6to7: add check for guest images on misconfigured storages

migration and (container) startup will no longer work when the storage's content
type is not correct, and unreferenced volumes on such storages will not be
scanned for anymore.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
(cherry picked from commit fffa98eaf05dc944a78a9fa23f9882c6357f9f6c)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: ceph/Status: fix icon in status grid
Dominik Csapak [Thu, 27 May 2021 11:42:48 +0000 (13:42 +0200)]
ui: ceph/Status: fix icon in status grid

there was a spurious leftover single quote("'"), that prevented
the correct css class to be inserted
(e.g., fa-exclamation' instead of fa-exclamation)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit c3b2a34528b40d000564c492cc0fd5ce69432c02)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3470: ui: qemu/CmdMenu: fix confirm message for 'pause' cmd
Dominik Csapak [Wed, 16 Jun 2021 06:01:51 +0000 (08:01 +0200)]
fix #3470: ui: qemu/CmdMenu: fix confirm message for 'pause' cmd

while the command itself is 'suspend', the task description
is 'qmpause', so simply add a parameter and overwrite it for the pause
menu item

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 9875adb0c789c1e88d19da32d1f16e63595929e9)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: re-work output of description length check and add passes too
Thomas Lamprecht [Fri, 18 Jun 2021 14:49:22 +0000 (16:49 +0200)]
pve6to7: re-work output of description length check and add passes too

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 33015eb881f65030a1a2a6ebee57c5891edc6c6f)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: add check for guest and node description length
Lorenz Stechauner [Fri, 18 Jun 2021 13:34:23 +0000 (15:34 +0200)]
pve6to7: add check for guest and node description length

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
(cherry picked from commit 69677d51f7ac0c671577e70f62d95a0c7aba3e6a)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: bump free space requirement to 4 GiB
Thomas Lamprecht [Fri, 18 Jun 2021 12:27:00 +0000 (14:27 +0200)]
pve6to7: bump free space requirement to 4 GiB

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: fix Guest Summary Notes height
Dominik Csapak [Fri, 18 Jun 2021 11:34:09 +0000 (13:34 +0200)]
ui: fix Guest Summary Notes height

fixes 'infinite' height of the guest notes, by setting the height on the
container a level up

the notes view itself is already scrollable, so if it is too large,
there'll be a scrollbar

this does not change anything for templates, as there we show nothing
under the notes and thus there the infinite height is ok

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 8530bc4149ee09f149c584870e0c4df5e6066a70)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopve6to7: use file_get_contents
Fabian Grünbichler [Fri, 18 Jun 2021 08:57:10 +0000 (10:57 +0200)]
pve6to7: use file_get_contents

instead of File::Slurp

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopve6to7: improve user.cfg parser
Fabian Grünbichler [Fri, 18 Jun 2021 08:52:32 +0000 (10:52 +0200)]
pve6to7: improve user.cfg parser

make it a bit more like the actual one - remove whitespace padding, use
same regex/split calls.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopve6to7: add check for pool permissions
Lorenz Stechauner [Thu, 17 Jun 2021 08:39:18 +0000 (10:39 +0200)]
pve6to7: add check for pool permissions

the two checks make sure that:
* no user defined role 'PVEPoolUser' exists
* the user gets a hint for roles only containing Pool.Allocate and
    not Pool.Audit

a very simple parser for user.cfg was implemented to be able to
parse the (in pve 6 invalid) Pool.Audit permission

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
2 years agod/control: add pve-eslint to b-d
Fabian Grünbichler [Wed, 16 Jun 2021 12:11:04 +0000 (14:11 +0200)]
d/control: add pve-eslint to b-d

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopve6to7: add check for CIFS credentials
Fabian Ebner [Wed, 16 Jun 2021 07:26:54 +0000 (09:26 +0200)]
pve6to7: add check for CIFS credentials

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopve6to7: improve vzdump.cron check
Fabian Grünbichler [Wed, 16 Jun 2021 11:26:38 +0000 (13:26 +0200)]
pve6to7: improve vzdump.cron check

handle errors, and fix filename referenced in the warning.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopve6to7: add checks for backup retention options
Fabian Ebner [Wed, 16 Jun 2021 07:26:53 +0000 (09:26 +0200)]
pve6to7: add checks for backup retention options

Note that it's not possible to use read_vzdump_defaults() and storage_config(),
because they auto-converts maxfiles already.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: TFA: use correct user-id value when creating TOTP QR code
Thomas Lamprecht [Thu, 10 Jun 2021 07:16:38 +0000 (09:16 +0200)]
ui: TFA: use correct user-id value when creating TOTP QR code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 2abc47ae590de83c0ff7a4fcc7abfbe5bb061088)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 6.4-8
Thomas Lamprecht [Thu, 27 May 2021 12:28:39 +0000 (14:28 +0200)]
bump version to 6.4-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoactually install pve6to7 tool
Thomas Lamprecht [Thu, 27 May 2021 12:49:57 +0000 (14:49 +0200)]
actually install pve6to7 tool

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: form/CalendarEvent: remove displayField from config
Dominik Csapak [Wed, 26 May 2021 09:01:12 +0000 (11:01 +0200)]
ui: form/CalendarEvent: remove displayField from config

in extjs 7.0, setting the displayField overwrites the displayTpl, which
we use here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: tree/SnapshotTree: use beforedestroy instead of destroy
Dominik Csapak [Wed, 26 May 2021 09:01:11 +0000 (11:01 +0200)]
ui: tree/SnapshotTree: use beforedestroy instead of destroy

on extjs 7.0, this triggers when the handler is not available anymore,
so use the beforedestroy event instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: panel/ConfigPanel: return early on no selection
Dominik Csapak [Wed, 26 May 2021 09:01:10 +0000 (11:01 +0200)]
ui: panel/ConfigPanel: return early on no selection

treelist technically allows deselection and this happens on destruction
in extjs 7.0 so simply return early to avoid errors accessing
components that do not exist anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: panel/ConfigPanel: change ui class to pve-nav
Dominik Csapak [Wed, 26 May 2021 09:01:09 +0000 (11:01 +0200)]
ui: panel/ConfigPanel: change ui class to pve-nav

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: ResourceGrid: move first update to afterrender
Dominik Csapak [Wed, 26 May 2021 09:01:08 +0000 (11:01 +0200)]
ui: ResourceGrid: move first update to afterrender

else with extjs 7.0, the first render does not happen yet, because
the grid is not visible at that time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: form/VMCPUFlagSelector: mark radio-buttons as 'not form fields'
Dominik Csapak [Wed, 26 May 2021 09:01:07 +0000 (11:01 +0200)]
ui: form/VMCPUFlagSelector: mark radio-buttons as 'not form fields'

else they might get picked up individually

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoinfluxdb: rework comment
Thomas Lamprecht [Wed, 26 May 2021 15:38:22 +0000 (17:38 +0200)]
influxdb: rework comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3440: influxdb: remove duplicate vmid tag
Lorenz Stechauner [Wed, 26 May 2021 09:25:11 +0000 (11:25 +0200)]
fix #3440: influxdb: remove duplicate vmid tag

remove vmid from data part, it is already contained in object part.
this is accomplished by adding the parameter $excluded to
build_influxdb_payload().

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
2 years agoui: ResourceGrid: correctly remove ResourceStore listener
Dominik Csapak [Thu, 20 May 2021 14:59:16 +0000 (16:59 +0200)]
ui: ResourceGrid: correctly remove ResourceStore listener

while the function in '.on' and '.un' are identical, they are not the
*same* function, thus the '.un' does not really remove the listener,
and we have leftover references to the grid which means it will never
really garbage-collected

instead, use '.mon' on the grid, which automatically cleans up the
listeners

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/RoleView: add variableRowHeight
Dominik Csapak [Thu, 20 May 2021 14:59:15 +0000 (16:59 +0200)]
ui: dc/RoleView: add variableRowHeight

otherwise the grid is confused about the row height (since it is
variable here) and renders the scrollbars weirdly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: Parser: fix bind and dev mounts for lxc
Dominik Csapak [Thu, 20 May 2021 14:59:14 +0000 (16:59 +0200)]
ui: Parser: fix bind and dev mounts for lxc

match returns 'null' if the regex does not match, which is not
destructurable. so we have to save the match and check if it valid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agopve5to6: preparatory steps for when 7 is released
Thomas Lamprecht [Wed, 19 May 2021 17:02:51 +0000 (19:02 +0200)]
pve5to6: preparatory steps for when 7 is released

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoadd pve6to7 WIP
Thomas Lamprecht [Wed, 19 May 2021 17:01:51 +0000 (19:01 +0200)]
add pve6to7 WIP

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopveceph install: fix fallback for default version
Thomas Lamprecht [Wed, 19 May 2021 16:25:45 +0000 (18:25 +0200)]
pveceph install: fix fallback for default version

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 6.4-7
Thomas Lamprecht [Wed, 19 May 2021 15:51:51 +0000 (17:51 +0200)]
bump version to 6.4-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoenable eslint on build
Thomas Lamprecht [Wed, 19 May 2021 14:56:50 +0000 (16:56 +0200)]
enable eslint on build

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: form/storage selector: re-validate after storage list was reloaded
Thomas Lamprecht [Wed, 19 May 2021 14:49:41 +0000 (16:49 +0200)]
ui: form/storage selector: re-validate after storage list was reloaded

two style fixes thrown in

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/Migrate: avoid triggering another info request if already in-progress
Thomas Lamprecht [Wed, 19 May 2021 14:51:16 +0000 (16:51 +0200)]
ui: window/Migrate: avoid triggering another info request if already in-progress

use the node as key, so that a target switch would still trigger a
new one - else there's a slight chance that a user could get the
check out-of-sync (from another node).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/Migrate: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 14:48:27 +0000 (16:48 +0200)]
ui: window/Migrate: eslint fixes and code cleanup/refactoring/modernize

Use the Proxmox.Async.api2 helper to avoid deep nesting

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/Browser Settings: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 14:10:17 +0000 (16:10 +0200)]
ui: window/Browser Settings: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/FW Log Rate: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 14:10:04 +0000 (16:10 +0200)]
ui: window/FW Log Rate: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/wizard: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 14:08:52 +0000 (16:08 +0200)]
ui: window/wizard: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/ceph install: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 14:08:14 +0000 (16:08 +0200)]
ui: window/ceph install: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/bulkaction: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 14:08:01 +0000 (16:08 +0200)]
ui: window/bulkaction: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: window/startup: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 14:07:51 +0000 (16:07 +0200)]
ui: window/startup: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: snapshot tree: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 12:17:50 +0000 (14:17 +0200)]
ui: snapshot tree: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: panel/StatusPanel: eslint fixes
Dominic Jäger [Wed, 19 May 2021 10:56:22 +0000 (12:56 +0200)]
ui: panel/StatusPanel: eslint fixes

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2 years agoui: panel/RunningChart: eslint fixes
Dominic Jäger [Wed, 19 May 2021 10:56:21 +0000 (12:56 +0200)]
ui: panel/RunningChart: eslint fixes

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2 years agoui: panel/NotesView: eslint fixes
Dominic Jäger [Wed, 19 May 2021 10:56:20 +0000 (12:56 +0200)]
ui: panel/NotesView: eslint fixes

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2 years agoui: panel/IPSet: eslint fixes
Dominic Jäger [Wed, 19 May 2021 10:56:19 +0000 (12:56 +0200)]
ui: panel/IPSet: eslint fixes

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2 years agoui: panel/ConfigPanel: eslint fixes
Dominic Jäger [Wed, 19 May 2021 10:56:18 +0000 (12:56 +0200)]
ui: panel/ConfigPanel: eslint fixes

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2 years agoui: resource tree: eslint fixes and code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 12:00:59 +0000 (14:00 +0200)]
ui: resource tree: eslint fixes and code cleanup/refactoring/modernize

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: form/pci: add simple IOMMU group renderer
Thomas Lamprecht [Wed, 19 May 2021 10:30:06 +0000 (12:30 +0200)]
ui: form/pci: add simple IOMMU group renderer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu/PCI Edit: code cleanup/refactoring/modernize
Thomas Lamprecht [Wed, 19 May 2021 10:29:29 +0000 (12:29 +0200)]
ui: qemu/PCI Edit: code cleanup/refactoring/modernize

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