]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
2 years agoui: utils: add render_next_event
Thomas Lamprecht [Thu, 13 Jan 2022 15:48:44 +0000 (16:48 +0100)]
ui: utils: add render_next_event

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: bump pve-common versioned dependencies
Thomas Lamprecht [Thu, 13 Jan 2022 15:34:04 +0000 (16:34 +0100)]
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>
2 years agod/control: bump versioned dependency to pve-rs
Thomas Lamprecht [Thu, 13 Jan 2022 14:33:19 +0000 (15:33 +0100)]
d/control: bump versioned dependency to pve-rs

for calendar event perlmod

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: add new 'next-run' field for vzdump job listing
Dominik Csapak [Thu, 2 Dec 2021 10:41:43 +0000 (11:41 +0100)]
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>
2 years agod/control: bump http-server versioned depenedency
Thomas Lamprecht [Thu, 13 Jan 2022 12:43:16 +0000 (13:43 +0100)]
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>
2 years agofix #3789: pass disable TLS 1.2/1.3 options
Fabian Grünbichler [Fri, 17 Dec 2021 12:57:32 +0000 (13:57 +0100)]
fix #3789: pass disable TLS 1.2/1.3 options

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agofix #3745: handle overridden TLS key location
Fabian Grünbichler [Fri, 17 Dec 2021 12:57:31 +0000 (13:57 +0100)]
fix #3745: handle overridden TLS key location

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agofix #3790: pass TLS 1.3 ciphersuites if set
Fabian Grünbichler [Fri, 17 Dec 2021 12:57:30 +0000 (13:57 +0100)]
fix #3790: pass TLS 1.3 ciphersuites if set

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd 'auto' mode for noVNC scaling
Dominik Csapak [Thu, 13 Jan 2022 07:56:33 +0000 (08:56 +0100)]
add 'auto' mode for noVNC scaling

in commit
07195aa079c4ed77866ee4c6af77436b7c2a2e06 ("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>
2 years agoui: node: zfs: use ZFSDetail window from widget-toolkit
Fabian Ebner [Fri, 10 Sep 2021 11:45:38 +0000 (13:45 +0200)]
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>
2 years agoui: fix novnc scaling radio buttons
Dominik Csapak [Tue, 11 Jan 2022 10:26:21 +0000 (11:26 +0100)]
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>
2 years agoavoid installing unused var/lib/vz/template/qemu directory
Thomas Lamprecht [Tue, 11 Jan 2022 13:12:20 +0000 (14:12 +0100)]
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>
2 years agostatus: influxdb: suppress warning when no token exists
Dominik Csapak [Mon, 20 Dec 2021 12:43:10 +0000 (13:43 +0100)]
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>
2 years agosorters: use correct property 'direction' and keep default 'ASC'
Fabian Ebner [Tue, 7 Dec 2021 13:08:44 +0000 (14:08 +0100)]
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>
2 years agobackup views: sort backups by vmid, then descending by date
Fabian Ebner [Tue, 7 Dec 2021 13:08:43 +0000 (14:08 +0100)]
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>
2 years agoui: ceph status details: refactoring and clenaups
Thomas Lamprecht [Wed, 15 Dec 2021 15:01:25 +0000 (16:01 +0100)]
ui: ceph status details: refactoring and clenaups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: ceph dashboard: render ghost OSDs
Thomas Lamprecht [Fri, 10 Dec 2021 13:06:33 +0000 (14:06 +0100)]
ui: ceph dashboard: render ghost OSDs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: ceph fs: fix overriding renderer in controller
Thomas Lamprecht [Fri, 10 Dec 2021 12:23:59 +0000 (13:23 +0100)]
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>
2 years agoui: ceph: variable casing style fix
Thomas Lamprecht [Fri, 10 Dec 2021 09:59:46 +0000 (10:59 +0100)]
ui: ceph: variable casing style fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: vm create wizard: default to 4 GiB memory for win11 os type
Thomas Lamprecht [Thu, 9 Dec 2021 16:40:17 +0000 (17:40 +0100)]
ui: vm create wizard: default to 4 GiB memory for win11 os type

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-8
Thomas Lamprecht [Tue, 7 Dec 2021 18:11:37 +0000 (19:11 +0100)]
bump version to 7.1-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: calendar event: add once daily example and clarify workday one
Thomas Lamprecht [Tue, 7 Dec 2021 17:47:44 +0000 (18:47 +0100)]
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>
2 years agoui: upload/download image: trim checksum value
Thomas Lamprecht [Fri, 3 Dec 2021 10:09:51 +0000 (11:09 +0100)]
ui: upload/download image: trim checksum value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agojobs: limit ID to maximal 64 characters
Thomas Lamprecht [Fri, 3 Dec 2021 09:01:17 +0000 (10:01 +0100)]
jobs: limit ID to maximal 64 characters

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3689: add gridhandle to firewall rules to indicate drag/drop
Dominik Csapak [Thu, 2 Dec 2021 10:38:47 +0000 (11:38 +0100)]
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>
2 years agolxc: add lazytime mount option
Oguz Bektas [Wed, 1 Dec 2021 15:17:57 +0000 (16:17 +0100)]
lxc: add lazytime mount option

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2 years agobump version to 7.1-7
Thomas Lamprecht [Wed, 24 Nov 2021 17:32:55 +0000 (18:32 +0100)]
bump version to 7.1-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: bump http-server and mini-journalreader dependencies
Thomas Lamprecht [Wed, 24 Nov 2021 17:21:31 +0000 (18:21 +0100)]
d/control: bump http-server and mini-journalreader dependencies

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: journal: stream the journal data to the client
Dominik Csapak [Wed, 24 Nov 2021 14:47:48 +0000 (15:47 +0100)]
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>
2 years agod/changelog: fix typos/grammar
Thomas Lamprecht [Tue, 23 Nov 2021 08:01:15 +0000 (09:01 +0100)]
d/changelog: fix typos/grammar

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopvescheduler: use private sub instead of code-ref
Thomas Lamprecht [Tue, 23 Nov 2021 07:59:49 +0000 (08:59 +0100)]
pvescheduler: use private sub instead of code-ref

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopvescheduler: fix potential stall on full shutdown
Thomas Lamprecht [Tue, 23 Nov 2021 07:58:16 +0000 (08:58 +0100)]
pvescheduler: fix potential stall on full shutdown

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-6
Thomas Lamprecht [Mon, 22 Nov 2021 19:32:25 +0000 (20:32 +0100)]
bump version to 7.1-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopvescheduler: record some todos and small cleanup
Thomas Lamprecht [Mon, 22 Nov 2021 19:25:34 +0000 (20:25 +0100)]
pvescheduler: record some todos and small cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopvescheduler: make jobs tracking more flexible, rework stop
Thomas Lamprecht [Mon, 22 Nov 2021 19:15:29 +0000 (20:15 +0100)]
pvescheduler: make jobs tracking more flexible, rework stop

Avoid hard-coding the current implication of the replication stack to
not get started again until the old worker is done..

We still apply the same check, but changing that to let the jobs have
control is rather easy now.

Also rework the stop logic, send terminate to _all_ workers and make
the timeout a actual shared one (not first gets all, remaining get
kill) and send a kill to the stuck, leftover ones in one go at the
end, including some logging so that the admin can actually know about
this non-ideal situation.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopvescheduler: do not delay restart artifically
Thomas Lamprecht [Mon, 22 Nov 2021 19:14:40 +0000 (20:14 +0100)]
pvescheduler: do not delay restart artifically

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopvescheduler: implement graceful reloading
Dominik Csapak [Thu, 18 Nov 2021 13:28:31 +0000 (14:28 +0100)]
pvescheduler: implement graceful reloading

utilize PVE::Daemons 'hup' functionality to reload gracefully.

Leaves the children running (if any) and give them to the new instance
via ENV variables. After loading, check if they are still around

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agopvescheduler: reworking child pid tracking
Dominik Csapak [Thu, 18 Nov 2021 13:28:30 +0000 (14:28 +0100)]
pvescheduler: reworking child pid tracking

previously, systemd timers were responsible for running replication jobs.
those timers would not restart if the previous one is still running.

though trying again while it is running does no harm really, it spams
the log with errors about not being able to acquire the correct lock

to fix this, we rework the handling of child processes such that we only
start one per loop if there is currently none running. for that,
introduce the types of forks we do and allow one child process per type
(for now, we have 'jobs' and 'replication' as types)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agopvescheduler: catch errors in forked childs
Dominik Csapak [Thu, 18 Nov 2021 13:28:29 +0000 (14:28 +0100)]
pvescheduler: catch errors in forked childs

if '$sub' dies, the error handler of PVE::Daemon triggers, which
initiates a shutdown of the child, resulting in confusing error logs
(e.g. 'got shutdown request, signal running jobs to stop')

instead, run it under 'eval' and print the error to the sylog instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/openID realm: allow to edit acr values
Thomas Lamprecht [Fri, 19 Nov 2021 06:30:38 +0000 (07:30 +0100)]
ui: dc/openID realm: allow to edit acr values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/openID realm: allow to edit prompt
Thomas Lamprecht [Fri, 19 Nov 2021 06:30:30 +0000 (07:30 +0100)]
ui: dc/openID realm: allow to edit prompt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/openID realm: allow to edit scopes
Thomas Lamprecht [Fri, 19 Nov 2021 06:30:14 +0000 (07:30 +0100)]
ui: dc/openID realm: allow to edit scopes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: openID: make username-claim field editable for arbitrary values
Thomas Lamprecht [Fri, 19 Nov 2021 06:04:38 +0000 (07:04 +0100)]
ui: openID: make username-claim field editable for arbitrary values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: backup: code reduction
Thomas Lamprecht [Wed, 17 Nov 2021 14:57:50 +0000 (15:57 +0100)]
api: backup: code reduction

had it lying around and did not felt condensed/code-golfed to me,
rather a bit more expressive (surely biased though)..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-5
Thomas Lamprecht [Wed, 17 Nov 2021 14:37:18 +0000 (15:37 +0100)]
bump version to 7.1-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: backup: add comment regarding normalizing DOW list
Thomas Lamprecht [Wed, 17 Nov 2021 14:36:04 +0000 (15:36 +0100)]
api: backup: add comment regarding normalizing DOW list

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: backup: normalize 'dow' format when converting
Dominik Csapak [Wed, 17 Nov 2021 14:21:01 +0000 (15:21 +0100)]
api: backup: normalize 'dow' format when converting

the old web ui sends the days as seperate parameters, which will
be concatenated by a null-byte in the api, causing it to land it this
way in the jobs.cfg

to fix this, split+join the list to get a well-formed dow list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agofix use statement
Fabian Grünbichler [Wed, 17 Nov 2021 12:52:19 +0000 (13:52 +0100)]
fix use statement

else this happens:

"Use of inherited AUTOLOAD for non-method PVE::API2::Backup::uuid() is
no longer allowed at /usr/share/perl5/PVE/API2/Backup.pm line 198.
(500)"

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoapi: backup: correclty use uuid package
Dominik Csapak [Wed, 17 Nov 2021 13:52:51 +0000 (14:52 +0100)]
api: backup: correclty use uuid package

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 7.1-4
Thomas Lamprecht [Tue, 16 Nov 2021 13:09:12 +0000 (14:09 +0100)]
bump version to 7.1-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu: disk edit: drop label widths from advanced columns
Thomas Lamprecht [Tue, 16 Nov 2021 13:17:42 +0000 (14:17 +0100)]
ui: qemu: disk edit: drop label widths from advanced columns

this is a historical left over from the time when the bandwidth
limits weren't in their own, separate tab, as there we got quite
long labels and we synced the width up for the remaining fields to
avoid that it looks to much off.

Luckily not required anymore, so just drop it for non BW fields.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: ceph: osd: handle edge case with dead node
Fabian Ebner [Tue, 16 Nov 2021 13:08:22 +0000 (14:08 +0100)]
ui: ceph: osd: handle edge case with dead node

If there is a left-over entry for a dead node in the ceph osd tree
the panel wouldn't show and produce an
    Uncaught TypeError: data.versions is undefined
because of an access
    node.version = data.versions[node.name];
further below (not visible in the patch itself).

AFAICT, the same issue would also happen when something went wrong
with getting the broadcasted ceph-versions, or when a node is part
of Ceph, but not PVE.

Handle the situation gracefully by always initializing data.versions.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: qemu/HDEdit: add 'aio' advanced option
Dominik Csapak [Tue, 16 Nov 2021 12:48:58 +0000 (13:48 +0100)]
ui: qemu/HDEdit: add 'aio' advanced option

so that users can change it more easily if necessary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: backup views: disable remove button on protected backups
Thomas Lamprecht [Tue, 16 Nov 2021 12:24:23 +0000 (13:24 +0100)]
ui: backup views: disable remove button on protected backups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: make protected column header use the icon only
Thomas Lamprecht [Tue, 16 Nov 2021 12:22:26 +0000 (13:22 +0100)]
ui: make protected column header use the icon only

to avoid using to much space, as the icon appears on hitting "change
protection" and the tooltip is set to "Protected" it should be still
quite clear.

Further UX improvement can be made by adding a context menu with can
use words for all actions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: render 'protected' column as icon and enable sorting
Dominik Csapak [Tue, 16 Nov 2021 11:20:36 +0000 (12:20 +0100)]
ui: render 'protected' column as icon and enable sorting

instead of 'Yes' and 'No', render the same icon as in pbs for protected
backups, and leave the column empty otherwise

this makes the difference much more visible and is more consistent with
how we present that flag in pbs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: grid/backup: refactor to more modern code-style
Thomas Lamprecht [Tue, 16 Nov 2021 12:15:10 +0000 (13:15 +0100)]
ui: grid/backup: refactor to more modern code-style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoupdate shipped aplinfo index
Thomas Lamprecht [Tue, 16 Nov 2021 10:13:18 +0000 (11:13 +0100)]
update shipped aplinfo index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-3
Thomas Lamprecht [Mon, 15 Nov 2021 16:32:36 +0000 (17:32 +0100)]
bump version to 7.1-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-2
Thomas Lamprecht [Mon, 15 Nov 2021 15:30:26 +0000 (16:30 +0100)]
bump version to 7.1-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu: fix enabling SSD-emulation
Thomas Lamprecht [Mon, 15 Nov 2021 16:32:09 +0000 (17:32 +0100)]
ui: qemu: fix enabling SSD-emulation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: apt/versions: track swtpm
Thomas Lamprecht [Mon, 15 Nov 2021 15:35:00 +0000 (16:35 +0100)]
api: apt/versions: track swtpm

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: metrics: use complete config for testing the connection
Dominik Csapak [Mon, 15 Nov 2021 13:57:19 +0000 (14:57 +0100)]
api: metrics: use complete config for testing the connection

not only the given parameters, e.g. at the moment, the gui will
never send a 'verify-certificate' parameter, even if set in the config

by using the complete resulting config, we test the actual settings.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: qemu/HD edit: more modern assembly of bandwidth values
Thomas Lamprecht [Mon, 15 Nov 2021 15:16:40 +0000 (16:16 +0100)]
ui: qemu/HD edit: more modern assembly of bandwidth values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agojobs: code/style cleanups
Thomas Lamprecht [Mon, 15 Nov 2021 15:12:42 +0000 (16:12 +0100)]
jobs: code/style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu: disk edit: expose read-only flag as advanced option
Thomas Lamprecht [Mon, 15 Nov 2021 09:36:20 +0000 (10:36 +0100)]
ui: qemu: disk edit: expose read-only flag as advanced option

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qemu: disk edit: refactor to more declarative style using bindings
Thomas Lamprecht [Mon, 15 Nov 2021 09:33:05 +0000 (10:33 +0100)]
ui: qemu: disk edit: refactor to more declarative style using bindings

would technically require a versioned dependency bump to widget
toolkit as the `clearOnDisable` flag is new in 3.4-2, but this is
really only for slight UX improvement, so avoid the hard dependency
bump..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.1-1
Thomas Lamprecht [Fri, 12 Nov 2021 17:49:40 +0000 (18:49 +0100)]
bump version to 7.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: qm: disk selection: add optional selection of unused
Aaron Lauterer [Fri, 12 Nov 2021 09:53:32 +0000 (10:53 +0100)]
ui: qm: disk selection: add optional selection of unused

With this optional setting, it is possible to allow the user to also
select 'unused' as a disk bus type.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: dc/options: fix renderer
Thomas Lamprecht [Fri, 12 Nov 2021 17:25:50 +0000 (18:25 +0100)]
ui: dc/options: fix renderer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: utils: refactor render_as_property_string
Thomas Lamprecht [Fri, 12 Nov 2021 17:25:36 +0000 (18:25 +0100)]
ui: utils: refactor render_as_property_string

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup: add retention column
Thomas Lamprecht [Fri, 12 Nov 2021 17:19:17 +0000 (18:19 +0100)]
ui: backup: add retention column

half of this patch has already applied with the last commit by
mistake..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: ceph: fixup optional chaining operator
Thomas Lamprecht [Fri, 12 Nov 2021 16:06:50 +0000 (17:06 +0100)]
ui: ceph: fixup optional chaining operator

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: ceph: add more compatibilty code for versions
Dominik Csapak [Fri, 12 Nov 2021 16:01:04 +0000 (17:01 +0100)]
ui: ceph: add more compatibilty code for versions

we now have to handle the version of 'old' nodes, as well as the
new nodes, which are missing the 'version' field in the metadata/osd call

so set the 'versions' object to a default empty object for osds
and get the host version directly from the treenode
(the parent node of the osd node)

also compare the host version in the dashboard by getting first the
new version field, and the old one as fallback.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agofollowup: code-style cleanup
Thomas Lamprecht [Fri, 12 Nov 2021 15:40:18 +0000 (16:40 +0100)]
followup: code-style cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agojobs: vzdump: fixup prune-schedule conf
Dominik Csapak [Fri, 12 Nov 2021 12:37:27 +0000 (13:37 +0100)]
jobs: vzdump: fixup prune-schedule conf

when we parse the config, we get the 'prune-backup' decoded, but the
api call we use wants it as a property string, so encode it here again

this fixes having jobs with prune options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi/services: add pvescheduler to the service list
Dominik Csapak [Fri, 12 Nov 2021 12:37:26 +0000 (13:37 +0100)]
api/services: add pvescheduler to the service list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi/services: sort service list
Dominik Csapak [Fri, 12 Nov 2021 12:37:25 +0000 (13:37 +0100)]
api/services: sort service list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/Backup: fix 'run now' button for jobs with comments
Dominik Csapak [Thu, 11 Nov 2021 12:04:22 +0000 (13:04 +0100)]
ui: dc/Backup: fix 'run now' button for jobs with comments

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agopartially fix #2285: ui: disk create: allow selecting partitions
Fabian Ebner [Wed, 6 Oct 2021 09:18:53 +0000 (11:18 +0200)]
partially fix #2285: ui: disk create: allow selecting partitions

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: zfs create: switch to using widget-toolkit's multiDiskSelector
Fabian Ebner [Wed, 6 Oct 2021 09:18:52 +0000 (11:18 +0200)]
ui: zfs create: switch to using widget-toolkit's multiDiskSelector

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopartially fix #2285: ui: ceph: allow selecting partitions
Fabian Ebner [Wed, 6 Oct 2021 09:18:51 +0000 (11:18 +0200)]
partially fix #2285: ui: ceph: allow selecting partitions

For DB and WAL disks, not only partitions will show up now, but one
more type of disk, that didn't show up before: Namely, GPT-partitioned
disks with any partitions detected as used.

It's confusing as the size shown is of the full disk, with no
indication that a new partition will be appended at the end. This
problem was already present before, but only affected GPT-partitioned
disks where no usage on a partition was detected.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoapi: ceph: create osd: set correct partition type
Fabian Ebner [Wed, 6 Oct 2021 09:18:50 +0000 (11:18 +0200)]
api: ceph: create osd: set correct partition type

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopartially fix #2285: api: ceph: create osd: allow using partitions
Fabian Ebner [Wed, 6 Oct 2021 09:18:49 +0000 (11:18 +0200)]
partially fix #2285: api: ceph: create osd: allow using partitions

Note that this does not only allow partitions to be used, but for DB
and WAL disks, one more type of disk, that wasn't allowed before.
Namely, GPT-partitioned disks with any partitions detected as used.
The reason is get_disks' behavior:
  * Without $include_partitions=1, the disk will have the same usage
    as it's first used partition, and thus wasn't allowed. (Except in
    the case that usage was LVM, where the check was bypassed, but
    luckily OSD creation just failed later because no Ceph volume
    group would be detected).
  * With $include_partitions=1, the disk will have usage 'partitions'
    and thus be allowed.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoapi: ceph: create osd: set correct parttype for DB/WAL
Fabian Ebner [Wed, 6 Oct 2021 09:18:48 +0000 (11:18 +0200)]
api: ceph: create osd: set correct parttype for DB/WAL

The get_ceph_journals function in pve-storage uses this information.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobump version to 7.0-15
Thomas Lamprecht [Thu, 11 Nov 2021 20:37:10 +0000 (21:37 +0100)]
bump version to 7.0-15

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: bump versioned dependency on proxmox-widget-toolkit to 3.4-1
Thomas Lamprecht [Thu, 11 Nov 2021 20:39:21 +0000 (21:39 +0100)]
d/control: bump versioned dependency on proxmox-widget-toolkit to 3.4-1

to have new TFA related widgets available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: bump versioned dependency on libpve-access-control-perl
Thomas Lamprecht [Thu, 11 Nov 2021 20:38:38 +0000 (21:38 +0100)]
d/control: bump versioned dependency on libpve-access-control-perl

to ensure we're compatible regarding TFA stuff

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agojobs: rename function to better distinguish job state and task status
Fabian Ebner [Thu, 11 Nov 2021 15:17:45 +0000 (16:17 +0100)]
jobs: rename function to better distinguish job state and task status

Also, default to 'internal error' if the task status within the lock
is undef, which shouldn't actually be possible.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agojobs: started_job: rename variable to $msg
Fabian Ebner [Thu, 11 Nov 2021 15:17:44 +0000 (16:17 +0100)]
jobs: started_job: rename variable to $msg

it's not always an error, but can also be 'OK'.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopvescheduler: simplify code for sleep time calculation
Fabian Ebner [Thu, 11 Nov 2021 15:17:43 +0000 (16:17 +0100)]
pvescheduler: simplify code for sleep time calculation

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: dc options: fix indentation
Thomas Lamprecht [Thu, 11 Nov 2021 19:35:20 +0000 (20:35 +0100)]
ui: dc options: fix indentation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: tfa: include cluster or node name in issuer
Thomas Lamprecht [Thu, 11 Nov 2021 19:30:25 +0000 (20:30 +0100)]
ui: tfa: include cluster or node name in issuer

As else people may have a hard time of figuring out for which host a
factor is valid.

As a factor is valid for every cluster node we prefer the cluster
name and for single-nodes we use the node name as fallback.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: index: set Proxmox.NodeName variable
Thomas Lamprecht [Thu, 11 Nov 2021 19:07:23 +0000 (20:07 +0100)]
ui: index: set Proxmox.NodeName variable

similar to PBS. This doesn't gives unauthenticated users more info as
we already set it in the title element anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup view: move tbar schedule-sim button to the right
Thomas Lamprecht [Thu, 11 Nov 2021 19:52:24 +0000 (20:52 +0100)]
ui: backup view: move tbar schedule-sim button to the right

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: schedule sim: slight title adaption
Thomas Lamprecht [Thu, 11 Nov 2021 19:51:58 +0000 (20:51 +0100)]
ui: schedule sim: slight title adaption

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: schedule sim: fix right alignment of simulate button
Thomas Lamprecht [Thu, 11 Nov 2021 19:51:04 +0000 (20:51 +0100)]
ui: schedule sim: fix right alignment of simulate button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: cluster: add jobs sub-directory index and set its permissions
Thomas Lamprecht [Thu, 11 Nov 2021 20:00:08 +0000 (21:00 +0100)]
api: cluster: add jobs sub-directory index and set its permissions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: cluster: sort index
Thomas Lamprecht [Thu, 11 Nov 2021 19:59:24 +0000 (20:59 +0100)]
api: cluster: sort index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocalendar event simulator: rename number parameter to iterations
Thomas Lamprecht [Thu, 11 Nov 2021 19:49:43 +0000 (20:49 +0100)]
calendar event simulator: rename number parameter to iterations

in sync with the same option of `systemd-analyze calendar` and number
is so generic.

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