]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
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>
2 years agoremove pvescheduler manpage generation
Dominik Csapak [Thu, 11 Nov 2021 11:07:09 +0000 (12:07 +0100)]
remove pvescheduler manpage generation

pve-docs-generator does this now

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/Backup: add schedule simulator button
Dominik Csapak [Thu, 11 Nov 2021 11:07:08 +0000 (12:07 +0100)]
ui: dc/Backup: add schedule simulator button

so that a user can simply simulate the schedule

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: cluster: add jobs/schedule-analyze api call
Dominik Csapak [Thu, 11 Nov 2021 11:07:07 +0000 (12:07 +0100)]
api: cluster: add jobs/schedule-analyze api call

a simple api call to simulate calendar event triggers
takes a schedule, an optional number (default 10), an optional starttime
(default 'now') and returns a list with unix timestamps, as well as
humanly readable utc timestamps.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/Backup: fix comment sort
Dominik Csapak [Thu, 11 Nov 2021 11:07:06 +0000 (12:07 +0100)]
ui: dc/Backup: fix comment sort

without this, jobs without comments will not be included in the sort
properly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: dc/Backup: never show id input field, autogenerate id
Dominik Csapak [Thu, 11 Nov 2021 11:07:05 +0000 (12:07 +0100)]
ui: dc/Backup: never show id input field, autogenerate id

similar to pbs sync jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agod/control: bump versioned dependency on libpve-cluster-api-perl
Thomas Lamprecht [Thu, 11 Nov 2021 17:12:49 +0000 (18:12 +0100)]
d/control: bump versioned dependency on libpve-cluster-api-perl

for new webauthn config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopveceph: add 'fs destroy' command
Dominik Csapak [Mon, 25 Oct 2021 14:01:38 +0000 (16:01 +0200)]
pveceph: add 'fs destroy' command

with 'remove-storages' and 'remove-pools' as optional parameters

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: ceph/fs: allow creating multiple cephfs
Dominik Csapak [Mon, 25 Oct 2021 14:01:37 +0000 (16:01 +0200)]
ui: ceph/fs: allow creating multiple cephfs

but only if there are any standby mds

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: storage/cephfs: make ceph fs selectable
Dominik Csapak [Mon, 25 Oct 2021 14:01:36 +0000 (16:01 +0200)]
ui: storage/cephfs: make ceph fs selectable

by adding a CephFSSelector and using it in the CephFSEdit window
(similar to the poolselector/textfield)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: cephfs: add 'fs-name' for cephfs storage
Dominik Csapak [Mon, 25 Oct 2021 14:01:35 +0000 (16:01 +0200)]
api: cephfs: add 'fs-name' for cephfs storage

so that we can uniquely identify the cephfs (in case of multiple)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: ceph/fs: show fs for active mds
Dominik Csapak [Mon, 25 Oct 2021 14:01:34 +0000 (16:01 +0200)]
ui: ceph/fs: show fs for active mds

so that the user can see which mds is responsible for which cephfs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: ceph/ServiceList: refactor controller out
Dominik Csapak [Mon, 25 Oct 2021 14:01:33 +0000 (16:01 +0200)]
ui: ceph/ServiceList: refactor controller out

we want to reuse that controller type by overriding some functionality
in the future, so factor it out.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: cephfs: add fs_name to 'is mds active' check
Dominik Csapak [Mon, 25 Oct 2021 14:01:32 +0000 (16:01 +0200)]
api: cephfs: add fs_name to 'is mds active' check

so that we check the mds for the correct cephfs we just added

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: cephfs: more checks on fs create
Dominik Csapak [Mon, 25 Oct 2021 14:01:31 +0000 (16:01 +0200)]
api: cephfs: more checks on fs create

namely if the fs is already existing, and if there is currently a
standby mds that can be used for the new fs
previosuly, only one cephfs was possible, so these checks were not
necessary. now with pacific, it is possible to have multiple cephfs'
and we should check for those.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: cephfs: refactor {ls, create}_fs
Dominik Csapak [Mon, 25 Oct 2021 14:01:30 +0000 (16:01 +0200)]
api: cephfs: refactor {ls, create}_fs

no function change intended

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: ceph: catch missing version for service list
Dominik Csapak [Mon, 25 Oct 2021 14:01:29 +0000 (16:01 +0200)]
ui: ceph: catch missing version for service list

when a daemon is stopped, the version here is 'undefined'. catch that
instead of letting the template renderer run into an error.
this fixes the rendering of the grid backgrounds

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: ceph-mds: get mds state when multple ceph filesystems exist
Dominik Csapak [Mon, 25 Oct 2021 14:01:28 +0000 (16:01 +0200)]
api: ceph-mds: get mds state when multple ceph filesystems exist

by iterating over all of them and saving the name to the active ones
this fixes the issue that an mds that is assigned to not the first
fs in the list gets wrongly shown as offline

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: form/CalendarEvent: remove 'first saturday each month' example
Thomas Lamprecht [Thu, 11 Nov 2021 16:50:45 +0000 (17:50 +0100)]
ui: form/CalendarEvent: remove 'first saturday each month' example

Originally-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/options: show depreacation notice in u2f settings
Thomas Lamprecht [Thu, 11 Nov 2021 16:44:03 +0000 (17:44 +0100)]
ui: dc/options: show depreacation notice in u2f settings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: dc/options: display WebAuthn and add editor
Thomas Lamprecht [Thu, 11 Nov 2021 16:38:10 +0000 (17:38 +0100)]
ui: dc/options: display WebAuthn and add editor

mostly copied 1:1 from PBS, we could move this to widget toolkit
sometimes though..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agowww: redirect user TFA button to TFA view
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:14 +0000 (12:27 +0100)]
www: redirect user TFA button to TFA view

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agowww: add TFA view to config
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:13 +0000 (12:27 +0100)]
www: add TFA view to config

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agowww: use af-address-book-o for realms
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:12 +0000 (12:27 +0100)]
www: use af-address-book-o for realms

we do this in PBS, and use the key for TFA

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agowww: switch to new tfa login format
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:11 +0000 (12:27 +0100)]
www: switch to new tfa login format

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agowww: use UserSelector from wtk
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:09 +0000 (12:27 +0100)]
www: use UserSelector from wtk

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agowww: use render_u2f_error from wtk
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:08 +0000 (12:27 +0100)]
www: use render_u2f_error from wtk

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoui: calendar event: fix descriptions for examples
Fabian Ebner [Thu, 11 Nov 2021 09:00:55 +0000 (10:00 +0100)]
ui: calendar event: fix descriptions for examples

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agodepend on and use libjs-qrcodejs
Wolfgang Bumiller [Wed, 10 Nov 2021 12:49:04 +0000 (13:49 +0100)]
depend on and use libjs-qrcodejs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: storage: avoid deleting preallocation setting on creation
Thomas Lamprecht [Wed, 10 Nov 2021 21:03:05 +0000 (22:03 +0100)]
ui: storage: avoid deleting preallocation setting on creation

reported in the forum: https://forum.proxmox.com/threads/.99471/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopvestatd: broadcast version info
Wolfgang Bumiller [Wed, 10 Nov 2021 14:11:46 +0000 (15:11 +0100)]
pvestatd: broadcast version info

broadcast the built-in, statically available version info, e.g.:
{
   "release" : "7.0",
   "repoid" : "3ce05d40",
   "version" : "7.0-14"
}

We can expand this by more actual package version info in the future,
but that certainly needs more elaborate update control mechanisms as
the oneshot at boot we have now.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: form/calendar event: add some more complex examples
Thomas Lamprecht [Wed, 10 Nov 2021 20:32:14 +0000 (21:32 +0100)]
ui: form/calendar event: add some more complex examples

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: form/calendar event: increase width of combobox picker
Thomas Lamprecht [Wed, 10 Nov 2021 20:31:16 +0000 (21:31 +0100)]
ui: form/calendar event: increase width of combobox picker

makes it more readable and will allow for some more complex examples
without wrapping (which is hard to grasp without row styling
otherwise)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup job: limit ID to 20 chars for now
Thomas Lamprecht [Wed, 10 Nov 2021 20:29:38 +0000 (21:29 +0100)]
ui: backup job: limit ID to 20 chars for now

we're thinking of maybe just auto-filling it or allowing to edit it,
in any way, the comment field can/should be used for longer, free
form info.

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