Commit Graph

6590 Commits

Author SHA1 Message Date
Aaron Lauterer
42c455fcd7 ui: rbd: cephfs: add keyring/secret field for external clusters
Manual switching of xtype because binding 'hidden' does not work with
pmxDisplayEditField.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2022-01-28 12:07:37 +01:00
Fabian Ebner
85df37251f ui: lvm: better convey space information
Namely, that it's just assigned/reserved space, not necessarily
actively used. Selection of forum threads about this confusion (of
dozens more):

https://forum.proxmox.com/threads/93820/
https://forum.proxmox.com/threads/52899/
https://forum.proxmox.com/threads/52929/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-01-28 12:03:20 +01:00
Thomas Lamprecht
84502c7d1f 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>
2022-01-28 11:11:49 +01:00
Markus Frank
9d37535bec 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>
2022-01-28 11:11:16 +01:00
Dominik Csapak
237102bd3d pvescheduler service: order startup after pve-guests
This way, a running backup cannot prevent pve-guests from starting a
virtual guest which was marked with 'onboot'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-28 10:34:50 +01:00
Dominik Csapak
8a6681900a fix tests in 'vzdump_new_test.pl'
commmit
b241deb7 ("close #3476: vzdump: add job-init hook")

introduces a 'cfs_update' in VZDump->new(), which overwrites our
carefully prepared storage/vm config which can break the tests

to prevent this, mock 'cfs_update' to do nothing, since we never
want to load the 'real' configs during tests anyway

fixes commit b241deb731

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-01-28 09:45:53 +01:00
Thomas Lamprecht
d20113ef7e ui: pci passthrough: fix labels of new id/vendor overrides
We do not use 'Set XYZ' anywhere else and it should be clear enough
from the PCI selector in the non-advanced section that the actual
device to get passed-through is chosen else where, but we still can
use the emptyText to avoid confusion where the (sub) vendor/id will
come from if a field is left empty.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-27 15:16:50 +01:00
Nicholas Sherlock
9a9be673d1 ui: pci passthrough: editor for pci-id overrides
Signed-off-by: Nicholas Sherlock <n.sherlock@gmail.com>
2022-01-25 11:17:05 +01:00
Fabian Ebner
b241deb731 close #3476: vzdump: add job-init hook
which allows users to prepare the backup storage for activation (e.g.
by waking up a remote node).

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-01-18 12:20:26 +01:00
Thomas Lamprecht
69cd5c7519 bump version to 7.1-10
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-18 05:53:00 +01:00
Thomas Lamprecht
f703ea43e3 ui: form/calendar event: add monthly and yearly examples
like PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-18 05:51:59 +01:00
Thomas Lamprecht
31de6834c5 ui: backup/run now: avoid passing "next-run" parameter to backend
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-18 05:48:44 +01:00
Fabian Ebner
536ba93256 vzdump: example hook script: avoid undef warnings
Some environment variables are undef in certain scenarios.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-01-17 16:30:51 +01:00
Thomas Lamprecht
5d51f148cc ui: form/calendar event: enable first-day-of-month example again
the rust based implementation form PBS we recently switched too
supports that

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 17:52:27 +01:00
Thomas Lamprecht
92653ca309 bump version to 7.1-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 17:01:39 +01:00
Fabian Ebner
e877e05701 window: safe destroy guest: add note that referenced disks are destroyed
It's not clear to all users otherwise[0].

[0]: https://forum.proxmox.com/threads/100996/post-436919

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-01-13 17:01:39 +01:00
Thomas Lamprecht
5a85eaec27 ui: backuo job detail: drop being stateful, increase default height
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 16:55:15 +01:00
Thomas Lamprecht
452bdb03ed ui: backuo job detail: show next-run info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 16:55:15 +01:00
Thomas Lamprecht
8aeb7146f9 ui: backuo jobs: move next-run column beside schedule one
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 16:55:15 +01:00
Thomas Lamprecht
7ce62ab3ad ui: utils: add render_next_event
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 16:55:15 +01:00
Thomas Lamprecht
6a45a9cd69 d/control: bump pve-common versioned dependencies
to make it easier guaranteeing the more capable calendar event
implementation is active for all parts using it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 16:36:02 +01:00
Thomas Lamprecht
5a20de4964 d/control: bump versioned dependency to pve-rs
for calendar event perlmod

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 15:33:41 +01:00
Dominik Csapak
c048ad30c8 vzdump: add new 'next-run' field for vzdump job listing
and calculate it by getting the next event after 'now' since
we currently have no way to get the last run time for jobs only running
on different cluster nodes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-01-13 15:33:41 +01:00
Thomas Lamprecht
38772ec8fa d/control: bump http-server versioned depenedency
so that the new TLS knobs actually do something

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-13 13:43:19 +01:00
Fabian Grünbichler
ed59fcff47 fix #3789: pass disable TLS 1.2/1.3 options
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-01-13 13:42:58 +01:00
Fabian Grünbichler
64672c2803 fix #3745: handle overridden TLS key location
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-01-13 13:42:58 +01:00
Fabian Grünbichler
ff65c92931 fix #3790: pass TLS 1.3 ciphersuites if set
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-01-13 13:42:58 +01:00
Dominik Csapak
758690bf4d add 'auto' mode for noVNC scaling
in commit
07195aa079 ("ui: fix novnc scaling radio button")

we always set to 'scale' when no value was set, but a non-set value
actually had a different behaviour:

in the embedded console it was set to 'scale', but in the pop-up it was
set to 'off'.

to restore this behaviour, introduce an option 'auto' which unsets the
'novnc-scaling' setting

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-01-13 12:58:59 +01:00
Fabian Ebner
545f94e7d2 ui: node: zfs: use ZFSDetail window from widget-toolkit
The only functional differences I could see are the missing
defaultValue for 'Scan' and the reduced height. For restoring the
height, there is a proposed patch for widget-toolkit.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-01-13 12:54:03 +01:00
Dominik Csapak
07195aa079 ui: fix novnc scaling radio buttons
when having selected 'off', the next start of the window has both
radiobuttons selected and no change is possible anymore. It seems that
the 'checked: true' triggers only after the 'init' function.

So instead remove the 'checked: true', and add the default in the init
function.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-01-11 16:32:50 +01:00
Thomas Lamprecht
02651425d9 avoid installing unused var/lib/vz/template/qemu directory
some users in the forum[0][1] and oguz wondered and made me notice
it, its neither used nor referred too in pve-storage, qemu-server nor
the pve-manager package itself, so just drop it.

[0]: https://forum.proxmox.com/threads/qemu-template-questions.18053/
[1]: https://forum.proxmox.com/threads/what-is-var-lib-vz-template-qemu-for.100092/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-11 14:13:45 +01:00
Dominik Csapak
cf2063d4e1 status: influxdb: suppress warning when no token exists
in get_credentials, we try to read the token for the specified server,
and warn if we cannot do that (e.g. because the file does not exist)

since having no token is a valid configuration, suppress that warning on
connection.

reported by a forum-user:
https://forum.proxmox.com/threads/interface-comes-up-with-all-question-marks.83287/page-2#post-438204

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-21 15:44:38 +01:00
Fabian Ebner
392e3cf11d sorters: use correct property 'direction' and keep default 'ASC'
Ext.util.Sorter does not have an 'order' property, so 'order: DESC'
didn't have an effect. The default is 'ASC' and it is arguably the
preferred direction for all affected sorters anyways.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-12-16 10:11:48 +01:00
Fabian Ebner
9082d8d0f9 backup views: sort backups by vmid, then descending by date
to have the most recent ones first, while keeping backups from the
same guest together.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-12-15 16:01:40 +01:00
Thomas Lamprecht
2844a42220 ui: ceph status details: refactoring and clenaups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-15 16:01:25 +01:00
Thomas Lamprecht
27c12d32a9 ui: ceph dashboard: render ghost OSDs
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-10 14:28:30 +01:00
Thomas Lamprecht
8ce85523c3 ui: ceph fs: fix overriding renderer in controller
Overriding the controller render_status must be done in an derived
class, not as config for the instantiated object.

While it worked it really isn't idiomatic and ExtJS complained with
an error in debug mode, which broke the whole UI then.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-10 13:24:11 +01:00
Thomas Lamprecht
4938414798 ui: ceph: variable casing style fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-10 10:59:46 +01:00
Thomas Lamprecht
523bc167d7 ui: vm create wizard: default to 4 GiB memory for win11 os type
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-09 17:41:45 +01:00
Thomas Lamprecht
592df57243 bump version to 7.1-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-07 19:11:37 +01:00
Thomas Lamprecht
ec23a5cb32 ui: calendar event: add once daily example and clarify workday one
Using 00:00 with relying on the implied default is sub optimal as its
a bit of a magic example that new users may not understand as easily.
So spell it out explicitly, even if there'd be a shorter version
possible.

We also had some request for the once-daily every day, and its a
sensible example to have in general, could help getting the
difference between an hour list and a single one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-07 18:51:32 +01:00
Thomas Lamprecht
1ec18d40af ui: upload/download image: trim checksum value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-03 11:09:51 +01:00
Thomas Lamprecht
e4c36ea34f jobs: limit ID to maximal 64 characters
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-03 10:01:17 +01:00
Dominik Csapak
4ad65791fc fix #3689: add gridhandle to firewall rules to indicate drag/drop
dragHandle was copied from the BootOrderEdit.
Also increases the width by 23px to make space for it.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-02 19:16:35 +01:00
Oguz Bektas
0ffa230e17 lxc: add lazytime mount option
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2021-12-01 16:28:21 +01:00
Thomas Lamprecht
1e80487d9e bump version to 7.1-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-24 18:32:55 +01:00
Thomas Lamprecht
f180edaae1 d/control: bump http-server and mini-journalreader dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-24 18:21:35 +01:00
Dominik Csapak
68df949690 api: journal: stream the journal data to the client
instead of accumulating the whole output of 'mini-journalreader' in
the api call (this can be quite big), use the download mechanic of the
http-server to stream the output to the client.

we lose some error handling possibilities, but we do not have
to allocate anything here, and since perl does not free memory after
allocating[0] this is our desired behaviour.

to keep api compatiblitiy, we need to give the journalreader the '-j'
flag to let it output json.

also tell the http server that the encoding is gzip and pipe
the output through it.

0: https://perldoc.perl.org/perlfaq3#How-can-I-free-an-array-or-hash-so-my-program-shrinks?

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-11-24 18:19:16 +01:00
Thomas Lamprecht
a6aa09fdd1 d/changelog: fix typos/grammar
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-23 09:01:15 +01:00
Thomas Lamprecht
7de8b7301c pvescheduler: use private sub instead of code-ref
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-23 08:59:49 +01:00