Commit Graph

6574 Commits

Author SHA1 Message Date
Thomas Lamprecht
a75bace1f4 ui: bulk shutdown: expose new timeout and force-stop to user
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-14 17:41:04 +01:00
Thomas Lamprecht
7be0f644b3 ui: bulk migrate: cleanupl, reduce and modernize code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-14 17:41:04 +01:00
Thomas Lamprecht
853ce1ea65 fixup! api: node stopall: expose setting the task timeout as endpoint parameter 2023-01-14 17:41:04 +01:00
Thomas Lamprecht
1154329312 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>
2023-01-14 17:41:04 +01:00
Thomas Lamprecht
8f063fbc7f 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>
2023-01-14 17:41:04 +01:00
Thomas Lamprecht
b27ebcadb8 api: nodes: move variable definition closer to use site
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-14 17:41:04 +01:00
Thomas Lamprecht
f77faab20a api: nodes: code style/indentation fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-14 17:41:04 +01:00
Matthias Heiserer
136f5724be 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>
2023-01-13 12:39:40 +01:00
Thomas Lamprecht
7ef80fa8a4 ui: storage browser: code cleanup/modernization
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-10 13:51:53 +01:00
Thomas Lamprecht
21820ede01 ui: sdn browser: code cleanup/modernization
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-10 13:51:39 +01:00
Thomas Lamprecht
7a6de7fecc ui: config panel: xtype should be first property
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-10 13:44:03 +01:00
Thomas Lamprecht
8538f6f0b9 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>
2023-01-10 12:32:41 +01:00
Thomas Lamprecht
7f74dabc9e 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>
2023-01-10 12:26:23 +01:00
Thomas Lamprecht
d5ef2ac832 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>
2023-01-10 12:15:33 +01:00
Thomas Lamprecht
ea5d9c35c8 ui: config panel: refactor onlineHelp switch to object map
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-10 12:14:07 +01:00
Thomas Lamprecht
709065a63f api: task download: improve code/comment locallity slightly
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-04 14:38:19 +01:00
Thomas Lamprecht
2ebba46720 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>
2023-01-04 14:37:08 +01:00
Thomas Lamprecht
627903257b api: task download: avoid useless intermediate variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-04 14:36:47 +01:00
Daniel Tschlatscher
aa73246bd4 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>
2023-01-04 14:32:11 +01:00
Thomas Lamprecht
5a9848fac0 fix #1295: ui: allow one to configure new notification settings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-03 16:51:31 +01:00
Thomas Lamprecht
8432c6d351 fix #1295: pve daily update: honor new package-notification config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-03 16:45:32 +01:00
Stefan Hrdlicka
b9e706fb85 cleanup: "var" to "let", fix some indentation in related files
Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
2022-12-21 16:24:04 +01:00
Stefan Hrdlicka
14d9ecc416 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>
2022-12-21 16:24:04 +01:00
Aaron Lauterer
56b03211e6 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>
2022-12-21 14:55:14 +01:00
Aaron Lauterer
f18b7ddd36 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>
2022-12-21 14:50:11 +01:00
Thomas Lamprecht
5dcd66c18e bump version to 7.3-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-16 13:11:27 +01:00
Thomas Lamprecht
c3264e92ca api: apt: code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-16 13:01:24 +01:00
Thomas Lamprecht
f422af002a ui: node/datacenter summary: show tags by default and flex that column
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-12-16 12:57:33 +01:00
Dominik Csapak
5347251f8c 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>
2022-12-13 15:13:28 +01:00
Thomas Lamprecht
40946b6c60 appliance info: update apltest for zstd based archives
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-30 16:20:58 +01:00
Thomas Lamprecht
b44e81e42a appliance info: update shipped index
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-30 16:20:19 +01:00
Dominik Csapak
ad02432922 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>
2022-11-28 17:59:30 +01:00
Thomas Lamprecht
d1bb39d448 bump version to 7.3-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-21 15:58:42 +01:00
Dominik Csapak
00e4bd2e10 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>
2022-11-21 15:51:40 +01:00
Thomas Lamprecht
783870bfc2 update aplinfo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-21 14:25:58 +01:00
Thomas Lamprecht
3fcb8f0865 bump version to 7.3-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-21 14:25:58 +01:00
Fiona Ebner
2b233ecc08 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>
2022-11-21 14:13:05 +01:00
Thomas Lamprecht
f64fa68d8c 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>
2022-11-21 13:38:13 +01:00
Thomas Lamprecht
8fab87dc72 ui: dc options: support setting case sensitive
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-21 08:49:13 +01:00
Thomas Lamprecht
1d1a331949 ui: dc options: add Color-Overrides text to render, if any
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-21 08:48:53 +01:00
Thomas Lamprecht
65cbfe79e4 fix #4245: api: node HW: allow to get PCI info with Sys.Audit on /
keep Sys.Modify only for backward compat, as it does not make really
much sense to ask for that on an informative GET call.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-20 13:29:58 +01:00
Thomas Lamprecht
12f011de4e bump version to 7.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-19 15:57:53 +01:00
Thomas Lamprecht
87f43acb8e ui: improve ZFS pool name validator accuracy
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-19 15:56:46 +01:00
Thomas Lamprecht
58de15074f ui: node disk manage: mark using ZFS reserved pool names as invalid
ZFS will die anyway later so catch this earlier for better UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 18:27:56 +01:00
Thomas Lamprecht
1b015ebc3d ui: utils fix typos in tag tree styles
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 17:56:50 +01:00
Thomas Lamprecht
593272c434 bump version to 7.2-15
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 17:27:30 +01:00
Thomas Lamprecht
9d7d39ef1c ui: datacenter options: add Cluster Resource Scheduling editor
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 17:26:38 +01:00
Dominik Csapak
2da3166e58 ui: tags: highlight finish inline editing button
by making it a 'regular' blue button instead of a toolbar button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-18 16:37:46 +01:00
Dominik Csapak
66dace4b3c ui: tags: implement dirty tracking for inline editing
similar to how regular forms are tracked

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-18 16:37:46 +01:00
Dominik Csapak
e83ea30e4a ui: tags: shortcut accept&cancel with keypresses
pressing 'Enter' accepts the current tags and
'Escape' cancels editing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-18 16:37:46 +01:00