]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
11 months agoui: qga: Add option to turn off QGA fs-freeze/-thaw on backup
Christoph Heiss [Thu, 23 Mar 2023 11:02:47 +0000 (12:02 +0100)]
ui: qga: Add option to turn off QGA fs-freeze/-thaw on backup

Adds a default-on checkbox to the QEMU Guest Agent feature selector
controlling the 'fs-freeze-on-backup' option. If unchecked, an
additional warning is displayed that backups can potentially corrupt
with this setting off.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
11 months agofix #3428: cloud-init: add toggle for automatic upgrades
Leo Nunner [Thu, 4 May 2023 10:55:02 +0000 (12:55 +0200)]
fix #3428: cloud-init: add toggle for automatic upgrades

to control the newly introduced "ciupgrade" config parameter.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
11 months agoui: cloudinit: match backend privilege checks
Fabian Grünbichler [Wed, 3 May 2023 07:52:01 +0000 (09:52 +0200)]
ui: cloudinit: match backend privilege checks

the cloudinit options except for ipconfig are all modifiable with just
"VM.Config.Cloudinit".

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: user view: add 'Unlock TFA' button
Wolfgang Bumiller [Tue, 6 Jun 2023 10:05:05 +0000 (12:05 +0200)]
ui: user view: add 'Unlock TFA' button

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agoui: user view: show tfa lock status
Wolfgang Bumiller [Tue, 6 Jun 2023 10:05:04 +0000 (12:05 +0200)]
ui: user view: show tfa lock status

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agoapi2: network: improve code readability
Fabian Grünbichler [Wed, 7 Jun 2023 09:49:07 +0000 (11:49 +0200)]
api2: network: improve code readability

nested conditionals stretching over multiple lines are always a bit hard to
untangle, so let's make it explicit:

1. is the interface a bridge
2. if it is, are we looking for one?
3. is it something else that we are looking for?

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoapi2: network: re-use existing variable tfilter
Fabian Grünbichler [Wed, 7 Jun 2023 09:40:21 +0000 (11:40 +0200)]
api2: network: re-use existing variable tfilter

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoapi2: network: check permissions for local bridges
Alexandre Derumier [Tue, 6 Jun 2023 13:19:20 +0000 (15:19 +0200)]
api2: network: check permissions for local bridges

always check permissions, also when not filtered

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 months agoapi: backup: check param permission before pool for consistency
Thomas Lamprecht [Wed, 7 Jun 2023 14:52:38 +0000 (16:52 +0200)]
api: backup: check param permission before pool for consistency

Like it did here before 9f65a584 ("api: backup: update: check
permissions of delete params too") and like it does in the create
case.

This should not have a practical effect, it's mostly for consistency
and to avoid anybody reading anything into the different orders of
checks between update and create.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: backup/vzdump: add get_storage_param helper
Fiona Ebner [Wed, 16 Nov 2022 14:04:35 +0000 (15:04 +0100)]
api: backup/vzdump: add get_storage_param helper

to capture the logic in a single place.

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: require Datastore.Allocate on storage
Fiona Ebner [Wed, 16 Nov 2022 14:04:34 +0000 (15:04 +0100)]
api: backup: require Datastore.Allocate on storage

In particular this ensures that the user is allowed to remove data on
the storage, because configuring low retention results in removed
older backups. Of course setting the storage itself also needs to
require the same privilege then.

This is a breaking API change, but it seems sensible to require
permissions on the affected storage too.

Jobs with a dumpdir setting can be configured by root only.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: update: check permissions of delete params too
Fiona Ebner [Wed, 16 Nov 2022 14:04:33 +0000 (15:04 +0100)]
api: backup: update: check permissions of delete params too

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: update: allow only deleting
Fiona Ebner [Wed, 16 Nov 2022 14:04:32 +0000 (15:04 +0100)]
api: backup: update: allow only deleting

Previously, it was required to set something at the same time.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapi: backup: update: turn delete into a hash
Fiona Ebner [Wed, 16 Nov 2022 14:04:31 +0000 (15:04 +0100)]
api: backup: update: turn delete into a hash

makes it easier to check for keys in the following patches.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoui: firewall: refactor privilege checks and prevent double click
Dominik Csapak [Wed, 7 Jun 2023 07:18:48 +0000 (09:18 +0200)]
ui: firewall: refactor privilege checks and prevent double click

factor out the relevant privilege checks in a variable and reuse that,
also add the check in the run_editor (or wrap it with a check) so that
the edit windows don't open with a double click without those privileges

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: firewall panel/grids : add privilege checks on buttons
Alexandre Derumier [Mon, 27 Mar 2023 10:18:22 +0000 (12:18 +0200)]
ui: firewall panel/grids : add privilege checks on buttons

Use enableFn to enable/disable the toolbar buttons according to the
existing privileges.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
[ D: adapted commit subject and added commit message ]
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: qemu|lxc : fix firewall menu caps
Alexandre Derumier [Mon, 27 Mar 2023 10:18:21 +0000 (12:18 +0200)]
ui: qemu|lxc : fix firewall menu caps

The current VM.Console cap is wrong.

Only log panel needs VM.Console, the other ones only need VM.Audit.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
[ D: rewrite commit message a bit ]
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: clean up remnants of in-tree font-awesome files
Christoph Heiss [Wed, 3 May 2023 09:50:40 +0000 (11:50 +0200)]
ui: clean up remnants of in-tree font-awesome files

Commit e97c2601 ("change to debian font-awesome") removed the usage of
the in-tree font-awesome files, replacing them with the Debian package.
Thus clear out these leftovers out, as they are completely usused.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoaplinfo: ensure keyring is in binary format
Thomas Lamprecht [Wed, 7 Jun 2023 09:49:33 +0000 (11:49 +0200)]
aplinfo: ensure keyring is in binary format

GnuPG chokes on it otherwise...

Fixes: 00ea2e4b ("aplinfo: use sequioa for key ring generation")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoappliances: switch over to Proxmox VE 8 index
Thomas Lamprecht [Wed, 7 Jun 2023 08:59:12 +0000 (10:59 +0200)]
appliances: switch over to Proxmox VE 8 index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: bump versioned dependency for libpve-access-control-perl
Thomas Lamprecht [Wed, 7 Jun 2023 09:36:19 +0000 (11:36 +0200)]
d/control: bump versioned dependency for libpve-access-control-perl

To ensure that the new realm-sync modules are available.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: add Realm Sync panel
Dominik Csapak [Tue, 17 Jan 2023 11:46:59 +0000 (12:46 +0100)]
ui: add Realm Sync panel

a typical CRUD panel for adding/editing/removing realm sync jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: add realm-sync crud api to /cluster/jobs
Dominik Csapak [Tue, 17 Jan 2023 11:46:58 +0000 (12:46 +0100)]
api: add realm-sync crud api to /cluster/jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ T: fix-up realm sync module namespace, moved to PVE::API2::Jobs ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoJobs: add RealmSync Plugin and register it
Dominik Csapak [Tue, 17 Jan 2023 11:46:57 +0000 (12:46 +0100)]
Jobs: add RealmSync Plugin and register it

so that realmsync jobs get executed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoJobs: include existing types in state file regex for deletion
Dominik Csapak [Tue, 17 Jan 2023 11:46:56 +0000 (12:46 +0100)]
Jobs: include existing types in state file regex for deletion

otherwise, we cannot correctly match types that contain a hyphen,
since the id itself can also contain those.

creating a regex where the first part is the concrete allowed
types followed by a hyphen + id can also match those.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofix #4678: ui: don't sort storage backup content by vmid by default
Dominik Csapak [Tue, 25 Apr 2023 07:21:28 +0000 (09:21 +0200)]
fix #4678: ui: don't sort storage backup content by vmid by default

instead, add the vmid as extra column, so that the user can still sort
by vmid if they wish to

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agoui: storage: backup: refactor extraColumns assignment
Dominik Csapak [Tue, 25 Apr 2023 07:21:27 +0000 (09:21 +0200)]
ui: storage: backup: refactor extraColumns assignment

makes it easier to add columns, and uses less indentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agofix #4605: drop rsyncable from zstd invocation
Fabian Grünbichler [Mon, 17 Apr 2023 07:04:18 +0000 (09:04 +0200)]
fix #4605: drop rsyncable from zstd invocation

This reverts 7420d7ff ("zstd: add --rsyncable flag")

That flag causes severe slow downs on fast disks, and we still have
other rsyncable compressors available.

It was originally added based on wrong documentation that made the
performance impact look a lot smaller than it actually is.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoceph CLI: osd details: code/style cleanups
Thomas Lamprecht [Tue, 6 Jun 2023 16:21:38 +0000 (18:21 +0200)]
ceph CLI: osd details: code/style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveceph: add osd details command
Aaron Lauterer [Mon, 19 Dec 2022 14:46:34 +0000 (15:46 +0100)]
pveceph: add osd details command

To provide similar output on the CLI as is possible in the GUI/API
regaring OSD details.

By default (output-format=text) a more concise output is shown. Using
json or yaml as output format will print all the available data.

The 'verbose' flag causes json-pretty output to be used.

The functionality is split between the actual function and the output
formatter as not all options/parameters are available in each.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
11 months agoui: fix duplicate references when using multiple disk storage selectors
Dominik Csapak [Tue, 21 Mar 2023 13:27:11 +0000 (14:27 +0100)]
ui: fix duplicate references when using multiple disk storage selectors

by removing the references and change the one place where we used one
of the references.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofix #2641: ui: storage: expose CIFS subdir parameter on add
Leo Nunner [Wed, 8 Feb 2023 09:05:26 +0000 (10:05 +0100)]
fix #2641: ui: storage: expose CIFS subdir parameter on add

makes it possible to optionally set the 'subdir' parameter when
adding a new CIFS storage.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
 [ T: reword/flow commit message slightly ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: nodes: add 'migrateall' to index
Fiona Ebner [Wed, 29 Mar 2023 11:36:42 +0000 (13:36 +0200)]
api: nodes: add 'migrateall' to index

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoui: add beta text with link to bugtracker
Thomas Lamprecht [Tue, 6 Jun 2023 07:49:23 +0000 (09:49 +0200)]
ui: add beta text with link to bugtracker

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~7
Thomas Lamprecht [Mon, 5 Jun 2023 16:54:12 +0000 (18:54 +0200)]
bump version to 8.0.0~7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: dc summary: code style fix
Thomas Lamprecht [Mon, 5 Jun 2023 16:14:00 +0000 (18:14 +0200)]
ui: dc summary: code style fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph install: add pmx-hint class to hint field-label
Thomas Lamprecht [Mon, 5 Jun 2023 16:12:22 +0000 (18:12 +0200)]
ui: ceph install: add pmx-hint class to hint field-label

looks a bit odd as the background it produces goes over the text, but
is the least invasive method to apply something like this, and
highlighting the whole thing is too flashy here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph install: add hints depending on selected repo and subscriptions
Thomas Lamprecht [Mon, 5 Jun 2023 16:03:46 +0000 (18:03 +0200)]
ui: ceph install: add hints depending on selected repo and subscriptions

None hint required if all nodes have subscriptions and enterprise
repo is selected, but otherwise give some hints for better UX and to
(hopefully) reduce the chance for mishaps.

We might want to highlight the label to improve visibility tough.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph install wizard: allow selecting repository
Thomas Lamprecht [Mon, 5 Jun 2023 16:02:41 +0000 (18:02 +0200)]
ui: ceph install wizard: allow selecting repository

provide a second combo box that allows one to select which specific
repository out of enterprise, no-subscription or test one would like
to use.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph install: increase dimension of window with 4:3 ratio
Thomas Lamprecht [Mon, 5 Jun 2023 16:12:02 +0000 (18:12 +0200)]
ui: ceph install: increase dimension of window with 4:3 ratio

especially the console window is rather on the small side otherwise..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph: fix code indentation in onShow of wizard
Thomas Lamprecht [Mon, 5 Jun 2023 11:42:47 +0000 (13:42 +0200)]
ui: ceph: fix code indentation in onShow of wizard

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoceph install: output some hints depending repo choice and subscription
Thomas Lamprecht [Mon, 5 Jun 2023 11:23:38 +0000 (13:23 +0200)]
ceph install: output some hints depending repo choice and subscription

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveceph: support new enterprise repository
Thomas Lamprecht [Mon, 5 Jun 2023 11:07:48 +0000 (13:07 +0200)]
pveceph: support new enterprise repository

With Proxmox VE 8, we'll have support for a enterprise ceph repo,
accessed through Proxmox VE subscriptions, to provide more broadly
tested ceph updates for production setups.

Replace the test-repository parameter with an actual enum of
selectable repo types for:

- test (same as previously selected through setting test-repository)
- no-subscription (the previous default, then named "main")
- enterprise (new and the default now, recommended for production)

Note that writing the auth-part is a bit hacky and might/should be
improved.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agocli: subscription: simplify printing output in get command
Thomas Lamprecht [Mon, 5 Jun 2023 11:27:01 +0000 (13:27 +0200)]
cli: subscription: simplify printing output in get command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: subscription: factor out check for cache being valid
Thomas Lamprecht [Mon, 5 Jun 2023 11:25:42 +0000 (13:25 +0200)]
api: subscription: factor out check for cache being valid

multi-line post-if's are against our style guide.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapi: subscription: style cleanups
Thomas Lamprecht [Mon, 5 Jun 2023 11:25:17 +0000 (13:25 +0200)]
api: subscription: style cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: USB selector: fix typo
Thomas Lamprecht [Mon, 5 Jun 2023 10:15:09 +0000 (12:15 +0200)]
ui: USB selector: fix typo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~6
Wolfgang Bumiller [Mon, 5 Jun 2023 08:05:38 +0000 (10:05 +0200)]
bump version to 8.0.0~6

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agovzdump: add comment about why we still split_args for arrays
Wolfgang Bumiller [Mon, 5 Jun 2023 08:02:58 +0000 (10:02 +0200)]
vzdump: add comment about why we still split_args for arrays

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agovzdump: prepare 'exclude-path' for array format
Dominik Csapak [Fri, 12 May 2023 12:23:51 +0000 (14:23 +0200)]
vzdump: prepare 'exclude-path' for array format

we want to move the 'exclude-path' to an array format (from 'string-alist')
prepare the code that it can be either a string or a list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 months agobump version to 8.0.0~5
Thomas Lamprecht [Wed, 31 May 2023 16:19:51 +0000 (18:19 +0200)]
bump version to 8.0.0~5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopve7to8: cope with native version of proxmox-ve package
Thomas Lamprecht [Wed, 31 May 2023 16:19:21 +0000 (18:19 +0200)]
pve7to8: cope with native version of proxmox-ve package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~4
Thomas Lamprecht [Wed, 31 May 2023 16:10:20 +0000 (18:10 +0200)]
bump version to 8.0.0~4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agodrop outdated pve6to7 upgrade checker script for bookworm
Thomas Lamprecht [Wed, 31 May 2023 16:02:39 +0000 (18:02 +0200)]
drop outdated pve6to7 upgrade checker script for bookworm

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoupdate source of pve7to8 upgrade checker script
Thomas Lamprecht [Wed, 31 May 2023 08:16:15 +0000 (10:16 +0200)]
update source of  pve7to8 upgrade checker script

squashed from the respective commits of the stable-7 branch, which is
the canonical source for this specific script.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: split list of CLI sources over multiple lines
Thomas Lamprecht [Wed, 31 May 2023 07:16:55 +0000 (09:16 +0200)]
buildsys: split list of CLI sources over multiple lines

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~3
Thomas Lamprecht [Tue, 30 May 2023 13:32:35 +0000 (15:32 +0200)]
bump version to 8.0.0~3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoui: ceph install wizard: drop releases not supported for Proxmox VE 8
Thomas Lamprecht [Tue, 30 May 2023 13:31:46 +0000 (15:31 +0200)]
ui: ceph install wizard: drop releases not supported for Proxmox VE 8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~2
Thomas Lamprecht [Tue, 30 May 2023 13:19:29 +0000 (15:19 +0200)]
bump version to 8.0.0~2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveceph: drop special for octopus and pacific, unsupported in 8.x
Thomas Lamprecht [Tue, 30 May 2023 13:17:05 +0000 (15:17 +0200)]
pveceph: drop special for octopus and pacific, unsupported in 8.x

sort the package list while at it

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveceph: update Ceph releases and repo dist for Bookworm
Thomas Lamprecht [Tue, 30 May 2023 13:15:30 +0000 (15:15 +0200)]
pveceph: update Ceph releases and repo dist for Bookworm

We'll only support Quincy and newer in Bookworm, and Reef isn't yet
released.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopve sources: update dist to bookworm
Thomas Lamprecht [Tue, 30 May 2023 13:15:06 +0000 (15:15 +0200)]
pve sources: update dist to bookworm

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 8.0.0~1
Thomas Lamprecht [Mon, 29 May 2023 15:04:59 +0000 (17:04 +0200)]
bump version to 8.0.0~1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: define compat level via build-depends and raise to 13
Thomas Lamprecht [Mon, 29 May 2023 15:40:03 +0000 (17:40 +0200)]
d/control: define compat level via build-depends and raise to 13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoupdate/extend lintian-overrides for debhelper 13+
Thomas Lamprecht [Mon, 29 May 2023 14:15:57 +0000 (16:15 +0200)]
update/extend lintian-overrides for debhelper 13+

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: derive upload dist automatically and avoid bogus check
Thomas Lamprecht [Mon, 29 May 2023 16:23:40 +0000 (18:23 +0200)]
buildsys: derive upload dist automatically and avoid bogus check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: adapt extracting release to native versioning
Thomas Lamprecht [Mon, 29 May 2023 16:15:11 +0000 (18:15 +0200)]
buildsys: adapt extracting release to native versioning

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: do not depend on obsolete lsb-base
Thomas Lamprecht [Mon, 29 May 2023 13:49:44 +0000 (15:49 +0200)]
d/control: do not depend on obsolete lsb-base

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: don't depend on libc, just use debhelper ${shlib:Depends}
Thomas Lamprecht [Mon, 29 May 2023 13:49:27 +0000 (15:49 +0200)]
d/control: don't depend on libc, just use debhelper ${shlib:Depends}

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: apt-transport-https as separate package is gone
Thomas Lamprecht [Mon, 29 May 2023 13:44:22 +0000 (15:44 +0200)]
d/control: apt-transport-https as separate package is gone

just keep the versioned apt dependency, that alone ensures it and apt
1.5 got released on 24 Sep 2017, so just keep it for (or to avoid)
the real messed up installations

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/postinst: fix version format for apt auth config migration check
Thomas Lamprecht [Mon, 29 May 2023 13:41:35 +0000 (15:41 +0200)]
d/postinst: fix version format for apt auth config migration check

The mistake wasn't that bad, as we mostly checked for the migration
to often, i.e., for any update to the 7.2-X releases, not just until
7.2-11 was crossed (but with 7.3-X the check worked again as
indented).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: add missing Standards-Version fields
Thomas Lamprecht [Mon, 29 May 2023 13:41:07 +0000 (15:41 +0200)]
d/control: add missing Standards-Version fields

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: avoid versioned build-dependencies with a -1 revision
Thomas Lamprecht [Mon, 29 May 2023 13:40:10 +0000 (15:40 +0200)]
d/control: avoid versioned build-dependencies with a -1 revision

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/changelog: fix typos
Thomas Lamprecht [Mon, 29 May 2023 13:39:24 +0000 (15:39 +0200)]
d/changelog: fix typos

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: add DSC & sbuild convenience target
Thomas Lamprecht [Mon, 29 May 2023 13:33:38 +0000 (15:33 +0200)]
buildsys: add DSC & sbuild convenience target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: make build-dir generation atomic and versioned
Thomas Lamprecht [Mon, 29 May 2023 13:32:58 +0000 (15:32 +0200)]
buildsys: make build-dir generation atomic and versioned

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: use correct DEB_HOST_ARCH
Thomas Lamprecht [Mon, 29 May 2023 13:05:25 +0000 (15:05 +0200)]
buildsys: use correct DEB_HOST_ARCH

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: rework doc-gen cleanup and makefile inclusion
Thomas Lamprecht [Mon, 29 May 2023 12:56:23 +0000 (14:56 +0200)]
buildsys: rework doc-gen cleanup and makefile inclusion

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoexpand repoid to 16 chars and avoid querying git for it twice
Thomas Lamprecht [Mon, 29 May 2023 12:44:24 +0000 (14:44 +0200)]
expand repoid to 16 chars and avoid querying git for it twice

i.e., just reuse GITVERSION, and FWIW, the current ID length git
auto chooses is 9 chars, suggesting that 8 really was getting to
small. With 16 we got now 64 bits, that's plenty for the next few
years.

Document the format also (roughly) in the API schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomakefile: convert to use simple parenthesis
Thomas Lamprecht [Mon, 29 May 2023 12:11:36 +0000 (14:11 +0200)]
makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoaplinfo: add bookworm release key to trusted ones
Thomas Lamprecht [Mon, 29 May 2023 12:02:45 +0000 (14:02 +0200)]
aplinfo: add bookworm release key to trusted ones

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoaplinfo: use sequioa for key ring generation
Thomas Lamprecht [Mon, 29 May 2023 12:01:22 +0000 (14:01 +0200)]
aplinfo: use sequioa for key ring generation

The sq CLI tool's UX is such a fresh breath of air compared to gpg...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 7.4-4
Thomas Lamprecht [Sun, 28 May 2023 17:58:41 +0000 (19:58 +0200)]
bump version to 7.4-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomobile ui: statically import widget toolkit
Thomas Lamprecht [Sun, 28 May 2023 17:19:53 +0000 (19:19 +0200)]
mobile ui: statically import widget toolkit

as loading the whole wtk breaks the mobile ui and is
- not always trivial to fix
- a sisyphean task (in the future)
- we don't check this often, so breakage is likely to go unnoticed

I.e., just much simple to freeze this also in time..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomobile ui: eslint fixes
Thomas Lamprecht [Sun, 28 May 2023 17:03:20 +0000 (19:03 +0200)]
mobile ui: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomobile ui: adhere debug flag when loading sencha touch
Thomas Lamprecht [Sun, 28 May 2023 16:42:09 +0000 (18:42 +0200)]
mobile ui: adhere debug flag when loading sencha touch

not that this UI has _that_ much use, but mobile users might be happy
to only load 931 KB and not 3.6 MB (3.85 times as many)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomobile ui: implement dummy message box and scrip loader
Thomas Lamprecht [Sun, 28 May 2023 16:37:37 +0000 (18:37 +0200)]
mobile ui: implement dummy message box and scrip loader

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agowww: merge remaining touch files into mobile
Thomas Lamprecht [Sun, 28 May 2023 16:36:03 +0000 (18:36 +0200)]
www: merge remaining touch files into mobile

only the index and (empty) css files left-over, so just merge this to
where it belongs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agodrop local hosted sencha-touch source, depend on libjs-sencha-touch
Thomas Lamprecht [Sun, 28 May 2023 16:22:56 +0000 (18:22 +0200)]
drop local hosted sencha-touch source, depend on libjs-sencha-touch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveproxy: sort base dir mappings
Thomas Lamprecht [Sun, 28 May 2023 15:09:28 +0000 (17:09 +0200)]
pveproxy: sort base dir mappings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopvereport: add missing newline for style
Thomas Lamprecht [Fri, 26 May 2023 09:01:14 +0000 (11:01 +0200)]
pvereport: add missing newline for style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopveproxy: fix detecting mobile if enforced
Thomas Lamprecht [Sun, 28 May 2023 16:24:53 +0000 (18:24 +0200)]
pveproxy: fix detecting mobile if enforced

Fixes: f16342f37 ("proxy: cleanup getting index method")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agoui: backup restore: validate name
Fiona Ebner [Mon, 17 Apr 2023 07:09:14 +0000 (09:09 +0200)]
ui: backup restore: validate name

Use the same validation as the guest creation wizards do to catch
errors early, before sending the API request.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
12 months agoui: clone: validate name
Fiona Ebner [Mon, 17 Apr 2023 07:09:13 +0000 (09:09 +0200)]
ui: clone: validate name

As reported in the community forum[0], as opposed to VM/LXC creation,
there is no validation for the name in the clone dialog. Use the same
validation as the guest creation wizards do to catch errors early,
before sending the API request.

[0]: https://forum.proxmox.com/threads/125883/#post-549304

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
12 months agoui: enable gettext localisation for more user exposed strings
Daniel Koć [Sun, 16 Apr 2023 03:29:39 +0000 (05:29 +0200)]
ui: enable gettext localisation for more user exposed strings

Link: https://lists.proxmox.com/pipermail/pve-devel/2023-April/056588.html
Signed-off-by: Daniel Koć<daniel@xn--ko-wla.pl>
 [ T: rework subject & add S-o-b supplied by reply ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agoui: utils: monitor_ceph_installed: avoid setting nodename to localhost
Aaron Lauterer [Thu, 20 Apr 2023 12:31:41 +0000 (14:31 +0200)]
ui: utils: monitor_ceph_installed: avoid setting nodename to localhost

If a user is accessing the Ceph panel via Datacenter -> Ceph, then the
install & config wizard might be shown. The nodename that is passed to
the wizard  will decide the ID of the initial MON and MGR services.

Therefore, don't fall back to 'localhost' but the actual name of the
node to which we are connected to. The result will be that the first MON
and MGR will have the expected ID instead of 'localhost'.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
13 months agoproxy: cleanup getting index method
Thomas Lamprecht [Sat, 22 Apr 2023 07:47:29 +0000 (09:47 +0200)]
proxy: cleanup getting index method

- improve variable definition/use locality
- avoid some if's for some (mostly boolean) assignments, just use an
  expression

As long as we don't go overboard with code golfing it to extremely
terse, shorter code is always more readable, especially if
definition/use happens not dozens of lines apart.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agoproxy: sort directory registration calls
Thomas Lamprecht [Tue, 18 Apr 2023 06:21:28 +0000 (08:21 +0200)]
proxy: sort directory registration calls

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agoproxy: group and sort use statements
Thomas Lamprecht [Tue, 18 Apr 2023 06:20:51 +0000 (08:20 +0200)]
proxy: group and sort use statements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agofix #4627: ui: backup edit: don't deselect all guests on load
Dominik Csapak [Fri, 31 Mar 2023 10:03:08 +0000 (12:03 +0200)]
fix #4627: ui: backup edit: don't deselect all guests on load

'selectPoolMembers' will be called when the poolid field changes.
(That can even happen when the mode is not even 'pool') Due to how
the fields are set, there is a race condition that this will be
called after the remaining fields were set up, including the VM list
that might have entries selected.

Since the first thing we do here is to deselect all, this wiped the
virtual guest selection sometimes.

To fix it, check if we're actually in the correct mode before doing
anything.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>