]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
18 months agofix #4318: ui: qemu/Monitor: rework output retention mechanism
Dominik Csapak [Wed, 2 Nov 2022 11:28:37 +0000 (12:28 +0100)]
fix #4318: ui: qemu/Monitor: rework output retention mechanism

instead of saving maximum 500 lines, count commands + lines, and only
if both are over the limit, truncate the command list

this way, at least the last 10 commands + output are always visible, and
no visible output is truncated, while still not letting the log
grow infinitely

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
18 months agoui: LXC template upload: allow zstd compressed (.tar.zst) images
Matthias Heiserer [Wed, 2 Nov 2022 15:16:41 +0000 (16:16 +0100)]
ui: LXC template upload: allow zstd compressed (.tar.zst) images

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agogui: move rate limit field to advanced section
Daniel Tschlatscher [Thu, 3 Nov 2022 15:38:09 +0000 (16:38 +0100)]
gui: move rate limit field to advanced section

The new MTU field and the rate limit field are now in the advanced
section of the NetworkInputPanel to parallel the layout of the
NetworkEdit for VMs.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
Reviewed-by:  Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by:  Stefan Hanreich <s.hanreich@proxmox.com>
18 months agofix #3719: gui: expose LXC MTU option in web UI
Daniel Tschlatscher [Thu, 3 Nov 2022 15:38:08 +0000 (16:38 +0100)]
fix #3719: gui: expose LXC MTU option in web UI

The option to set the mtu parameter for lxc containers already exists
in the backend. It just has to be exposed in the web UI as well.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
Reviewed-by:  Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by:  Stefan Hanreich <s.hanreich@proxmox.com>
18 months agoui: vm network: allow to override MTU for virtio devices
Oguz Bektas [Wed, 9 Nov 2022 15:37:09 +0000 (16:37 +0100)]
ui: vm network: allow to override MTU for virtio devices

we already have the 'mtu' option in the API, so we can just expose
that option inside the 'Advanced' menu for virtio network interfaces.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Moved the message tooltip below the advanced columns to avoid the line
break and make it more visually pleasing.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
18 months agobump version to 7.2-13
Thomas Lamprecht [Wed, 16 Nov 2022 17:33:33 +0000 (18:33 +0100)]
bump version to 7.2-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agod/control: bump qemu-server dependency to 7.2-8
Thomas Lamprecht [Wed, 16 Nov 2022 11:42:04 +0000 (12:42 +0100)]
d/control: bump qemu-server dependency to 7.2-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agovzdump: send mail if job-abort hook fails
Fiona Ebner [Wed, 16 Nov 2022 08:30:14 +0000 (09:30 +0100)]
vzdump: send mail if job-abort hook fails

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
18 months agofix #4351: vzdump: send mail if job-end hook fails with mailnotification=failure
Fiona Ebner [Wed, 16 Nov 2022 08:30:13 +0000 (09:30 +0100)]
fix #4351: vzdump: send mail if job-end hook fails with mailnotification=failure

Since all tasks succeeded, previously no mail was sent in that case.

Note that the error passed to $self->sendmail() is added to the
subject of the mail if it is a single line or the beginning of the
mail otherwise. Thus changing the mail slightly compared to previously
for the case where the job-start hook fails and the case where the
job-end hook fails with mailnotification=always. But can be considered
an improvement, because the user sees the error right away.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
18 months agoui: backup job edit: fix form reset tracking
Dominik Csapak [Tue, 15 Nov 2022 13:23:12 +0000 (14:23 +0100)]
ui: backup job edit: fix form reset tracking

When the mode changes, we set the pool selector visible/hidden, but
we never disabled/enabled it. This tripped up the dirty state of the
form always showing the reset button as enabled.

Properly enabling and disabling the pool field fixes the dirty state
tracking.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
18 months agoui: lxc/qemu: cpu edit: make cpuunits depend on node's cgroup version
Fiona Ebner [Thu, 10 Nov 2022 14:37:47 +0000 (15:37 +0100)]
ui: lxc/qemu: cpu edit: make cpuunits depend on node's cgroup version

so that the default value and limits actually correspond to what will
be used. Defaults to values for cgroup v2, because that is the more
common scenario.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
18 months agocluster resources: add cgroup-mode to node properties
Fiona Ebner [Thu, 10 Nov 2022 14:37:46 +0000 (15:37 +0100)]
cluster resources: add cgroup-mode to node properties

so the frontend has the information readily available.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
18 months agopvestatd: broadcast static node information
Fiona Ebner [Thu, 10 Nov 2022 14:37:45 +0000 (15:37 +0100)]
pvestatd: broadcast static node information

Planned to be used for static resource scheduling in the HA manager.

It's enough to broadcast the values whenever they are outdated or not
set in the node's local kv store, because pmxcfs will re-broadcast the
local kv store whenever the quorate partition changes. This is already
relied upon for the 'ceph-versions' kv pair.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
18 months agoapi: backup info: make "name" property truly optional in response struct
Thomas Lamprecht [Tue, 15 Nov 2022 13:07:09 +0000 (14:07 +0100)]
api: backup info: make "name" property truly optional in response struct

avoid returning a nullish/undef value if not specified

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agoapi: backup info: code/style cleanup/rework/modernization
Thomas Lamprecht [Tue, 15 Nov 2022 13:06:42 +0000 (14:06 +0100)]
api: backup info: code/style cleanup/rework/modernization

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agoapi: backup info: drop querying rrd_dump, not used
Thomas Lamprecht [Tue, 15 Nov 2022 13:05:57 +0000 (14:05 +0100)]
api: backup info: drop querying rrd_dump, not used

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agoapi: backup info: rework get_included_vmids code style
Thomas Lamprecht [Tue, 15 Nov 2022 13:04:29 +0000 (14:04 +0100)]
api: backup info: rework get_included_vmids code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agoapi vzdump: split/sort module usage
Thomas Lamprecht [Tue, 15 Nov 2022 12:48:51 +0000 (13:48 +0100)]
api vzdump: split/sort module usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agoapi: vzdump: also check for default storage permission
Fiona Ebner [Tue, 15 Nov 2022 12:33:05 +0000 (13:33 +0100)]
api: vzdump: also check for default storage permission

Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
18 months agoapi: backup: auto-inject job id where expected by the API
Fiona Ebner [Tue, 15 Nov 2022 10:18:29 +0000 (11:18 +0100)]
api: backup: auto-inject job id where expected by the API

for backwards compatibility. Otherwise, e.g. listing backup jobs with
pvesh get /cluster/backup is broken. And suddenly not having the
property anymore would be a breaking API change.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
18 months agod/control: bump versioned dependency to pve-doc-generator
Thomas Lamprecht [Mon, 14 Nov 2022 19:35:26 +0000 (20:35 +0100)]
d/control: bump versioned dependency to pve-doc-generator

ensuring that the onlineHelp reference parser is new enough to not
choke on widget-toolkit.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agofix #4328: ui: add widget toolkit to dependencies of OnlineHelpInfo.js
Stefan Sterz [Mon, 14 Nov 2022 11:38:28 +0000 (12:38 +0100)]
fix #4328: ui: add widget toolkit to dependencies of OnlineHelpInfo.js

previously the widget toolkit was not scanned when creating the
mapping between `onlineHelp` keys and pve-doc anchors. this could
lead to cases where help buttons didn't work because the necessary
mapping wasn't present in `OnlineHelpInfo.js`.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
19 months agobump version to 7.2-12
Thomas Lamprecht [Sat, 12 Nov 2022 16:03:20 +0000 (17:03 +0100)]
bump version to 7.2-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agojob manager: run cfs_update before starting a job
Thomas Lamprecht [Sun, 13 Nov 2022 14:57:24 +0000 (15:57 +0100)]
job manager: run cfs_update before starting a job

we may want to even do this only once, before the loop, but for now
this is basically the same as it was previously but avoids the need
for every (future) plugin to do this manually; which is just the
wrong place.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agod/control: bump versioned dependencies for pve-common & pve-guest-common
Thomas Lamprecht [Sat, 12 Nov 2022 15:57:51 +0000 (16:57 +0100)]
d/control: bump versioned dependencies for pve-common & pve-guest-common

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agojobs: move base registry to pve-common & split vzdump base out to guest-common
Thomas Lamprecht [Sat, 12 Nov 2022 15:56:23 +0000 (16:56 +0100)]
jobs: move base registry to pve-common & split vzdump base out to guest-common

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agoupdate shipped aplinfo
Thomas Lamprecht [Fri, 11 Nov 2022 16:37:33 +0000 (17:37 +0100)]
update shipped aplinfo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agoui: qemu: increase available usb ports depending on machine and ostype
Dominik Csapak [Thu, 10 Nov 2022 14:36:00 +0000 (15:36 +0100)]
ui: qemu: increase available usb ports depending on machine and ostype

in the backend, we allow up to 14 usb ports, but only if the vm can
use the qemu-xhci controller which is only possible since machine
version 7.1 and if the ostype is l26 or windows > 7

for this we introduce two helpers:
* qemu_min_version: modeled after the signature of 'min_version' from
  qemu-server, expects two arrays of versions and returns true if
  the first parameter is equal or greater than the second version
* get_max_usb_count looks at the given ostype and machine string
  and returns the proper maximum number

since we don't currently have the actual running version of the vm in
the gui, this is only a heuristic for running vms. but since the actual
running version could only be lower if none is set (e.g. for
migrated/long-running vms) we allow more in the gui and the backend will
do the proper thing (either hotplug it, or make it a pending change)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
19 months agoui: USBInputPanel: use correct maximum usb index
Dominik Csapak [Thu, 10 Nov 2022 14:35:59 +0000 (15:35 +0100)]
ui: USBInputPanel: use correct maximum usb index

We already have that factored out in PVE.Utils, so use that.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
19 months agod/control: drop ${shlibs:Depends} for pve-manager
Fiona Ebner [Fri, 21 Oct 2022 13:02:52 +0000 (15:02 +0200)]
d/control: drop ${shlibs:Depends} for pve-manager

Now that the pvemailforward binary was dropped, there is a lintian
warning that it's not defined anymore.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agoremove pvemailforward binary
Fiona Ebner [Fri, 21 Oct 2022 13:02:51 +0000 (15:02 +0200)]
remove pvemailforward binary

which was replaced by proxmox-mail-forward living in its own package.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agod/postinst: replace pvemailforward with proxmox-mail-forward
Fiona Ebner [Fri, 21 Oct 2022 13:02:50 +0000 (15:02 +0200)]
d/postinst: replace pvemailforward with proxmox-mail-forward

proxmox-mail-forward is a new helper binary in Rust intended to behave
essentially the same on PVE installations. It can also handle mixed
PBS+PVE installations.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agod/control: depend on proxmox-mail-forward
Fiona Ebner [Fri, 21 Oct 2022 13:02:49 +0000 (15:02 +0200)]
d/control: depend on proxmox-mail-forward

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agoMerge branch 'taskset' into taskset-merged
Wolfgang Bumiller [Thu, 10 Nov 2022 08:43:32 +0000 (09:43 +0100)]
Merge branch 'taskset' into taskset-merged

19 months agofix #3593: add js input for affinity
Daniel Bowder [Fri, 1 Jul 2022 00:09:48 +0000 (17:09 -0700)]
fix #3593: add js input for affinity

Adds a textfield for the affinity value. Delete that affinity value
when the textbox is empty.

Signed-off-by: Daniel Bowder <daniel@bowdernet.com>
19 months agoapl info: update index to current repository state
Thomas Lamprecht [Wed, 9 Nov 2022 16:57:16 +0000 (17:57 +0100)]
apl info: update index to current repository state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agoapl info: update index to current repository state
Thomas Lamprecht [Wed, 9 Nov 2022 16:19:43 +0000 (17:19 +0100)]
apl info: update index to current repository state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agoGUI: OS defaults: use SCSI single as default controller
Matthias Heiserer [Mon, 13 Jun 2022 13:54:23 +0000 (15:54 +0200)]
GUI: OS defaults: use SCSI single as default controller

Existing installs are not changed by this.

Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
19 months agoGUI: HDEdit: check iothread by default and move it from advanced section
Matthias Heiserer [Mon, 13 Jun 2022 13:54:22 +0000 (15:54 +0200)]
GUI: HDEdit: check iothread by default and move it from advanced section

Existing disks are not changed by this.
Especially in benchmarks, iothreads significantly improve IO performance.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
19 months agoui: add javascript source to `OnlineHelpInfo.js` prerequisites
Stefan Sterz [Tue, 8 Nov 2022 15:01:30 +0000 (16:01 +0100)]
ui: add javascript source to `OnlineHelpInfo.js` prerequisites

by adding the javascript files as prerequisites, the
`OnlineHelpInfo.js` will get re-generated if a new `onlineHelp` key
is used. thus, this avoids an issue were valid keys might not get
mapped correctly because the info in `OnlineHelpInfo.js` wasn't
updated.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
19 months agoui: lxc/qemu: cpu edit: use emptyText for cpuunits
Fiona Ebner [Fri, 7 Oct 2022 12:41:54 +0000 (14:41 +0200)]
ui: lxc/qemu: cpu edit: use emptyText for cpuunits

This makes it slightly clearer that it's a default value (not being
written to the config explicitly). It's also in preparation to bind
the default based on the cgroup version, where it's a bit nicer to
bind the emptyText instead of the value (or a user set value would be
overwritten when the binding updates).

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agoui: qemu/lxc: cpu edit: fix 'create' parameter for delete_if_default()
Fiona Ebner [Fri, 7 Oct 2022 12:41:53 +0000 (14:41 +0200)]
ui: qemu/lxc: cpu edit: fix 'create' parameter for delete_if_default()

For lxc, commit 53395db1 ("lxc/ResoureEdit: move some cpu fields to
advanced options") made the fields available in the create wizard, so
the comment is also wrong.

Both wizards do a 'delete kv.delete' in their onSubmit() function, so
it didn't actually matter in practice.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agoui: lxc: cpu edit: drop superfluous delete_if_default
Fiona Ebner [Fri, 7 Oct 2022 12:41:52 +0000 (14:41 +0200)]
ui: lxc: cpu edit: drop superfluous delete_if_default

Commit bf96f60d ("use IntegerField from widget toolkit") switched to
using an Promxox IntegerField with 'deleteEmpty: true'. This means
that a value of '' already is removed from 'values' and added to
'delete' before onGetValues() is called here.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agoJobs/Plugin: remove 'vzdump' from id description
Dominik Csapak [Mon, 4 Apr 2022 08:54:14 +0000 (10:54 +0200)]
Jobs/Plugin: remove 'vzdump' from id description

it's not necessarily a vzdump job

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
19 months agoJobs: provide id and schedule to the job
Dominik Csapak [Mon, 4 Apr 2022 08:54:13 +0000 (10:54 +0200)]
Jobs: provide id and schedule to the job

we need that for realmsync jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
19 months agoui: {guest, node} summary: use correct unit for CPU usage
Fiona Ebner [Fri, 4 Nov 2022 07:42:55 +0000 (08:42 +0100)]
ui: {guest, node} summary: use correct unit for CPU usage

One could also think about showing something like '% of N CPUs', but
this can be inaccurate for older data, because the number of CPUs can
change.

Reported in the community forum:
https://forum.proxmox.com/threads/117362/

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
19 months agofixup /cluster/resources schema
Wolfgang Bumiller [Fri, 4 Nov 2022 15:04:42 +0000 (16:04 +0100)]
fixup /cluster/resources schema

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
19 months agogui: fix firewall security group help button chapter link
Daniel Tschlatscher [Fri, 4 Nov 2022 09:18:47 +0000 (10:18 +0100)]
gui: fix firewall security group help button chapter link

The help button under Datacenter > Firewall > Security Group did not
have the proper help chapter link set.

First reported here:
https://forum.proxmox.com/threads/broken-help-link-in-proxmox-gui.117503/

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
19 months agopveupdate: reword comment slightly and adapt text width
Thomas Lamprecht [Fri, 4 Nov 2022 09:32:38 +0000 (10:32 +0100)]
pveupdate: reword comment slightly and adapt text width

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agocleanup: style fix
Stefan Hrdlicka [Mon, 10 Oct 2022 15:21:16 +0000 (17:21 +0200)]
cleanup: style fix

Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
19 months agofix #1981: get next free disk id on change of bus/device
Stefan Hrdlicka [Mon, 10 Oct 2022 15:21:15 +0000 (17:21 +0200)]
fix #1981: get next free disk id on change of bus/device

Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
19 months agoui: node: rework layout of certificate viewer
Thomas Lamprecht [Wed, 19 Oct 2022 13:12:15 +0000 (15:12 +0200)]
ui: node: rework layout of certificate viewer

Move the raw cert into a fieldset and collapse that by default, also
make it render monospace and pre-wrap whitespace.

Use a inputpanel to get top, col 1/2 & bottom layout so that rsa key
type/size and validity range can be rendered more compactly

n addition to that limit the whole windows height but make it
scrollable, this allows to sanely use the viewer on certs with many
SANs even on small window/browser sizes.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agoui: dc: subscription: fix subscription check
Aaron Lauterer [Wed, 19 Oct 2022 10:34:27 +0000 (12:34 +0200)]
ui: dc: subscription: fix subscription check

With the change to the rust backend for the subscription check, the
return value changed as well.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
19 months agoreport: add arcstat
Aaron Lauterer [Tue, 18 Oct 2022 12:11:05 +0000 (14:11 +0200)]
report: add arcstat

One of the infos, that can sometimes be usable.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
19 months agoapi: ceph: pools: get_storages: set pool name if missing
Aaron Lauterer [Thu, 13 Oct 2022 10:32:47 +0000 (12:32 +0200)]
api: ceph: pools: get_storages: set pool name if missing

This avoids errors about the use of uninitialized values if the 'pool'
parameter is not present in the storage configuration.

The 'pool' property for an RBD storage config is not mandatory.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
20 months agoui: node certificate: make panel only vertical scrollable
Thomas Lamprecht [Mon, 10 Oct 2022 14:23:52 +0000 (16:23 +0200)]
ui: node certificate: make panel only vertical scrollable

Otherwise, a browser window breaks the responsive horizontal
flex-flow/grid-column resize, and just displays the vertical scroll
bar instead, which can look a bit odd.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoui: node certificate: make parent panel scrollable
Dominik Csapak [Mon, 10 Oct 2022 08:12:01 +0000 (10:12 +0200)]
ui: node certificate: make parent panel scrollable

The `ACME` panel may be rendered out of sight (overflow) when there
are enough SANs on the upper `Certificates` panel to push it down
enough and the browser/display height is too small.

Enable the `scrollable` config for the parent certificate view panel
to make ExtJS automatically add a scrollbar if the content overflows.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agod/control: bump guest-common dependency
Wolfgang Bumiller [Mon, 10 Oct 2022 12:50:27 +0000 (14:50 +0200)]
d/control: bump guest-common dependency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
20 months agovzdump: handle new 'performance' property string
Fiona Ebner [Mon, 3 Oct 2022 13:52:07 +0000 (15:52 +0200)]
vzdump: handle new 'performance' property string

Also generalizes the way vzdump property strings are handled for jobs.
Something similar could be done in VZDump.pm, but there the maxfiles
and prune-backups settings are currently coupled, so a dedicated
parse_performance() is used instead. Can be changed once maxfiles is
dropped.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
20 months agoui: mdev selector: avoid separate gettext for "Avail"
Thomas Lamprecht [Tue, 4 Oct 2022 11:53:39 +0000 (13:53 +0200)]
ui: mdev selector: avoid separate gettext for "Avail"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agopveupdate: split/sort perl module usage
Thomas Lamprecht [Thu, 29 Sep 2022 12:16:11 +0000 (14:16 +0200)]
pveupdate: split/sort perl module usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoui: eslint: fix undefined check
Dominik Csapak [Thu, 15 Sep 2022 09:48:24 +0000 (11:48 +0200)]
ui: eslint: fix undefined check

'typeof' cannot return 'undefined' only the string '"undefined"', newer
eslint versions detect that as error

to fix it, directly check it for undefined instead of using typeof

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
20 months agoapt: add proxmox-offline-mirror-helper package
Fabian Grünbichler [Thu, 15 Sep 2022 07:06:08 +0000 (09:06 +0200)]
apt: add proxmox-offline-mirror-helper package

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 months agoapt: sort list of optional packages
Fabian Grünbichler [Thu, 15 Sep 2022 07:06:02 +0000 (09:06 +0200)]
apt: sort list of optional packages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 months agoui: ceph: use quincy as new default for fresh installations
Thomas Lamprecht [Thu, 15 Sep 2022 05:41:39 +0000 (07:41 +0200)]
ui: ceph: use quincy as new default for fresh installations

Note that we still check the cluster for an already used installation
and will select that, if any, so this is really just for setting up a
completely new cluster.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agobump version to 7.2-11
Thomas Lamprecht [Wed, 14 Sep 2022 11:15:25 +0000 (13:15 +0200)]
bump version to 7.2-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agod/postinst: set_lvm_conf: early return to avoid indentation level
Thomas Lamprecht [Wed, 14 Sep 2022 08:48:53 +0000 (10:48 +0200)]
d/postinst: set_lvm_conf: early return to avoid indentation level

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agod/postinst: fix indentation to four spaces
Thomas Lamprecht [Wed, 14 Sep 2022 08:48:19 +0000 (10:48 +0200)]
d/postinst: fix indentation to four spaces

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agopostinst: migrate/update APT auth config
Fabian Grünbichler [Wed, 14 Sep 2022 08:05:54 +0000 (10:05 +0200)]
postinst: migrate/update APT auth config

missed when switching over to Proxmox::RS::Subscription, which stores
the same info in the product-specific /etc/apt/auth.conf.d/pve.conf .

the top-level file might contain non-PVE-managed entries, so only remove
entries matching "our" machine.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agoui: workspace: fix lxc widget xtype
Thomas Lamprecht [Tue, 13 Sep 2022 15:51:35 +0000 (17:51 +0200)]
ui: workspace: fix lxc widget xtype

the real bug is to name the widget xtypes like classes

Fixes: 16875928d37d586a08f173766cdcf8d41bd87a4b
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoui: guest summary: fix qemu specific class name
Thomas Lamprecht [Mon, 12 Sep 2022 15:01:32 +0000 (17:01 +0200)]
ui: guest summary: fix qemu specific class name

call sites already used the 'pveGuestSummary'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoui: lxc: fix alias definition of PVE.lxc.Config
Thomas Lamprecht [Mon, 12 Sep 2022 15:00:58 +0000 (17:00 +0200)]
ui: lxc: fix alias definition of PVE.lxc.Config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoreport: stabilize order of guests and network
Stoiko Ivanov [Mon, 12 Sep 2022 13:37:38 +0000 (15:37 +0200)]
report: stabilize order of guests and network

both categories have '40' as their order - leading to random swaps
between those 2 categories in the actual report.

I only increased the order of network, instead of renumerating all
succeeding categories by 10 (mostly for better readability of the
patch)

Suggested-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
21 months agoreport: add proxmox-boot-tool status output
Stoiko Ivanov [Mon, 12 Sep 2022 13:37:37 +0000 (15:37 +0200)]
report: add proxmox-boot-tool status output

while needed seldomly we had a few cases recently where this would
have saved the user and us one roundtrip.

adding to storage, to be close to the `findmnt` output (which usually
tells us if the system is booted in efi or legacy mode)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
21 months agod/control: recommend proxmox-offline-mirror-helper
Fabian Grünbichler [Mon, 12 Sep 2022 08:51:19 +0000 (10:51 +0200)]
d/control: recommend proxmox-offline-mirror-helper

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agobump version to 7.2-10
Fabian Grünbichler [Mon, 12 Sep 2022 07:15:59 +0000 (09:15 +0200)]
bump version to 7.2-10

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agopvesubscription: remove leftover $key
Fabian Grünbichler [Fri, 9 Sep 2022 13:06:26 +0000 (15:06 +0200)]
pvesubscription: remove leftover $key

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agobump version to 7.2-9
Thomas Lamprecht [Thu, 8 Sep 2022 12:57:32 +0000 (14:57 +0200)]
bump version to 7.2-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoui: CephInstall: fix a/an typo
Aaron Lauterer [Wed, 10 Aug 2022 15:10:20 +0000 (17:10 +0200)]
ui: CephInstall: fix a/an typo

and switch to template string

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
21 months agoui: CephInstallWizard: make first mon node static
Aaron Lauterer [Wed, 10 Aug 2022 15:10:19 +0000 (17:10 +0200)]
ui: CephInstallWizard: make first mon node static

Removes the possibility to select the node on which to create the first
monitor in the configuration / initialization step and always sets it to
the current node.

This prevents that a user might select another node on which the Ceph
packages have not yet been installed. If a user did that, they would get
an error, but the Ceph config file would have been written. If the user
then does not select a valid node to create the first mon, but aborts
the wizard, they are greeted with a rados_connect error because the
config file exists, but it does not contain any mon infos that are
needed to connect to the Ceph cluster.

Creating a mon manually will remedy such a situation, but especially for
new users, this behavior is not ideal and confusing.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
21 months agosubscription: handle missing subscription info
Fabian Grünbichler [Wed, 7 Sep 2022 08:47:05 +0000 (10:47 +0200)]
subscription: handle missing subscription info

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agoapi: nodes: code/style rework start/stop list generation
Thomas Lamprecht [Thu, 1 Sep 2022 09:08:59 +0000 (11:08 +0200)]
api: nodes: code/style rework start/stop list generation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoapi: nodes: style/perlcritic fixes
Thomas Lamprecht [Wed, 31 Aug 2022 11:31:39 +0000 (13:31 +0200)]
api: nodes: style/perlcritic fixes

no semantic change intended

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agobump version to 7.2-8
Fabian Grünbichler [Tue, 6 Sep 2022 08:39:44 +0000 (10:39 +0200)]
bump version to 7.2-8

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agowww: subscription: add Signed/Offline status
Fabian Grünbichler [Thu, 30 Jun 2022 12:47:13 +0000 (14:47 +0200)]
www: subscription: add Signed/Offline status

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agopvesubscription: add 'set-offline-key' command
Fabian Grünbichler [Thu, 30 Jun 2022 12:46:42 +0000 (14:46 +0200)]
pvesubscription: add 'set-offline-key' command

and disallow updating signed offline keys via regular check/update code
path.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agosubscription: switch to Proxmox::RS::Subscription
Fabian Grünbichler [Thu, 30 Jun 2022 12:06:16 +0000 (14:06 +0200)]
subscription: switch to Proxmox::RS::Subscription

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
22 months agoui: improve form/MDevSelector
Dominik Csapak [Fri, 12 Aug 2022 09:29:51 +0000 (11:29 +0200)]
ui: improve form/MDevSelector

by
* showing the (optional) name in front of the type
* making the 'availble' column a bit narrower
* enabling 'cellWrap' for the description
* making the dropdown a bit wider (so all the information can fit)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
22 months agoJobs: fix scheduling after updating job from a different node
Dominik Csapak [Fri, 15 Jul 2022 12:34:35 +0000 (14:34 +0200)]
Jobs: fix scheduling after updating job from a different node

since the jobs are configured clusterwide in pmxcfs, a user can use any
node to update the config of them. for some configs (schedule/enabled)
we need to update the last runtime in the state file, but this
is sadly only node-local.

to also update the state file on the other nodes, we introduce
a new 'detect_changed_runtime_props' function that checks and saves relevant
properties from the config to the statefile each round of the scheduler if they
changed.

this way, we can detect changes in those and update the last runtime too.

the only situation where we don't detect a config change is when the
user changes back to the previous configuration in between iterations.
This can be ignored though, since it would not be scheduled then
anyway.

in 'synchronize_job_states_with_config' we switch from reading the
jobstate unconditionally to check the existance of the statefile
(which is the only condition that can return undef anyway)
so that we don't read the file multiple times each round.

Fixes: 0c8d7468 ("fix #4053: don't run vzdump jobs when they change from
disabled->enabled")

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
22 months agonodes: include execute schema in docs
Fabian Grünbichler [Tue, 2 Aug 2022 12:44:38 +0000 (14:44 +0200)]
nodes: include execute schema in docs

by extracting the JSON-encoded-string schema and dumping it into the
verbose description it at least shows up in the API viewer.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
22 months agoapi2: use JSONSchema to validate commands for "nodes/{node}/execute"
Stefan Sterz [Wed, 27 Jul 2022 14:56:12 +0000 (16:56 +0200)]
api2: use JSONSchema to validate commands for "nodes/{node}/execute"

this also makes it more explicit what the different values should be

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
22 months agofix: api2: add return type to nodes/{node}/execute endpoint
Stefan Sterz [Wed, 27 Jul 2022 14:56:11 +0000 (16:56 +0200)]
fix: api2: add return type to nodes/{node}/execute endpoint

since this was missing a proper return type definition the api viewer
couldn't display the endpoint (`retinfs.items` was undefined). also
the `pvesh` command would complain that it cannot properly format the
return type because the variable `$item_type` in `CLIFormatter.pm` was
not defined.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
22 months agopvesr: prepare local job: remove stale replicated volumes immediately
Fiona Ebner [Mon, 13 Jun 2022 10:29:55 +0000 (12:29 +0200)]
pvesr: prepare local job: remove stale replicated volumes immediately

Commit d8cd8e8cf9795dc9c2462a67e9ef89ad31759796 introduced a
regression where only stale replicated volumes with an older
timestamp would be cleaned up. This meant that after removing a volume
from the guest config, it would only be cleaned up the second time the
replication ran afterwards. And the volume could become completely
orphaned in case the relevant storage wasn't used by the job anymore.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
22 months agopvesr: rename last_snapshots to local_snapshots
Fiona Ebner [Mon, 13 Jun 2022 10:29:54 +0000 (12:29 +0200)]
pvesr: rename last_snapshots to local_snapshots

while dropping the instance where the local variable was unused.
prepare() was changed a while ago to return all local snapshots.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
22 months agoui: datacenter: use "Name" label for respective part of full rp
Thomas Lamprecht [Tue, 26 Jul 2022 10:00:41 +0000 (12:00 +0200)]
ui: datacenter: use "Name" label for respective part of full rp

as contrary to the property name this is actually only the rather
irrelevant part (auth wise) of the whole relying party, the ID is the
other part, and that one actually matters.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agoui: datacenter: rework webauthn settings UX
Thomas Lamprecht [Mon, 25 Jul 2022 14:48:29 +0000 (16:48 +0200)]
ui: datacenter: rework webauthn settings UX

Make origin optional, as it actually is, and its not covered by the
challenge anyway.

Also, not the thing we name rp, but the ID is important for the
validity of existing webauthn records, this error comes from the
confusing use of the same named thing in different ways by browsers,
us and the webauthn rust crate...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agoceph-after-pve-cluster: enable for ceph-volume, disable for ceph-disk
Aaron Lauterer [Mon, 18 Jul 2022 14:09:10 +0000 (16:09 +0200)]
ceph-after-pve-cluster: enable for ceph-volume, disable for ceph-disk

The ceph-disk service seems to have been removed with octopus (v15) and
we did not yet have them for ceph-volume which could lead to some
startup issues in cases where the pve-cluster service did not start fast
enough.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
22 months agoapi: apt: switch to common Proxmox::RS::APT::Repositories package
Fabian Ebner [Fri, 8 Jul 2022 11:55:54 +0000 (13:55 +0200)]
api: apt: switch to common Proxmox::RS::APT::Repositories package

which is shared between PVE and PMG.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
22 months agobump rust dependencies
Wolfgang Bumiller [Fri, 15 Jul 2022 10:36:45 +0000 (12:36 +0200)]
bump rust dependencies

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
23 months agoui: ct restore: put mountpoint-erasure note on new line
Thomas Lamprecht [Thu, 7 Jul 2022 08:08:02 +0000 (10:08 +0200)]
ui: ct restore: put mountpoint-erasure note on new line

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