]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
14 months agofix #1408: ui: ResourceTree: sort the tree according to tree-sorting options
Dominik Csapak [Wed, 22 Feb 2023 07:51:52 +0000 (08:51 +0100)]
fix #1408: ui: ResourceTree: sort the tree according to tree-sorting options

Considers the newly added options from browser local storage. We have to
save the last sorting mechanism there, so we can detect if it changes
and trigger the movement/text changes (otherwise the tree nodes won't
be updated/moved)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
14 months agoui: add window for changing tree related options
Dominik Csapak [Wed, 22 Feb 2023 07:51:51 +0000 (08:51 +0100)]
ui: add window for changing tree related options

such as the sorting/grouping of guests. saves them in the browser local
storage under 'pve-tree-sorting'

adds a button for it next to the the view selector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
14 months agoui: refactor refreshing the the resource store/tree
Dominik Csapak [Wed, 22 Feb 2023 07:51:50 +0000 (08:51 +0100)]
ui: refactor refreshing the the resource store/tree

we'll need it elsewhere too, and it was rather hidden in the
updateTagSettings call.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
14 months agoui: refactor ui option related methods into UIOptions
Dominik Csapak [Wed, 22 Feb 2023 07:51:49 +0000 (08:51 +0100)]
ui: refactor ui option related methods into UIOptions

a new singleton like Utils/Parser, intended for holding stuff for
ui options, such as the tag settings/overrides

no behavioural change intended

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
14 months agoui: remove unused booleanfield
Dominik Csapak [Wed, 22 Feb 2023 07:51:48 +0000 (08:51 +0100)]
ui: remove unused booleanfield

it's not used anymore, does not belong into pve-manager (rather in
proxmox-widget-toolkit), does not have a proper alias.

it's simple enough to recreate should we ever need it again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
14 months agoui: remove 'Storage View'
Dominik Csapak [Wed, 22 Feb 2023 07:51:47 +0000 (08:51 +0100)]
ui: remove 'Storage View'

it is basically the 'Server View' but with less content, and has often
times lead to confusion when uses accidentally selected it.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
14 months agoreport: add ceph health detail
Aaron Lauterer [Tue, 21 Feb 2023 10:23:32 +0000 (11:23 +0100)]
report: add ceph health detail

This gives us more detailed infos about the problems Ceph currently has.
It is the last command because if PGs have issues, the list can be quite
long. Therefore, we want it at the end of the report.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
15 months agoui: ceph: move single used icon into interpolated string
Dominik Csapak [Wed, 15 Feb 2023 14:04:16 +0000 (15:04 +0100)]
ui: ceph: move single used icon into interpolated string

it's a bit shorter and still readable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
15 months agoui: ceph: osd: set default icon for other crush types
Aaron Lauterer [Thu, 17 Nov 2022 09:29:13 +0000 (10:29 +0100)]
ui: ceph: osd: set default icon for other crush types

Some users have a more complicated CRUSH hierarchy, for example with a
stretched cluster. The additional hierarchy steps (datacenter, rack,
room, ...) are shown in the OSD panel. Showing a generic icon for any
CRUSH types that have not a specific icon configured will make it easier
to navigate the tree as it will not look somewhat broken and empty.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
15 months agoceph osd: return PGs per OSD and show in UI
Aaron Lauterer [Tue, 14 Feb 2023 08:13:47 +0000 (09:13 +0100)]
ceph osd: return PGs per OSD and show in UI

By switching from 'ceph osd tree' to the 'ceph osd df tree' mon API
equivalent , we get the same data structure with more information per
OSD. One of them is the number of PGs stored on that OSD.

The number of PGs per OSD is an important number, for example when
trying to figure out why the performance is not as good as expected.
Therefore, adding it to the OSD overview visible by default should
reduce the number of times, one needs to access the CLI.

Comparing runtime cost on a 3 node ceph cluster with 4 OSDs each doing 50k
iterations gives:

               Rate osd-df-tree    osd-tree
osd-df-tree  9141/s          --        -25%
osd-tree    12136/s         33%          --

So, while definitively a bit slower, but it's still in the µs range,
and as such below HTTP in TLS in TCP connection setup for most users,
so worth the extra useful information.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
 [ TL: slight rewording of subject and add benchmark data ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: ldap: fix `Parameter verification error`
Lukas Wagner [Tue, 14 Feb 2023 13:35:08 +0000 (14:35 +0100)]
ui: ldap: fix `Parameter verification error`

...when editing LDAP realm sync settings and only a single property is
empty and thus to be deleted (e.g. values.delete = "filter").

If `delete` is a simple string and not an array,
`PVE.Utils.delete_if_default` simply creates a comma-separated list,
(e.g. value.delete = "filter,sync-attributes").

When the properties from the other panel are evaluated and added to the
the `delete` property, comma-separated list format is not considered,
leading to a final value for `delete` that could look like this:
  value.delete = {
    "server2",
    "comment",
    "filter,sync-attributes"
  }

This commit fixes this by splitting `delete` in case it is a string.

Reported-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
15 months agofix #4335: report: add datacenter.cfg to output
Max Carrara [Mon, 13 Feb 2023 09:19:15 +0000 (10:19 +0100)]
fix #4335: report: add datacenter.cfg to output

Includes the contents of /etc/pve/datacenter.cfg
in the cluster section.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
15 months agofix #4521: api/tasks: replace upid as filename for task log downloads
Stefan Sterz [Thu, 9 Feb 2023 11:43:14 +0000 (12:43 +0100)]
fix #4521: api/tasks: replace upid as filename for task log downloads

previously the upid would just be used without a file extension when
downloading a task log. this lead to rather strange filenames that
appeared unfamiliar to users as the upid is not very prevalent in the
gui. set a proper file name based on the node name, worker type and a
time stamp instead. also add the ".log" file extension to indicate
that these files contain logs.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
15 months agobump version to 7.3-6
Thomas Lamprecht [Thu, 2 Feb 2023 07:43:08 +0000 (08:43 +0100)]
bump version to 7.3-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoapi apt: fix spelling in hash to avoid undef access warnings
Thomas Lamprecht [Thu, 2 Feb 2023 07:42:12 +0000 (08:42 +0100)]
api apt: fix spelling in hash to avoid undef access warnings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agobump version to 7.3-5
Thomas Lamprecht [Wed, 1 Feb 2023 11:58:18 +0000 (12:58 +0100)]
bump version to 7.3-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoapi apt: support getting changelog of backports packages
Thomas Lamprecht [Wed, 1 Feb 2023 11:27:29 +0000 (12:27 +0100)]
api apt: support getting changelog of backports packages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoapi apt: code/style cleanup in changelog endpoint
Thomas Lamprecht [Wed, 1 Feb 2023 11:25:42 +0000 (12:25 +0100)]
api apt: code/style cleanup in changelog endpoint

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoapi apt: recduce indentation in package status update sub
Thomas Lamprecht [Wed, 1 Feb 2023 11:21:39 +0000 (12:21 +0100)]
api apt: recduce indentation in package status update sub

best viewed with `-w` flag

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoapi apt: code/style cleanup getting changelog URL
Thomas Lamprecht [Wed, 1 Feb 2023 11:20:28 +0000 (12:20 +0100)]
api apt: code/style cleanup getting changelog URL

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agofix #4481: fetch changelogs for any Proxmox repository
Leo Nunner [Mon, 30 Jan 2023 10:59:53 +0000 (11:59 +0100)]
fix #4481: fetch changelogs for any Proxmox repository

This patch fixes the issue that when the user supplied any non-standard
repositories, the changelogs often wouldn't load. For example, providing
both pve-no-subscription and pbs-no-subscription broke the changelog
API, since the URL built for pbs-no-subscription was invalid.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
15 months agoui: local storage selector: avoid cut-off for node field
Thomas Lamprecht [Tue, 31 Jan 2023 16:59:56 +0000 (17:59 +0100)]
ui: local storage selector: avoid cut-off for node field

The top bar normally doesn't hosts form fields, so the height was a
bit off and the lower border of the node selector overflowed and got
hidden, making the whole picker look slightly off.

So set a minimum height of 40 px to ensure the field can be fully
shown, including margins.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: form store node selector: improve variable name clarity slightly
Thomas Lamprecht [Tue, 31 Jan 2023 16:58:01 +0000 (17:58 +0100)]
ui: form store node selector: improve variable name clarity slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: ComboBoxSetStoreNode: don't hide the picker when clicking the toolbar
Dominik Csapak [Fri, 27 Jan 2023 10:14:36 +0000 (11:14 +0100)]
ui: ComboBoxSetStoreNode: don't hide the picker when clicking the toolbar

When clicking the toolbar of the ComboGrid, the combobox loses focus,
and instantly hides the picker.

To prevent that, we keep track of the mousedown event on the toolbar
(which happily comes before the focusLeave event), and prevent the
focusLeave propagation in that case.

Then on mouseup, we focus the combobox again, so that the nexct
focusLeave can trigger again.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
15 months agofix #4502: ui: VM OS type: the l26 type is also compatible with Linux 6.x
Thomas Lamprecht [Mon, 30 Jan 2023 10:01:52 +0000 (11:01 +0100)]
fix #4502: ui: VM OS type: the l26 type is also compatible with Linux 6.x

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: metrics: expose verify-certificate for influxdb as advanced setting
Thomas Lamprecht [Sat, 28 Jan 2023 11:37:04 +0000 (12:37 +0100)]
ui: metrics: expose verify-certificate for influxdb as advanced setting

Ideally we'd offer fingerprint validation, but it's already nice to
allow admins configure the no-cert-verify through the UI, e.g., when
testing the metrics stack pre-deployment or for internally hosted
instances with a trusted DNS.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: metrics: avoid repeated querys of the view
Thomas Lamprecht [Sat, 28 Jan 2023 11:36:07 +0000 (12:36 +0100)]
ui: metrics: avoid repeated querys of the view

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agofix typo in user tag access text field
Daniel Tschlatscher [Fri, 25 Nov 2022 10:48:15 +0000 (11:48 +0100)]
fix typo in user tag access text field

This text is only displayed when at least one tag is defined in the
User Tag Access editor.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
15 months agofix #3037: include the split_list to shell_qoute
Moayad Almalat [Mon, 23 Jan 2023 09:52:35 +0000 (10:52 +0100)]
fix #3037: include the split_list to shell_qoute

 Based to the suggestion of Wolfgang, in regard to `split_list()`,
 I converted the `split_list()` to `split(/\0/, $param->{$key});`
 this will split the `$param->{$key}` null characters and push each
 element to the `$args` array along with the key value.

 changes since v1:
 * get rid of the `use PVE::Tools qw(split_list);` since not need it anymore.
 * replace the split_list to split(/\0/).

Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
15 months agoui: cluster info: fix displaying error
Fiona Ebner [Mon, 23 Jan 2023 13:45:08 +0000 (14:45 +0100)]
ui: cluster info: fix displaying error

The function to set the error mask expects the message as a string,
not the error object.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
15 months agoui: node options: make text for `wakeonlan` option a bit more descriptive
Lukas Wagner [Mon, 23 Jan 2023 13:59:58 +0000 (14:59 +0100)]
ui: node options: make text for `wakeonlan` option a bit more descriptive

If one is not familiar with the underlying configuration option,
one might think that one can enable Wake-On-Lan for a node with this
option. It was not really clear (at least without RTFM ;) ) that a
MAC address is supposed to be entered here. The added text should
hopefully make this a bit more clear.

Also increased the label width a bit, so that a full MAC
address can be properly displayed.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
15 months agoui: factor out not found rendering to common helper
Thomas Lamprecht [Sat, 21 Jan 2023 13:30:54 +0000 (14:30 +0100)]
ui: factor out not found rendering to common helper

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: schedule sim: denote if any simulation was done via empty text
Thomas Lamprecht [Fri, 20 Jan 2023 09:46:53 +0000 (10:46 +0100)]
ui: schedule sim: denote if any simulation was done via empty text

As subtle UX hint that the user first needs to press the Simulate
button.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: schedule sim: clear previous simulation output on error
Thomas Lamprecht [Fri, 20 Jan 2023 09:45:59 +0000 (10:45 +0100)]
ui: schedule sim: clear previous simulation output on error

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: schedule sim: rename 'OK' button to 'Done'
Thomas Lamprecht [Fri, 20 Jan 2023 09:44:39 +0000 (10:44 +0100)]
ui: schedule sim: rename 'OK' button to 'Done'

As Ok is mostly sensible for acknowledging informational or notice
pop-ups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: fix search for 'Guests without Backup' window
Lukas Wagner [Fri, 20 Jan 2023 08:47:10 +0000 (09:47 +0100)]
ui: fix search for 'Guests without Backup' window

In JS, a `for (const a in <...>)` loop iterates over indices, not
over values. To iterate over values, `for (const a of <..>)` has
to be used. Furthermore, filtering by ID did not work properly, since
the property is called `vmid`, not `id`.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
15 months agoui: schedule sim: code style cleanup
Thomas Lamprecht [Fri, 20 Jan 2023 08:42:00 +0000 (09:42 +0100)]
ui: schedule sim: code style cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: storage backup view: Update remove button on protection change
Christoph Heiss [Thu, 19 Jan 2023 09:56:22 +0000 (10:56 +0100)]
ui: storage backup view: Update remove button on protection change

Currently this works in the backup view for containers/VMs, but not in
the storage backup view. Implement that for the latter part too.

Uses the callback functionality of the load() method of the store to
properly update the UI as soon as the loading has finished.
While at it, refactor the same thing in the grid backup view as well,
removing the current hack in the process.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
15 months agoui: ScheduleSimulator: split date and time into two columns
Dominik Csapak [Wed, 18 Jan 2023 14:35:21 +0000 (15:35 +0100)]
ui: ScheduleSimulator: split date and time into two columns

and align the time right. This makes it easier to compare times

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
15 months agoui: backup view: add scrolling overflow handler for the toolbar
Dominik Csapak [Wed, 18 Jan 2023 14:35:20 +0000 (15:35 +0100)]
ui: backup view: add scrolling overflow handler for the toolbar

As we got reports that some buttons get cut-off on resolutions close
to our minimal 720p one, especially if the "guest not in backup" jobs
hint is shown.

Link: https://forum.proxmox.com/threads/120714/
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ T: resolve merge conflict and reword commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: backup info: code cleanups
Thomas Lamprecht [Thu, 19 Jan 2023 16:32:57 +0000 (17:32 +0100)]
ui: backup info: code cleanups

And switch the title of the "not in any job" info window to title
case, just like the button that opens it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: backup info: merge not-in-any-job warning into button to save space
Thomas Lamprecht [Thu, 19 Jan 2023 16:30:28 +0000 (17:30 +0100)]
ui: backup info: merge not-in-any-job warning into button to save space

We got reports in the forum about accessibility issues, as buttons
where cut-off due to the relatively long warning.

Use the old text as tooltip for the button and add the icon also
there.

Link: https://forum.proxmox.com/threads/120714/#post-526376
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: backup info: use collapsible field set to render retention config
Thomas Lamprecht [Thu, 19 Jan 2023 15:41:52 +0000 (16:41 +0100)]
ui: backup info: use collapsible field set to render retention config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: backup info: make initial height dependent of body view-height
Thomas Lamprecht [Thu, 19 Jan 2023 15:41:21 +0000 (16:41 +0100)]
ui: backup info: make initial height dependent of body view-height

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: backup info: move pool-to-backup to column 2 for balance
Thomas Lamprecht [Thu, 19 Jan 2023 15:23:51 +0000 (16:23 +0100)]
ui: backup info: move pool-to-backup to column 2 for balance

Its only shown sometimes and with this patch it's adjacent to the
selection mode, so quite fitting also from that POV.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: backup info: drop "Email" from "Notification" label
Thomas Lamprecht [Thu, 19 Jan 2023 15:18:03 +0000 (16:18 +0100)]
ui: backup info: drop "Email" from "Notification" label

avoids extra vertical space usage due to a long label that's broken
up in multiple lines while not really loosing any relevant info.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: backup info: avoid clunky switch for simple mapping
Thomas Lamprecht [Thu, 19 Jan 2023 15:16:49 +0000 (16:16 +0100)]
ui: backup info: avoid clunky switch for simple mapping

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: reduce default size of Backup detail window
Dominik Csapak [Wed, 18 Jan 2023 14:35:19 +0000 (15:35 +0100)]
ui: reduce default size of Backup detail window

on our minimal display size (1280x720), using height 700 is too large
when considering that the browser + os also need some vertical space.

For good measure, use a maximum of 600 pixels. Since the window is
resizable anyway, users with more space should not have a problem here.

reported in the forum:
https://forum.proxmox.com/threads/web-forms-extend-beyond-web-page-window-in-some-cases.120714

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
15 months agoui: storage: LVM panel: modernize & cleanup code
Dominik Csapak [Wed, 18 Jan 2023 13:13:03 +0000 (14:13 +0100)]
ui: storage: LVM panel: modernize & cleanup code

using cbin, gettin rid of initComponent

this is a bit more complicated than the other refactorings in storage
recently, since we have a few fields with non trivial dependecies
between the selected mode (existing vgs/base storage) and isCreate

Because of that, using a cbind for the xtype here instead of the
pmxDisplayEditField is much more convenient
(accessing the pmxDisplayEditField and the editField below is currently
not really ideal)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: storage: ZFS panel: modernize & cleanup code
Dominik Csapak [Wed, 18 Jan 2023 13:13:02 +0000 (14:13 +0100)]
ui: storage: ZFS panel: modernize & cleanup code

using cbind + pmxDisplayEditField, getting rid of initComponent

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: storage: iSCSI panel: modernize, cleanup & improve UX
Dominik Csapak [Wed, 18 Jan 2023 13:13:01 +0000 (14:13 +0100)]
ui: storage: iSCSI panel: modernize, cleanup & improve UX

using cbind + pmxDisplayEditField, getting rid of initComponent

Disables the target selector until a portal is entered. For this, we
currently cannot use the pmxDisplayEditField, since that
disabled/enables the fields automatically based on 'editable'.

Also setting buffer for the portal entry change handler to 500ms (so that
we don't query the backend that often)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: storage: LVM-Thin panel: modernize & cleanup code
Dominik Csapak [Wed, 18 Jan 2023 13:13:00 +0000 (14:13 +0100)]
ui: storage: LVM-Thin panel: modernize & cleanup code

using cbind + pmxDisplayEditField, getting rid of the initComponent

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: storage: move node scan selector inside combobox
Dominik Csapak [Wed, 18 Jan 2023 13:12:59 +0000 (14:12 +0100)]
ui: storage: move node scan selector inside combobox

by converting the relevant selection boxes to combogrids.
This is done to reduce confusion for how/why to select a node, and
doing it this way it is moved closer to the selection of the actual
value we want. It still restricts the nodes when selecting a specific one.

Show it only when there is more than one node according to the
in-memory PVE.data.ResourceStore info, as for single-node setups
there isn't any other node one could scan anyway.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoui: storage: use null as empty value for scanned-node selector
Dominik Csapak [Wed, 18 Jan 2023 13:12:58 +0000 (14:12 +0100)]
ui: storage: use null as empty value for scanned-node selector

otherwise it can happen that there as additional change event from
null to '', even though the value did not change

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoapi: apt: versions: add proxmox-mail-forward to package list
Fiona Ebner [Fri, 2 Dec 2022 14:25:19 +0000 (15:25 +0100)]
api: apt: versions: add proxmox-mail-forward to package list

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
16 months agoapi: ceph metadata: rename instance placeholder to id in return schema
Thomas Lamprecht [Mon, 16 Jan 2023 15:32:13 +0000 (16:32 +0100)]
api: ceph metadata: rename instance placeholder to id in return schema

It's a bit more commonly used for such identifier

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: ceph: metadata: update return schema
Aaron Lauterer [Fri, 23 Dec 2022 09:59:15 +0000 (10:59 +0100)]
api: ceph: metadata: update return schema

This API endpoint returns a big nested schema. This patch adds a mostly
complete description.

For the actual service instance return schema, we include commonly used
and important properties. It will usually return more. What exactly
depends on the Ceph service type.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
16 months agoapi: ceph: update return schemas
Aaron Lauterer [Fri, 23 Dec 2022 09:59:14 +0000 (10:59 +0100)]
api: ceph: update return schemas

to include a more complete description of the returned data.
Sort properties in alphabetical order if the list is longer.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
16 months agoui: storage backup view: refactor/modernize code style slightly
Thomas Lamprecht [Mon, 16 Jan 2023 13:21:52 +0000 (14:21 +0100)]
ui: storage backup view: refactor/modernize code style slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agofix #4393: ui: storage backup view: make pbs-specific columns sortable
Stefan Hanreich [Fri, 16 Dec 2022 12:45:06 +0000 (13:45 +0100)]
fix #4393: ui: storage backup view: make pbs-specific columns sortable

The sort order is analogous to how it behaves in the datastore content
overview in pbs.

This means sorting in ascending order behaves as follows:

Verify State
* failed
* none
* ok

Encryption
* no
* yes

For the encryption state there is theoretically a distinction between
signed and encrypted, but as far as I can tell we do not render this
distinction in PVE, which is why I chose to not make this distinction
for sorting as well.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
16 months agoui: bulk actions: default to a height of 600 px
Thomas Lamprecht [Sat, 14 Jan 2023 16:40:22 +0000 (17:40 +0100)]
ui: bulk actions: default to a height of 600 px

Better fit to the 800 px default width, especially as bulk shutdown
now also got some form fields that take up space.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agofix #4194: ui: clarify that it's actually a bulk shutdown, not a stop
Thomas Lamprecht [Sat, 14 Jan 2023 16:36:18 +0000 (17:36 +0100)]
fix #4194: ui: clarify that it's actually a bulk shutdown, not a stop

As some users where confused by the usage of "Stop", which we
normally reserve for a hard-stop.

And yes, while the bulk shutdown formerly always had a timeout armed
hard-stop hard coded, it was still subtle and we recently exposed
control on that via the API an UI, so use shutdown to be more in line
with the CT/VM naming, e.g., in their power menus.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoui: bulk shutdown: expose new timeout and force-stop to user
Thomas Lamprecht [Sat, 14 Jan 2023 16:35:30 +0000 (17:35 +0100)]
ui: bulk shutdown: expose new timeout and force-stop to user

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoui: bulk migrate: cleanupl, reduce and modernize code
Thomas Lamprecht [Sat, 14 Jan 2023 16:34:16 +0000 (17:34 +0100)]
ui: bulk migrate: cleanupl, reduce and modernize code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agofixup! api: node stopall: expose setting the task timeout as endpoint parameter
Thomas Lamprecht [Sat, 14 Jan 2023 16:33:07 +0000 (17:33 +0100)]
fixup! api: node stopall: expose setting the task timeout as endpoint parameter

16 months agoapi: node stopall: expose setting force-stop behavior
Thomas Lamprecht [Sat, 14 Jan 2023 15:56:39 +0000 (16:56 +0100)]
api: node stopall: expose setting force-stop behavior

So that one can really decide if this is a shutdown or an actual
stop.

partially related to #4194

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: node stopall: expose setting the task timeout as endpoint parameter
Thomas Lamprecht [Sat, 14 Jan 2023 15:52:27 +0000 (16:52 +0100)]
api: node stopall: expose setting the task timeout as endpoint parameter

Note that this changes the lower timeout of 60s for CTs also to 180s
like VM always used; besides that there's not much gained making that
distinction there was never a really good argument for this.

partially related to #4194

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: nodes: move variable definition closer to use site
Thomas Lamprecht [Sat, 14 Jan 2023 15:22:06 +0000 (16:22 +0100)]
api: nodes: move variable definition closer to use site

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: nodes: code style/indentation fixes
Thomas Lamprecht [Sat, 14 Jan 2023 15:20:34 +0000 (16:20 +0100)]
api: nodes: code style/indentation fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoAPI: ceph: fix typo in permissions
Matthias Heiserer [Fri, 13 Jan 2023 10:56:28 +0000 (11:56 +0100)]
API: ceph: fix typo in permissions

With Sys.Audit being spelled wrong, this call always failed

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
16 months agoui: storage browser: code cleanup/modernization
Thomas Lamprecht [Tue, 10 Jan 2023 12:51:53 +0000 (13:51 +0100)]
ui: storage browser: code cleanup/modernization

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoui: sdn browser: code cleanup/modernization
Thomas Lamprecht [Tue, 10 Jan 2023 12:51:38 +0000 (13:51 +0100)]
ui: sdn browser: code cleanup/modernization

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoui: config panel: xtype should be first property
Thomas Lamprecht [Tue, 10 Jan 2023 12:44:03 +0000 (13:44 +0100)]
ui: config panel: xtype should be first property

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoui: config panel: ensure onlineHelp mapping targets are validated
Thomas Lamprecht [Tue, 10 Jan 2023 11:32:35 +0000 (12:32 +0100)]
ui: config panel: ensure onlineHelp mapping targets are validated

our onlineHelp linter is pretty dumb and scans for used help
references heuristically, so add a small indirection to the mapping
of resource tree type to onlineHelp so that it detects those
references and thus enforces that they exists in pve-docs.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoui: config panel: fix onlineHelp mapping targets
Thomas Lamprecht [Tue, 10 Jan 2023 11:26:21 +0000 (12:26 +0100)]
ui: config panel: fix onlineHelp mapping targets

We currently do not support direct resolved links, and we also have
no stability guarantee for those, so the might change in pve-docs-

Switch to mapping to the chapter reference, which actually works and
is intended for stable help references.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agofix #4455: ui: config panel: add missing onlineHelp mapping for SDN type
Thomas Lamprecht [Tue, 10 Jan 2023 11:15:24 +0000 (12:15 +0100)]
fix #4455: ui: config panel: add missing onlineHelp mapping for SDN type

Besides adding the correct help mapping this also avoid a successive
null dereference exception.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoui: config panel: refactor onlineHelp switch to object map
Thomas Lamprecht [Tue, 10 Jan 2023 11:14:07 +0000 (12:14 +0100)]
ui: config panel: refactor onlineHelp switch to object map

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: task download: improve code/comment locallity slightly
Thomas Lamprecht [Wed, 4 Jan 2023 13:38:19 +0000 (14:38 +0100)]
api: task download: improve code/comment locallity slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: task download: name clashing params explicit
Thomas Lamprecht [Wed, 4 Jan 2023 13:37:05 +0000 (14:37 +0100)]
api: task download: name clashing params explicit

we might add other ones that might be used together with the
`download` one, so rather be explicit on communicating what we check.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: task download: avoid useless intermediate variable
Thomas Lamprecht [Wed, 4 Jan 2023 13:36:47 +0000 (14:36 +0100)]
api: task download: avoid useless intermediate variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agomake task log downloadable in the PVE manager backend
Daniel Tschlatscher [Wed, 4 Jan 2023 12:56:33 +0000 (13:56 +0100)]
make task log downloadable in the PVE manager backend

The read_tasklog API call now stream the whole log file if the query
parameter 'download' is set to true.
This is done in preparation for the task log download button to be
added in the TaskViewer.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
Tested-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Stefan Sterz <s.sterz@proxmox.com>
16 months agofix #1295: ui: allow one to configure new notification settings
Thomas Lamprecht [Tue, 3 Jan 2023 15:45:16 +0000 (16:45 +0100)]
fix #1295: ui: allow one to configure new notification settings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agofix #1295: pve daily update: honor new package-notification config
Thomas Lamprecht [Tue, 3 Jan 2023 15:44:28 +0000 (16:44 +0100)]
fix #1295: pve daily update: honor new package-notification config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agocleanup: "var" to "let", fix some indentation in related files
Stefan Hrdlicka [Wed, 14 Dec 2022 12:43:07 +0000 (13:43 +0100)]
cleanup: "var" to "let", fix some indentation in related files

Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
16 months agofix #2822: add iscsi, lvm, lvmthin & zfs storage for all cluster nodes
Stefan Hrdlicka [Wed, 14 Dec 2022 12:43:06 +0000 (13:43 +0100)]
fix #2822: add iscsi, lvm, lvmthin & zfs storage for all cluster nodes

This adds a dropdown box for iSCSI, LVM, LVMThin & ZFS storage options where a
cluster node needs to be chosen. As default the current node is
selected. It restricts the the storage to be only availabe on the
selected node.

Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
16 months agoapi: ceph: sort and update index sub-directory list
Aaron Lauterer [Wed, 21 Dec 2022 13:30:25 +0000 (14:30 +0100)]
api: ceph: sort and update index sub-directory list

The 'cmd-safety', 'configdb' and 'mgr' items were missing, and while
directly calling the API endpoints worked, the api-viewer and pvesh
where partially broken here.

Sort the whole list alphabetically will make it easier to track in
the future

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
 [ T: note which items where missing and reword slightly ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoapi: ceph: fix grammar/styling in descriptions
Aaron Lauterer [Wed, 21 Dec 2022 13:30:24 +0000 (14:30 +0100)]
api: ceph: fix grammar/styling in descriptions

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
 [ T: slightly rework commit subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agobump version to 7.3-4
Thomas Lamprecht [Fri, 16 Dec 2022 12:11:27 +0000 (13:11 +0100)]
bump version to 7.3-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoapi: apt: code cleanups
Thomas Lamprecht [Fri, 16 Dec 2022 12:01:24 +0000 (13:01 +0100)]
api: apt: code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoui: node/datacenter summary: show tags by default and flex that column
Thomas Lamprecht [Fri, 16 Dec 2022 11:57:33 +0000 (12:57 +0100)]
ui: node/datacenter summary: show tags by default and flex that column

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoui: realm: sync: don't use realm defaults for remove-vanished
Dominik Csapak [Tue, 6 Dec 2022 11:06:33 +0000 (12:06 +0100)]
ui: realm: sync: don't use realm defaults for remove-vanished

If we don't manually set it to 'none', it will use the realm default,
which might be unexpected. This way, the sync always does what the
user saw in the sync window.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
17 months agoappliance info: update apltest for zstd based archives
Thomas Lamprecht [Wed, 30 Nov 2022 15:20:58 +0000 (16:20 +0100)]
appliance info: update apltest for zstd based archives

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoappliance info: update shipped index
Thomas Lamprecht [Wed, 30 Nov 2022 15:19:22 +0000 (16:19 +0100)]
appliance info: update shipped index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agofix #4370: ui: fix regression of preselecting tree element on login
Dominik Csapak [Mon, 28 Nov 2022 12:34:00 +0000 (13:34 +0100)]
fix #4370: ui: fix regression of preselecting tree element on login

We want to select a tree element based on the fragment in the url after
a login. For which we must wait for the tree (ResourceStore) to load.

Since we recently introduced the loading of '/cluster/options' to
load the overrides of tags, etc. we fire a 'load' event with the
intention of triggering a rerender of the tree (to include the new
colors). If that triggers before the ResourceStore is loaded,
we try to set the element once (which fails) and nothing is selected.

To fix this, we only trigger it if it was already loaded and is not
currently loading. Otherwise it will be either redrawn after the ongoing
load, or by the first load.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
17 months agobump version to 7.3-3
Thomas Lamprecht [Mon, 21 Nov 2022 14:58:42 +0000 (15:58 +0100)]
bump version to 7.3-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoui: qemu disk: honor iothread setting from config
Dominik Csapak [Mon, 21 Nov 2022 14:39:06 +0000 (15:39 +0100)]
ui: qemu disk: honor iothread setting from config

To have a IOThread on by default in the wizard and on disk add, we
added a 'bind' for the value here. This also changes the value for
existing VM disks, and if one does not notice, modifies it away again
(since we don't have the controller here and isSCSISingle is false)

Simply don't bind value when we edit a VM disk from config

Note that this is only an issue in Chromium based browsers.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
17 months agoupdate aplinfo
Thomas Lamprecht [Mon, 21 Nov 2022 13:25:07 +0000 (14:25 +0100)]
update aplinfo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agobump version to 7.3-2
Thomas Lamprecht [Mon, 21 Nov 2022 13:23:59 +0000 (14:23 +0100)]
bump version to 7.3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoapi: vzdump: soften parameter permission checks
Fiona Ebner [Wed, 16 Nov 2022 14:04:30 +0000 (15:04 +0100)]
api: vzdump: soften parameter permission checks

Allows sufficiently privileged users to pass-in retention and
performance parameters for manual backup, but keeps tmpdir, dumpdir
and script root-only. Such users could already edit the job
accordingly, so essentially not granting anything new.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
17 months agoui: workspace: increase initial resource tree width from 200 to 300 px
Thomas Lamprecht [Mon, 21 Nov 2022 12:38:11 +0000 (13:38 +0100)]
ui: workspace: increase initial resource tree width from 200 to 300 px

we got much more wide screens and higher resolutions nowadays than
when this width was decided (before the famous imported from SVN
commit in 2011).

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