]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
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>
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>
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>
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>
2 years agod/control: bump versioned build-dep on eslint
Thomas Lamprecht [Tue, 6 Jul 2021 12:15:35 +0000 (14:15 +0200)]
d/control: bump versioned build-dep on eslint

For ES2020 support

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: iscsi: code cleanup
Thomas Lamprecht [Tue, 6 Jul 2021 10:38:02 +0000 (12:38 +0200)]
ui: iscsi: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoupdate aplinfo index
Thomas Lamprecht [Tue, 6 Jul 2021 10:35:06 +0000 (12:35 +0200)]
update aplinfo index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoaplinfo: do not trust 5.x release key anymore
Thomas Lamprecht [Tue, 6 Jul 2021 10:33:38 +0000 (12:33 +0200)]
aplinfo: do not trust 5.x release key anymore

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoaplinfo: switch over to new index
Thomas Lamprecht [Tue, 6 Jul 2021 10:32:46 +0000 (12:32 +0200)]
aplinfo: switch over to new index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/rules: do not compress apl info trust db
Thomas Lamprecht [Tue, 6 Jul 2021 10:29:23 +0000 (12:29 +0200)]
d/rules: do not compress apl info trust db

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapl: add bullseye pub key
Thomas Lamprecht [Tue, 6 Jul 2021 10:19:28 +0000 (12:19 +0200)]
apl: add bullseye pub key

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: cifs: do not send empty user/password
Thomas Lamprecht [Tue, 6 Jul 2021 05:38:47 +0000 (07:38 +0200)]
ui: cifs: do not send empty user/password

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.0-8
Thomas Lamprecht [Mon, 5 Jul 2021 15:50:00 +0000 (17:50 +0200)]
bump version to 7.0-8

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>
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>
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>
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>
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>
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>
2 years agod/control: bump versioned build-dependency for pve-doc-generator
Thomas Lamprecht [Mon, 5 Jul 2021 14:55:33 +0000 (16:55 +0200)]
d/control: bump versioned build-dependency for pve-doc-generator

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: notes edit: set markdown basic as onlineHelp
Thomas Lamprecht [Mon, 5 Jul 2021 13:35:46 +0000 (15:35 +0200)]
ui: notes edit: set markdown basic as onlineHelp

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node status: prioritize non-production and fix ok case
Thomas Lamprecht [Mon, 5 Jul 2021 13:33:42 +0000 (15:33 +0200)]
ui: node status: prioritize non-production and fix ok case

Non-production repositories will always pull in their newer software,
so even if enterprise+subscription is OK we should mark it with
priority if, e.g., pvetest is enabled.

There was also a bug regarding the all OK state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node status: rework repo status texts/icon
Thomas Lamprecht [Mon, 5 Jul 2021 12:47:03 +0000 (14:47 +0200)]
ui: node status: rework repo status texts/icon

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: add missing (b-)depends on pve-rs
Fabian Grünbichler [Mon, 5 Jul 2021 11:10:11 +0000 (13:10 +0200)]
d/control: add missing (b-)depends on pve-rs

needed for the APT repo functionality

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoui: dc/guests: set line-height again and increase font-size
Thomas Lamprecht [Mon, 5 Jul 2021 10:56:06 +0000 (12:56 +0200)]
ui: dc/guests: set line-height again and increase font-size

the 14px over 13px is not much, but as that is the font-size intended
for font-awesome it makes it all look nicer together

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/guests: avoid using <br> for layouting
Thomas Lamprecht [Mon, 5 Jul 2021 10:55:39 +0000 (12:55 +0200)]
ui: dc/guests: avoid using <br> for layouting

use a flex box with centered columns instead, that needs adding a div
per row, but that's IMO actually making it more clear what a row is
anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/Guests: make update lazy
Thomas Lamprecht [Mon, 5 Jul 2021 10:18:50 +0000 (12:18 +0200)]
ui: dc/Guests: make update lazy

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/Guests: fix indentation
Thomas Lamprecht [Mon, 5 Jul 2021 10:18:28 +0000 (12:18 +0200)]
ui: dc/Guests: fix indentation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/guests: remove 'line-height' from default style
Stefan Reiter [Mon, 5 Jul 2021 10:15:28 +0000 (12:15 +0200)]
ui: dc/guests: remove 'line-height' from default style

Firefox doesn't correctly break to the next line if the line-height
is set as is (with certain fonts, including the default on debian it
seems). Simply remove it, as it isn't necessary.

Suggested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2 years agopveceph: also install nvme-cli
Fabian Ebner [Mon, 5 Jul 2021 09:50:00 +0000 (11:50 +0200)]
pveceph: also install nvme-cli

The nvme-cli package is recommended by (our) Ceph packages, but here
--no-install-recommends is used to avoid pulling in too much.

The issue with not installing nvme-cli is that a "security
information" mail notification is triggered by sudo each time Ceph
tries to get the device health metrics. While there is a sudoers
rule for /usr/sbin/nvme, Ceph uses 'sudo nvme ...', so it does not
apply when the package is not installed.

This didn't seem to happen with sudo in buster.

It's about 1 MiB of additional packages (nvme-cli + uuid-runtime).

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: node summary: slightly increase panles height
Thomas Lamprecht [Mon, 5 Jul 2021 08:58:57 +0000 (10:58 +0200)]
ui: node summary: slightly increase panles height

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: status: improve reuse of gettext
Thomas Lamprecht [Mon, 5 Jul 2021 08:47:58 +0000 (10:47 +0200)]
ui: status: improve reuse of gettext

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: fix yet another bogus broken gettext usage
Thomas Lamprecht [Mon, 5 Jul 2021 08:24:43 +0000 (10:24 +0200)]
ui: fix yet another bogus broken gettext usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: notes: add empty text with a hint that markdown is supported
Thomas Lamprecht [Mon, 5 Jul 2021 06:29:20 +0000 (08:29 +0200)]
ui: notes: add empty text with a hint that markdown is supported

We can do so unconditionally as this is a PVE specific component and
only used for guests and nodes, both using the markdown Parser.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node status: small code size reduction
Thomas Lamprecht [Sun, 4 Jul 2021 20:09:36 +0000 (22:09 +0200)]
ui: node status: small code size reduction

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node/status view: padding-reduce fixup
Thomas Lamprecht [Sun, 4 Jul 2021 20:08:41 +0000 (22:08 +0200)]
ui: node/status view: padding-reduce fixup

overlooked the inline one, and that caused some layout troubles

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node/status view: reduce quite generous paddings
Thomas Lamprecht [Sun, 4 Jul 2021 19:45:14 +0000 (21:45 +0200)]
ui: node/status view: reduce quite generous paddings

As both, the whole panels body and the actual items all had their own
padding it added up quite a bit.

Some padding is good to avoid elements being "glued" to the parent
borders, but that can be done with also with ~15 px vs. 30 px on each
side, so no need to waste that much extra space we can use in some
languages to render content

Added benefit, the status panel now is more in sync with the RRD
panels regarding content start/end.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node summary: rework repo status output
Thomas Lamprecht [Sun, 4 Jul 2021 19:18:31 +0000 (21:18 +0200)]
ui: node summary: rework repo status output

the icon on the left side look a bit weird here, as the lines
directly above had none and the actual status which the icon tried to
emphasize is on the right anyway.

Rework also the output.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node summary: followup code cleanup
Thomas Lamprecht [Sun, 4 Jul 2021 19:17:35 +0000 (21:17 +0200)]
ui: node summary: followup code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: node summary: show repository configuration status
Fabian Ebner [Wed, 23 Jun 2021 16:11:26 +0000 (18:11 +0200)]
ui: node summary: show repository configuration status

I tried to use itemid and lookupreference for the nodeStatus item, but couldn't
get it to work, so I factored it out.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoworkspace: set title to header for aria
Thomas Lamprecht [Sun, 4 Jul 2021 16:19:52 +0000 (18:19 +0200)]
workspace: set title to header for aria

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoutils: enable ARIA again
Thomas Lamprecht [Sun, 4 Jul 2021 16:15:54 +0000 (18:15 +0200)]
utils: enable ARIA again

We had done so already in PBS and PMG since a bit without seeing
anything broken due to it, which makes sense as this was enabled for
*during* the step-by-step upgrade from ExtJS 4 to 5 (and then
directly 6).

Re-enabling  could help with some accessibility issues we have some
tangential reports[0].

[0]: https://github.com/nvaccess/nvda/issues/11530

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: rework global searchfield, drop cruft, improve readability
Thomas Lamprecht [Sun, 4 Jul 2021 16:09:59 +0000 (18:09 +0200)]
ui: rework global searchfield, drop cruft, improve readability

Single letter variable names really do not help understanding what's
going on, as do overly general names like fields for the split up
words we actually search+filter for.
Using a switch block as map is often also not ideal (way more syntax
noise and style hacks like break on the same line to keep it
compact), rather just use an actual object map.

Some of the improvements where not possible when this was
implemented, as then we ensured < es5 compat for IE 10 support.

With for-of and nullish-chaining a few things to get nicer to
express.

While at it also fix comment text width making them less look like
haikus and improve match calculation comment to avoid implying that
match is either 0, 1 or 2, it can be higher too (if multiple columns
match).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/postinst: actively remove pvetest repository (add for beta) again
Thomas Lamprecht [Sat, 3 Jul 2021 21:50:54 +0000 (23:50 +0200)]
d/postinst: actively remove pvetest repository (add for beta) again

in theory we'd need to be more cautios but this was added only during
beta, which is when we do not really provided any stability
guarantee, further, it's rather unlikely that one added very
important repos that, when removed, break something (again *during*
beta).

The new APT repo management makes it also easy to see when one does
not gets any PVE updates, and one can add the pvetest repo there
again easily too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: download do not clear meta info on certValidity change
Thomas Lamprecht [Sat, 3 Jul 2021 21:35:51 +0000 (23:35 +0200)]
ui: download do not clear meta info on certValidity change

Makes no sense, as the URL is the same so the info, if any at all, is
still valid - not counting the rather rare case where in the exact
moment one disables cert checking a MITM interception goes live ;-)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: download: use view model for state handling
Thomas Lamprecht [Sat, 3 Jul 2021 21:17:53 +0000 (23:17 +0200)]
ui: download: use view model for state handling

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: auth schema: we use OpenID Connect
Thomas Lamprecht [Sat, 3 Jul 2021 14:32:23 +0000 (16:32 +0200)]
ui: auth schema: we use OpenID Connect

As OpenID is the old one, with several security implications/issues
present, so avoid suggesting that its used.

`OpenID Connect` revers to the "third gen" on top of oauth2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/auth: refactor openID edit window to be more static
Thomas Lamprecht [Sat, 3 Jul 2021 14:31:43 +0000 (16:31 +0200)]
ui: dc/auth: refactor openID edit window to be more static

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocss: fix typo in property name
Thomas Lamprecht [Sat, 3 Jul 2021 14:30:15 +0000 (16:30 +0200)]
css: fix typo in property name

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.0-7
Thomas Lamprecht [Sat, 3 Jul 2021 00:13:29 +0000 (02:13 +0200)]
bump version to 7.0-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: adapt task-history icon, use same as in PBS
Thomas Lamprecht [Sat, 3 Jul 2021 00:40:51 +0000 (02:40 +0200)]
ui: adapt task-history icon, use same as in PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: minimally increase font-size of product title
Thomas Lamprecht [Sat, 3 Jul 2021 00:05:06 +0000 (02:05 +0200)]
ui: minimally increase font-size of product title

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoRevert "add beta text with link to bugtracker"
Thomas Lamprecht [Sat, 3 Jul 2021 00:04:33 +0000 (02:04 +0200)]
Revert "add beta text with link to bugtracker"

This reverts commit 4d1bb8e50f795162040719eb69e2c87009cc2850.

2 years agoRevert "ui: temporary disable repo config entry"
Thomas Lamprecht [Fri, 2 Jul 2021 23:33:42 +0000 (01:33 +0200)]
Revert "ui: temporary disable repo config entry"

This reverts commit 48dd979c4b32a8c89d6dd45bce787eeda0392953.

2 years agobump version to 7.0-6
Thomas Lamprecht [Fri, 2 Jul 2021 23:31:52 +0000 (01:31 +0200)]
bump version to 7.0-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: temporary disable repo config entry
Thomas Lamprecht [Fri, 2 Jul 2021 23:26:44 +0000 (01:26 +0200)]
ui: temporary disable repo config entry

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: storage: file download: rework code/UX a bit
Thomas Lamprecht [Fri, 2 Jul 2021 23:20:15 +0000 (01:20 +0200)]
ui: storage: file download: rework code/UX a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: move download URL to storage window into own file
Thomas Lamprecht [Fri, 2 Jul 2021 22:44:01 +0000 (00:44 +0200)]
ui: move download URL to storage window into own file

As 200 lines is a bit much for the content view, i.e., basically
growing it by 50% in size for a very specific feature is not ideal.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #1710: ui: storage: add download from url button
Lorenz Stechauner [Thu, 1 Jul 2021 08:50:07 +0000 (10:50 +0200)]
fix #1710: ui: storage: add download from url button

uses the common function PVE::Tools::download_file_from_url to
download a iso image or container template.

note: Only users with permissions `Sys.Audit` and `Sys.Modify` on
`/` are permitted to use the api endpoints due to security reasons.
(it is possible to download files from internal networks which would
be not visible/accessible from outside)

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: Utils: change download task format
Lorenz Stechauner [Thu, 1 Jul 2021 08:50:06 +0000 (10:50 +0200)]
ui: Utils: change download task format

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: nodes: add query_url_metadata method
Lorenz Stechauner [Thu, 1 Jul 2021 08:50:05 +0000 (10:50 +0200)]
api: nodes: add query_url_metadata method

metadata is gained using a HEAD request.

Due to the ability of this api endpoint to request files on internal
networks (which would not be visible/accessible from outside) it is
restricted to users with permissions `Sys.Audit` and `Sys.Modify` on
`/`. Users with these permissions are able to alter node (network)
config anyway, so this should not create any further security risk.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
2 years agod/control: bump versioned dependency on proxmox-widget-toolkit to 3.2-1
Thomas Lamprecht [Fri, 2 Jul 2021 22:35:50 +0000 (00:35 +0200)]
d/control: bump versioned dependency on proxmox-widget-toolkit to 3.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: realms: use address-book as default fallback icon
Thomas Lamprecht [Fri, 2 Jul 2021 19:59:42 +0000 (21:59 +0200)]
ui: realms: use address-book as default fallback icon

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: realms: add iconCls to menu entries
Thomas Lamprecht [Fri, 2 Jul 2021 19:57:26 +0000 (21:57 +0200)]
ui: realms: add iconCls to menu entries

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: notes: use monospace font and make white-space pre-wrap in text area
Thomas Lamprecht [Fri, 2 Jul 2021 16:48:07 +0000 (18:48 +0200)]
ui: notes: use monospace font and make white-space pre-wrap in text area

can improve editing experience quite a bit when formating tables ore
the like.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: auth domains: openID: make 'username-claim' display-edit field
Thomas Lamprecht [Fri, 2 Jul 2021 13:26:55 +0000 (15:26 +0200)]
ui: auth domains: openID: make 'username-claim' display-edit field

while we cannot allow editing it after realm creation it is still
interesting to know to which value it was set.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: Workspace: use domains info to hide password/tfa items
Dominik Csapak [Thu, 1 Jul 2021 12:25:06 +0000 (14:25 +0200)]
ui: Workspace: use domains info to hide password/tfa items

in the user menu

we have to make an additional api call here, since it is the only
place (currently) where we can get the realm type

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ Thomas: adapt to move of parse_userid to widget-toolkit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: user view: use username/realm renderer from widget-toolkit
Thomas Lamprecht [Fri, 2 Jul 2021 13:18:44 +0000 (15:18 +0200)]
ui: user view: use username/realm renderer from widget-toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: user view: adapt to users response API changes
Thomas Lamprecht [Fri, 2 Jul 2021 13:15:31 +0000 (15:15 +0200)]
ui: user view: adapt to users response API changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: login: code-style and indentation cleanup
Thomas Lamprecht [Fri, 2 Jul 2021 12:15:56 +0000 (14:15 +0200)]
ui: login: code-style and indentation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/UserView: disable Password button based on realm type
Dominik Csapak [Thu, 1 Jul 2021 12:25:04 +0000 (14:25 +0200)]
ui: dc/UserView: disable Password button based on realm type

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/UserView: disable TFA button based on realm type
Dominik Csapak [Thu, 1 Jul 2021 12:25:03 +0000 (14:25 +0200)]
ui: dc/UserView: disable TFA button based on realm type

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc: add AuthEditOpenId panel
Dominik Csapak [Thu, 1 Jul 2021 12:25:02 +0000 (14:25 +0200)]
ui: dc: add AuthEditOpenId panel

for adding and editing openid realms, does not support tfa

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/AuthEditBase: only add tfa field on auth modes that support that
Dominik Csapak [Thu, 1 Jul 2021 12:25:01 +0000 (14:25 +0200)]
ui: dc/AuthEditBase: only add tfa field on auth modes that support that

for now that are all, but we will ad one where that is not possible

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: implement OpenId login
Dietmar Maurer [Thu, 24 Jun 2021 08:17:59 +0000 (10:17 +0200)]
ui: implement OpenId login

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
 [ Thomas: amended the following changes:
 - factor out openid_login_param to widget-toolkit as
   getOpenIDRedirectionAuthorization and use it
 - use camel case to match our JS style guide and our framework (and
   basically the rest of the JS world)
 - minor cleanups like moving variable definition into the single if
   branch their used
 ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocli: tasks: don't treat warning status as an error status
Fabian Ebner [Fri, 2 Jul 2021 10:35:58 +0000 (12:35 +0200)]
cli: tasks: don't treat warning status as an error status

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agomove BackupInfo module into Cluster
Thomas Lamprecht [Fri, 2 Jul 2021 10:50:47 +0000 (12:50 +0200)]
move BackupInfo module into Cluster

no semantic change regarding API or the like intended

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: backup info: prefer kebab-case
Fabian Ebner [Fri, 2 Jul 2021 09:40:37 +0000 (11:40 +0200)]
api: backup info: prefer kebab-case

And also add the 'backup-info' endpoint to the index.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
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 agoui: qemu/HW: reformat comment to better use awailable text-width
Thomas Lamprecht [Fri, 2 Jul 2021 09:46:01 +0000 (11:46 +0200)]
ui: qemu/HW: reformat comment to better use awailable text-width

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: storage selector: code cleanups
Thomas Lamprecht [Fri, 2 Jul 2021 09:45:28 +0000 (11:45 +0200)]
ui: storage selector: code cleanups

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 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 agoui: node: always show Repositories panel in navigation
Thomas Lamprecht [Thu, 1 Jul 2021 16:40:09 +0000 (18:40 +0200)]
ui: node: always show Repositories panel in navigation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: add panel for listing APT repositories
Fabian Ebner [Wed, 23 Jun 2021 13:39:04 +0000 (15:39 +0200)]
ui: add panel for listing APT repositories

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoapi: apt: add PUT and POST handler for repositories
Fabian Ebner [Wed, 23 Jun 2021 13:39:03 +0000 (15:39 +0200)]
api: apt: add PUT and POST handler for repositories

To allow adding/modifying them. Currently the only possible modification is
enable/disable.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoapi: apt: add call for repository information
Fabian Ebner [Wed, 23 Jun 2021 13:39:02 +0000 (15:39 +0200)]
api: apt: add call for repository information

Signed-off-by: Fabian Ebner <f.ebner@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>
2 years agod/postinst: regenerate machine-id also for 4.0 beta ISOs
Thomas Lamprecht [Tue, 29 Jun 2021 15:51:55 +0000 (17:51 +0200)]
d/postinst: regenerate machine-id also for 4.0 beta ISOs

With some poking around I got the hold of more released ISO files,
while beta it seems that we have some loyal installations setup with
a 4.0 beta and updated to 7.0 beta[0] (cool stuff!)

[0]: https://forum.proxmox.com/threads/proxmox-ve-7-0-beta-released.91388/page-3#post-399500

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 7.0-5
Thomas Lamprecht [Mon, 28 Jun 2021 18:00:39 +0000 (20:00 +0200)]
bump version to 7.0-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoaplinfo: factoring out regex for vztmpl
Lorenz Stechauner [Tue, 22 Jun 2021 09:19:16 +0000 (11:19 +0200)]
aplinfo: factoring out regex for vztmpl

Signed-off-by: Lorenz Stechauner <l.stechauner@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 agoui: node/Config: add vmid filter to task lists
Dominik Csapak [Thu, 24 Jun 2021 07:16:18 +0000 (09:16 +0200)]
ui: node/Config: add vmid filter to task lists

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years ago{qemu, lxc}/Config: adapt to new proxmoxNodeTasks
Dominik Csapak [Thu, 24 Jun 2021 07:16:17 +0000 (09:16 +0200)]
{qemu, lxc}/Config: adapt to new proxmoxNodeTasks

by adding a preFilter and extraFilter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: tasks: add 'statusfilter' to task list endpoint
Dominik Csapak [Thu, 24 Jun 2021 07:10:13 +0000 (09:10 +0200)]
api: tasks: add 'statusfilter' to task list endpoint

Similar to PBS. The 'errors' filter parameter still takes precedence
(overrides this)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ Thomas: adapt to renamed PVE::Tools helper method ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: tasks: add 'since' and 'until' filter for the task list
Dominik Csapak [Thu, 24 Jun 2021 07:10:12 +0000 (09:10 +0200)]
api: tasks: add 'since' and 'until' filter for the task list

similar to PBS

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>