6456 Commits

Author SHA1 Message Date
Thomas Lamprecht
8c791952d5 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>
2022-11-13 15:59:32 +01:00
Thomas Lamprecht
e3a1782e34 d/control: bump versioned dependencies for pve-common & pve-guest-common
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-13 15:59:32 +01:00
Thomas Lamprecht
6f2e57c050 jobs: move base registry to pve-common & split vzdump base out to guest-common
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-12 16:59:38 +01:00
Thomas Lamprecht
42a6d6cc77 update shipped aplinfo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-11 17:37:33 +01:00
Dominik Csapak
17dcba38dd 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>
2022-11-10 17:06:41 +01:00
Dominik Csapak
988898a625 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>
2022-11-10 17:06:41 +01:00
Fiona Ebner
380871e59c 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>
2022-11-10 11:56:52 +01:00
Fiona Ebner
de59191b45 remove pvemailforward binary
which was replaced by proxmox-mail-forward living in its own package.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-11-10 11:56:47 +01:00
Fiona Ebner
b632562c08 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>
2022-11-10 11:56:45 +01:00
Fiona Ebner
d2c78d138e d/control: depend on proxmox-mail-forward
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-11-10 11:56:41 +01:00
Wolfgang Bumiller
310f32b7a9 Merge branch 'taskset' into taskset-merged 2022-11-10 09:43:32 +01:00
Daniel Bowder
9599d1f02e 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>
2022-11-10 09:42:07 +01:00
Thomas Lamprecht
073bd99f96 apl info: update index to current repository state
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-09 17:57:16 +01:00
Thomas Lamprecht
fb2dc1b5f2 apl info: update index to current repository state
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-09 17:19:43 +01:00
Matthias Heiserer
87e222300c 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>
2022-11-08 17:50:38 +01:00
Matthias Heiserer
94b5e53a48 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>
2022-11-08 17:50:38 +01:00
Stefan Sterz
ec1d12dbb9 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>
2022-11-08 16:28:42 +01:00
Fiona Ebner
a3b5c220f9 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>
2022-11-08 16:24:49 +01:00
Fiona Ebner
61c0338790 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>
2022-11-08 16:24:49 +01:00
Fiona Ebner
aafc29e9f7 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>
2022-11-08 16:24:49 +01:00
Dominik Csapak
79767edcf4 Jobs/Plugin: remove 'vzdump' from id description
it's not necessarily a vzdump job

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-07 17:14:11 +01:00
Dominik Csapak
9f1a43c125 Jobs: provide id and schedule to the job
we need that for realmsync jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-07 17:14:11 +01:00
Fiona Ebner
cf6b65a292 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>
2022-11-07 11:20:59 +01:00
Wolfgang Bumiller
55fb2eadb1 fixup /cluster/resources schema
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-04 16:20:18 +01:00
Daniel Tschlatscher
98246fb7ea 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>
2022-11-04 10:32:44 +01:00
Thomas Lamprecht
4314ba846b pveupdate: reword comment slightly and adapt text width
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-04 10:32:38 +01:00
Stefan Hrdlicka
1a3e2e9f5d cleanup: style fix
Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
2022-10-24 13:38:23 +02:00
Stefan Hrdlicka
1eb7b17f3a fix #1981: get next free disk id on change of bus/device
Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
2022-10-24 13:38:23 +02:00
Thomas Lamprecht
2f9fc81190 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>
2022-10-19 15:14:18 +02:00
Aaron Lauterer
d9416caa1d 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>
2022-10-19 14:05:20 +02:00
Aaron Lauterer
c46eb47e53 report: add arcstat
One of the infos, that can sometimes be usable.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2022-10-19 07:49:45 +02:00
Aaron Lauterer
655080eeeb 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>
2022-10-14 15:43:53 +02:00
Thomas Lamprecht
d3d4873615 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>
2022-10-10 16:28:28 +02:00
Dominik Csapak
6a594c50cb 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>
2022-10-10 16:28:28 +02:00
Wolfgang Bumiller
a66ad60f57 d/control: bump guest-common dependency
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-10 14:50:27 +02:00
Fiona Ebner
93880785c8 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>
2022-10-10 13:04:17 +02:00
Thomas Lamprecht
2831d8061b ui: mdev selector: avoid separate gettext for "Avail"
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-04 13:54:10 +02:00
Thomas Lamprecht
5366e88eda pveupdate: split/sort perl module usage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-29 14:20:29 +02:00
Dominik Csapak
13799d5b9e 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>
2022-09-16 12:50:56 +02:00
Fabian Grünbichler
d088f89b16 apt: add proxmox-offline-mirror-helper package
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-15 09:07:11 +02:00
Fabian Grünbichler
8794bb15de apt: sort list of optional packages
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-15 09:07:11 +02:00
Thomas Lamprecht
87df8bde1d 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>
2022-09-15 07:42:24 +02:00
Thomas Lamprecht
0ae45fc612 bump version to 7.2-11
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-14 13:15:25 +02:00
Thomas Lamprecht
2833e1e1c5 d/postinst: set_lvm_conf: early return to avoid indentation level
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-14 10:48:53 +02:00
Thomas Lamprecht
60b5e2d824 d/postinst: fix indentation to four spaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-14 10:48:19 +02:00
Fabian Grünbichler
bf09acfe7f 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>
2022-09-14 10:37:56 +02:00
Thomas Lamprecht
f31d010c80 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>
2022-09-13 17:51:45 +02:00
Thomas Lamprecht
5888ba939d ui: guest summary: fix qemu specific class name
call sites already used the 'pveGuestSummary'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-12 17:01:35 +02:00
Thomas Lamprecht
16875928d3 ui: lxc: fix alias definition of PVE.lxc.Config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-12 17:00:58 +02:00
Stoiko Ivanov
c5b25c00ff 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>
2022-09-12 16:04:18 +02:00