]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
20 months agoui: CephInstallWizard: make first mon node static
Aaron Lauterer [Wed, 10 Aug 2022 15:10:19 +0000 (17:10 +0200)]
ui: CephInstallWizard: make first mon node static

Removes the possibility to select the node on which to create the first
monitor in the configuration / initialization step and always sets it to
the current node.

This prevents that a user might select another node on which the Ceph
packages have not yet been installed. If a user did that, they would get
an error, but the Ceph config file would have been written. If the user
then does not select a valid node to create the first mon, but aborts
the wizard, they are greeted with a rados_connect error because the
config file exists, but it does not contain any mon infos that are
needed to connect to the Ceph cluster.

Creating a mon manually will remedy such a situation, but especially for
new users, this behavior is not ideal and confusing.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
20 months agosubscription: handle missing subscription info
Fabian Grünbichler [Wed, 7 Sep 2022 08:47:05 +0000 (10:47 +0200)]
subscription: handle missing subscription info

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 months agoapi: nodes: code/style rework start/stop list generation
Thomas Lamprecht [Thu, 1 Sep 2022 09:08:59 +0000 (11:08 +0200)]
api: nodes: code/style rework start/stop list generation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoapi: nodes: style/perlcritic fixes
Thomas Lamprecht [Wed, 31 Aug 2022 11:31:39 +0000 (13:31 +0200)]
api: nodes: style/perlcritic fixes

no semantic change intended

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agobump version to 7.2-8
Fabian Grünbichler [Tue, 6 Sep 2022 08:39:44 +0000 (10:39 +0200)]
bump version to 7.2-8

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 months agowww: subscription: add Signed/Offline status
Fabian Grünbichler [Thu, 30 Jun 2022 12:47:13 +0000 (14:47 +0200)]
www: subscription: add Signed/Offline status

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 months agopvesubscription: add 'set-offline-key' command
Fabian Grünbichler [Thu, 30 Jun 2022 12:46:42 +0000 (14:46 +0200)]
pvesubscription: add 'set-offline-key' command

and disallow updating signed offline keys via regular check/update code
path.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 months agosubscription: switch to Proxmox::RS::Subscription
Fabian Grünbichler [Thu, 30 Jun 2022 12:06:16 +0000 (14:06 +0200)]
subscription: switch to Proxmox::RS::Subscription

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agoui: improve form/MDevSelector
Dominik Csapak [Fri, 12 Aug 2022 09:29:51 +0000 (11:29 +0200)]
ui: improve form/MDevSelector

by
* showing the (optional) name in front of the type
* making the 'availble' column a bit narrower
* enabling 'cellWrap' for the description
* making the dropdown a bit wider (so all the information can fit)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
21 months agoJobs: fix scheduling after updating job from a different node
Dominik Csapak [Fri, 15 Jul 2022 12:34:35 +0000 (14:34 +0200)]
Jobs: fix scheduling after updating job from a different node

since the jobs are configured clusterwide in pmxcfs, a user can use any
node to update the config of them. for some configs (schedule/enabled)
we need to update the last runtime in the state file, but this
is sadly only node-local.

to also update the state file on the other nodes, we introduce
a new 'detect_changed_runtime_props' function that checks and saves relevant
properties from the config to the statefile each round of the scheduler if they
changed.

this way, we can detect changes in those and update the last runtime too.

the only situation where we don't detect a config change is when the
user changes back to the previous configuration in between iterations.
This can be ignored though, since it would not be scheduled then
anyway.

in 'synchronize_job_states_with_config' we switch from reading the
jobstate unconditionally to check the existance of the statefile
(which is the only condition that can return undef anyway)
so that we don't read the file multiple times each round.

Fixes: 0c8d7468 ("fix #4053: don't run vzdump jobs when they change from
disabled->enabled")

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
22 months agonodes: include execute schema in docs
Fabian Grünbichler [Tue, 2 Aug 2022 12:44:38 +0000 (14:44 +0200)]
nodes: include execute schema in docs

by extracting the JSON-encoded-string schema and dumping it into the
verbose description it at least shows up in the API viewer.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
22 months agoapi2: use JSONSchema to validate commands for "nodes/{node}/execute"
Stefan Sterz [Wed, 27 Jul 2022 14:56:12 +0000 (16:56 +0200)]
api2: use JSONSchema to validate commands for "nodes/{node}/execute"

this also makes it more explicit what the different values should be

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
22 months agofix: api2: add return type to nodes/{node}/execute endpoint
Stefan Sterz [Wed, 27 Jul 2022 14:56:11 +0000 (16:56 +0200)]
fix: api2: add return type to nodes/{node}/execute endpoint

since this was missing a proper return type definition the api viewer
couldn't display the endpoint (`retinfs.items` was undefined). also
the `pvesh` command would complain that it cannot properly format the
return type because the variable `$item_type` in `CLIFormatter.pm` was
not defined.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
22 months agopvesr: prepare local job: remove stale replicated volumes immediately
Fiona Ebner [Mon, 13 Jun 2022 10:29:55 +0000 (12:29 +0200)]
pvesr: prepare local job: remove stale replicated volumes immediately

Commit d8cd8e8cf9795dc9c2462a67e9ef89ad31759796 introduced a
regression where only stale replicated volumes with an older
timestamp would be cleaned up. This meant that after removing a volume
from the guest config, it would only be cleaned up the second time the
replication ran afterwards. And the volume could become completely
orphaned in case the relevant storage wasn't used by the job anymore.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
22 months agopvesr: rename last_snapshots to local_snapshots
Fiona Ebner [Mon, 13 Jun 2022 10:29:54 +0000 (12:29 +0200)]
pvesr: rename last_snapshots to local_snapshots

while dropping the instance where the local variable was unused.
prepare() was changed a while ago to return all local snapshots.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
22 months agoui: datacenter: use "Name" label for respective part of full rp
Thomas Lamprecht [Tue, 26 Jul 2022 10:00:41 +0000 (12:00 +0200)]
ui: datacenter: use "Name" label for respective part of full rp

as contrary to the property name this is actually only the rather
irrelevant part (auth wise) of the whole relying party, the ID is the
other part, and that one actually matters.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agoui: datacenter: rework webauthn settings UX
Thomas Lamprecht [Mon, 25 Jul 2022 14:48:29 +0000 (16:48 +0200)]
ui: datacenter: rework webauthn settings UX

Make origin optional, as it actually is, and its not covered by the
challenge anyway.

Also, not the thing we name rp, but the ID is important for the
validity of existing webauthn records, this error comes from the
confusing use of the same named thing in different ways by browsers,
us and the webauthn rust crate...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agoceph-after-pve-cluster: enable for ceph-volume, disable for ceph-disk
Aaron Lauterer [Mon, 18 Jul 2022 14:09:10 +0000 (16:09 +0200)]
ceph-after-pve-cluster: enable for ceph-volume, disable for ceph-disk

The ceph-disk service seems to have been removed with octopus (v15) and
we did not yet have them for ceph-volume which could lead to some
startup issues in cases where the pve-cluster service did not start fast
enough.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
22 months agoapi: apt: switch to common Proxmox::RS::APT::Repositories package
Fabian Ebner [Fri, 8 Jul 2022 11:55:54 +0000 (13:55 +0200)]
api: apt: switch to common Proxmox::RS::APT::Repositories package

which is shared between PVE and PMG.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
22 months agobump rust dependencies
Wolfgang Bumiller [Fri, 15 Jul 2022 10:36:45 +0000 (12:36 +0200)]
bump rust dependencies

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
22 months agoui: ct restore: put mountpoint-erasure note on new line
Thomas Lamprecht [Thu, 7 Jul 2022 08:08:02 +0000 (10:08 +0200)]
ui: ct restore: put mountpoint-erasure note on new line

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agoui: restore: improve warning for restoring container with same ID
Fabian Ebner [Tue, 5 Jul 2022 08:52:39 +0000 (10:52 +0200)]
ui: restore: improve warning for restoring container with same ID

It's not clear to users that the "VM data" includes mount point
volumes including those that are not marked for backup. This is
different from VM restore, where volumes attached at drives not
present in the backup will be kept around as unused volumes.

Several (supposedly newer) users got tripped up by this over the
years, the latest report being [0]. The long term plan is to make the
restore dialog more flexible to be able to select actions for disks
individually, but that will take a bit of time. In the mean time, make
the warning more explicit.

[0]: https://forum.proxmox.com/threads/111760/#post-482045

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
22 months agobump version to 7.2-7
Thomas Lamprecht [Tue, 5 Jul 2022 06:52:52 +0000 (08:52 +0200)]
bump version to 7.2-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agopveceph install: clarify comment for conditional ceph-volume inclusion
Thomas Lamprecht [Tue, 5 Jul 2022 06:38:08 +0000 (08:38 +0200)]
pveceph install: clarify comment for conditional ceph-volume inclusion

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agopveceph install: exclude 'ceph-volume' from older than quincy releases
Stefan Sterz [Mon, 4 Jul 2022 15:45:17 +0000 (17:45 +0200)]
pveceph install: exclude 'ceph-volume' from older than quincy releases

when installing non-quincy versions, 'ceph-volume' is not contained in
the respective repositories and, thus, the install process would fail.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
 [ T: reworded commit subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agobump version to 7.2-6
Thomas Lamprecht [Mon, 4 Jul 2022 11:32:01 +0000 (13:32 +0200)]
bump version to 7.2-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoupdate shipped aplinfo
Thomas Lamprecht [Mon, 4 Jul 2022 11:31:23 +0000 (13:31 +0200)]
update shipped aplinfo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agopveceph: install split-out ceph-volume package
Thomas Lamprecht [Mon, 4 Jul 2022 11:30:51 +0000 (13:30 +0200)]
pveceph: install split-out ceph-volume package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoui: manual backup: unescape notes template on load
Fabian Ebner [Mon, 27 Jun 2022 12:42:42 +0000 (14:42 +0200)]
ui: manual backup: unescape notes template on load

It's escaped in the API result and will be re-escaped upon submit,
leading to confusion as reported in the community forum:
https://forum.proxmox.com/threads/110747/post-480507

Fixes: c4dca88b ("ui: manual backup: also set notes-template default")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
23 months agoapl info: update index to current repository state
Thomas Lamprecht [Thu, 23 Jun 2022 14:09:19 +0000 (16:09 +0200)]
apl info: update index to current repository state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agobump version to 7.2-5
Thomas Lamprecht [Tue, 21 Jun 2022 14:58:51 +0000 (16:58 +0200)]
bump version to 7.2-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agopveceph: reuse supported ceph versions for non-default warning
Thomas Lamprecht [Tue, 21 Jun 2022 15:04:21 +0000 (17:04 +0200)]
pveceph: reuse supported ceph versions for non-default warning

albeit this is a bit odd safety "check" anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agopveceph: factor out supported/default ceph version to single source
Thomas Lamprecht [Tue, 21 Jun 2022 15:04:02 +0000 (17:04 +0200)]
pveceph: factor out supported/default ceph version to single source

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agopveceph: warn on (soon) EOL octopus
Thomas Lamprecht [Tue, 21 Jun 2022 14:52:54 +0000 (16:52 +0200)]
pveceph: warn on (soon) EOL octopus

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoui: ceph: add quincy installation support
Thomas Lamprecht [Tue, 21 Jun 2022 14:52:35 +0000 (16:52 +0200)]
ui: ceph: add quincy installation support

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agopveceph: add quincy installation support
Thomas Lamprecht [Tue, 21 Jun 2022 14:52:25 +0000 (16:52 +0200)]
pveceph: add quincy installation support

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoui: dc/Backup: add 'repeat-missed' checkbox
Dominik Csapak [Mon, 13 Jun 2022 13:24:10 +0000 (15:24 +0200)]
ui: dc/Backup: add 'repeat-missed' checkbox

so that the users can configure how to handle missed job runs
move the vmgrid inside the ipanel in 'columnB', so that the
advanced items show below the vmgrid (not above)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
23 months agofix #4053: don't run vzdump jobs when they change from disabled->enabled
Dominik Csapak [Mon, 13 Jun 2022 13:24:09 +0000 (15:24 +0200)]
fix #4053: don't run vzdump jobs when they change from disabled->enabled

by updating the timestamp in the job state when enabled is changing
from 0 -> 1. We do it this way too in PBS for example, and is the more
sensible behaviour.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
23 months agofix #4026: add 'repeat-missed' option for jobs
Dominik Csapak [Mon, 13 Jun 2022 13:24:08 +0000 (15:24 +0200)]
fix #4026: add 'repeat-missed' option for jobs

like systemd-timers 'persistent'. so that the user can configure it to not be
run after powering up when it was previously missed

this reverses the default behaviour to not run missed jobs after pvescheduler
was started, since most of the time that's not the desired behaviour

since we don't use it for updated schedules anymore, rename
'updated_job_schedule' to 'update_last_runtime'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
23 months agofix #4111: replication: don't send mail when fail count is zero
Fabian Ebner [Tue, 14 Jun 2022 09:47:32 +0000 (11:47 +0200)]
fix #4111: replication: don't send mail when fail count is zero

which can happen when failing to obtain the guest's migration lock.
This led to a lot of mails being sent during migration (timeout for
obtaining lock is only 2 seconds and we run it in a loop).

One could argue that obtaining the lock should increase the fail
count, but without the lock, the job state should not be touched and
even the first three mails upon migration could be considered spam.

Fixes: fa4bb659 ("replication: sent always mail for first three tries and move helper")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
23 months agofix #3961: pveam: error on 'list' if storage doesn't exist
Oguz Bektas [Mon, 13 Jun 2022 10:13:16 +0000 (12:13 +0200)]
fix #3961: pveam: error on 'list' if storage doesn't exist

storage_check_enabled() already dies with an appropriate error message
so we don't have to handle it here

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
23 months agofix #3597: ui: ceph setup: avoid autofill of monitor network
Aaron Lauterer [Mon, 2 May 2022 14:05:05 +0000 (16:05 +0200)]
fix #3597: ui: ceph setup: avoid autofill of monitor network

By not auto filling the Ceph public network we can avoid accidental
clicks on 'Next' which will cause the first Mon to be created with a
potentially wrong network. While that is fixable, it is tedious and
can be easily avoided by making the user always select the network to
use.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Tested-by: Stefan Hrdlicka<s.hrdlicka@proxmox.com>
 [ T: adapted commit subject to be more specific and match our common
   style ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoapi: ceph: mon: make checking for duplicate addresses more robust
Fabian Ebner [Fri, 4 Mar 2022 13:09:08 +0000 (14:09 +0100)]
api: ceph: mon: make checking for duplicate addresses more robust

Because $mon->{addr} might come with a port attached (affects monitors
created with PVE 5.4 as reported in the community forum [0]), or even
be a hostname (according to the code in Ceph/Services.pm). Although
the latter shouldn't happen for configurations created by PVE.

[0]: https://forum.proxmox.com/threads/105904/

Fixes: 9e989449 ("api: ceph: mon: fix handling of IPv6 addresses in assert_mon_prerequisites")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoreport: add ceph device list
Aaron Lauterer [Tue, 31 May 2022 12:44:30 +0000 (14:44 +0200)]
report: add ceph device list

Can help a lot to identify which OSD is using which physical disk

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: qemu disk edit: fix typo in view model variable name
Matthias Heiserer [Fri, 27 May 2022 11:48:06 +0000 (13:48 +0200)]
ui: qemu disk edit: fix typo in view model variable name

Worked before because we always set the correct one manually in the
view controllers init and scsi-controller change handler.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
 [ T: added actual subject and reworded commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agominor code style clenaup and comment wording
Thomas Lamprecht [Sat, 28 May 2022 07:12:21 +0000 (09:12 +0200)]
minor code style clenaup and comment wording

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-4
Thomas Lamprecht [Thu, 12 May 2022 15:36:46 +0000 (17:36 +0200)]
bump version to 7.2-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoconfigs: vzdump: add notes-template default
Fabian Ebner [Mon, 9 May 2022 10:34:13 +0000 (12:34 +0200)]
configs: vzdump: add notes-template default

so users can see that it can be configured here.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: manual backup: also set notes-template default
Fabian Ebner [Mon, 9 May 2022 10:34:12 +0000 (12:34 +0200)]
ui: manual backup: also set notes-template default

like is done for other vzdump options already.

Requested in the community forum:
https://forum.proxmox.com/threads/108970/#post-468655

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: avoid 'requires' constraint when parsing defaults
Fabian Ebner [Mon, 9 May 2022 10:34:11 +0000 (12:34 +0200)]
vzdump: avoid 'requires' constraint when parsing defaults

to avoid warnings like
parse error in '/etc/vzdump.conf' - 'storage': missing property -
'notes-template' requires this property
when there is no default for the required property configured.

In new(), the defaults are mixed in with the regular CLI/API
parameters, so re-check if the required property is set. If it's not,
the defaults do not apply to the current run, and can be dropped.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: manual backup: list possible template variables directly
Fabian Ebner [Mon, 9 May 2022 10:34:10 +0000 (12:34 +0200)]
ui: manual backup: list possible template variables directly

rather than as a tooltip.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: generate notes: initialize potentially undef values
Fabian Ebner [Mon, 9 May 2022 10:34:09 +0000 (12:34 +0200)]
vzdump: generate notes: initialize potentially undef values

For VMs, $task->{hostname} might be undef and when running on a
stand-alone node, there is no cluster name.

Reported-by: Marco Gabriel <mgabriel@inett.de>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: verify parameters: properly verify notes-template
Fabian Ebner [Mon, 9 May 2022 10:34:08 +0000 (12:34 +0200)]
vzdump: verify parameters: properly verify notes-template

instead of just checking for a newline, do a full check already.

Also do the check at the beginning of generate_notes() for consistency
and remove the check after expansion to avoid failing late for things
like '{{cl{{node}}er}}' (which can even expand to a valid variable
making the error even more confusing).

Co-developed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: move new node options below hosts entry
Thomas Lamprecht [Thu, 12 May 2022 14:40:39 +0000 (16:40 +0200)]
ui: move new node options below hosts entry

avoid splitting the related DNS and Hosts settings in the middle

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3994: ui: add Options entry in the node System menu
Daniel Tschlatscher [Fri, 6 May 2022 12:39:10 +0000 (14:39 +0200)]
fix #3994: ui: add Options entry in the node System menu

Add the subentry "Options" in the "System" menu to expose some
options in the GUI which were not exposed before.

Added a new file for displaying and editing the node config options
which were not exposed through the GUI yet. Namely those are the
settings for wakeonlan and startall-on-boot-delay. Edited the
Makefile to include the newly created file.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
2 years agogui: VM Create wizard - display default scsi controller correctly
Daniel Tschlatscher [Thu, 12 May 2022 10:00:04 +0000 (12:00 +0200)]
gui: VM Create wizard - display default scsi controller correctly

Fixed a cosmetic issue where in the VM creation wizard the SCSI
controller would not be displayed correctly if the default value
"Default (LSI 53C895A)" was selected. In this case, "__default__"
would be printed for the user after progressing into the next "Disks"
pane.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
2 years agod/control: bump versioned dependency for libpve-storage-perl
Thomas Lamprecht [Thu, 12 May 2022 13:08:01 +0000 (15:08 +0200)]
d/control: bump versioned dependency for libpve-storage-perl

to ensure we can add and use namespaces for PBS storages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: storage: add namespace support when creating PBS storage
Thomas Lamprecht [Thu, 12 May 2022 13:07:38 +0000 (15:07 +0200)]
ui: storage: add namespace support when creating PBS storage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix # 4044: ui: hd move: avoid bogus progress bar, show task viewer
Thomas Lamprecht [Wed, 11 May 2022 14:23:11 +0000 (16:23 +0200)]
fix # 4044: ui: hd move: avoid bogus progress bar, show task viewer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-3
Thomas Lamprecht [Wed, 4 May 2022 06:46:56 +0000 (08:46 +0200)]
bump version to 7.2-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: fix unknown variable name error, add newline
Thomas Lamprecht [Wed, 4 May 2022 06:19:35 +0000 (08:19 +0200)]
vzdump: fix unknown variable name error, add newline

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: notes-template: improve check for unknown variable
Fabian Ebner [Tue, 3 May 2022 11:17:59 +0000 (13:17 +0200)]
vzdump: notes-template: improve check for unknown variable

so that '{{foo}}{{bar}}' is not detected as being an unknown variable
named 'foo}}{{bar', but as 'foo' (and 'bar').

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: notes-template: avoid escaping meta-characters upon replace
Fabian Ebner [Tue, 3 May 2022 11:17:58 +0000 (13:17 +0200)]
vzdump: notes-template: avoid escaping meta-characters upon replace

which is caused by the quoting operators \Q...\E. The actual intention
was to avoid such surprises.

Fixes: e01438a7 ("partially close #438: vzdump: support setting notes-template")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoapi: ceph pool: reword ec desc full textwidth and reword slightly
Thomas Lamprecht [Wed, 4 May 2022 05:14:56 +0000 (07:14 +0200)]
api: ceph pool: reword ec desc full textwidth and reword slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoceph pools create: enhance erasure-code description
Aaron Lauterer [Tue, 3 May 2022 11:58:08 +0000 (13:58 +0200)]
ceph pools create: enhance erasure-code description

Mention which optional parameters will be used for the replicated
metadata pool but won't have an effect on the erasure coded data pool.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoceph pools create: remove crush_rule for ec pool data
Aaron Lauterer [Tue, 3 May 2022 11:58:07 +0000 (13:58 +0200)]
ceph pools create: remove crush_rule for ec pool data

The crush rule is an optional paramter which can be used for the
metadata pool, but the erasure coded data pool will always get its own
crush rule. Therefore this parameter can not be adapted.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoschedule-analyze: fix schedules with limited runs
Dominik Csapak [Tue, 3 May 2022 14:10:25 +0000 (16:10 +0200)]
schedule-analyze: fix schedules with limited runs

When a schedule only has a limited amount of runs it can happen
(e.g. 2022-10-01 8:00/30), $next will be undef after the last run.
Exit early in that case.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoupdate aplinfo
Thomas Lamprecht [Tue, 3 May 2022 05:23:22 +0000 (07:23 +0200)]
update aplinfo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-2
Thomas Lamprecht [Mon, 2 May 2022 15:33:40 +0000 (17:33 +0200)]
bump version to 7.2-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: disk reassign: remove unused reference and bind
Matthias Heiserer [Mon, 2 May 2022 14:24:23 +0000 (16:24 +0200)]
ui: disk reassign: remove unused reference and bind

They are not used anywhere else, so I assume they were left over from
an earlier version.
Also, sometimes "[object object] flashes in the Target Guest field
when opening the reassign window, with this removed it doesn't occur.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
Tested-By: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: snapshot tree: warn that current state is lost when confirming rollback
Fabian Ebner [Mon, 2 May 2022 12:21:53 +0000 (14:21 +0200)]
ui: snapshot tree: warn that current state is lost when confirming rollback

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: ceph pools: add pool type column
Aaron Lauterer [Mon, 2 May 2022 08:09:28 +0000 (10:09 +0200)]
ui: ceph pools: add pool type column

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: ceph pool edit: disable size and crush rule for erasure pools
Aaron Lauterer [Mon, 2 May 2022 08:09:27 +0000 (10:09 +0200)]
ui: ceph pool edit: disable size and crush rule for erasure pools

They cannot be changed after pool creation for erasure coded pools

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapi: ceph pools: add type to returned properties
Aaron Lauterer [Mon, 2 May 2022 12:36:24 +0000 (14:36 +0200)]
api: ceph pools: add type to returned properties

The osd dump already contains the pool type in numerical format.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoceph tools: set_pools: filter settings for erasure code pools
Aaron Lauterer [Mon, 2 May 2022 08:09:25 +0000 (10:09 +0200)]
ceph tools: set_pools: filter settings for erasure code pools

Erasure code pools cannot change certain settings after creation.
Trying to set them will cause errors on Cephs side.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: realm sync: let users set 'remove vanished options' independently
Dominik Csapak [Mon, 2 May 2022 13:15:20 +0000 (15:15 +0200)]
ui: realm sync: let users set 'remove vanished options' independently

and label it correctly. The 'Properties' option was mislabeled,
it means 'remove vanished fields from synced users', not 'remove
fields from vanished users'.

So don't couple that with the 'Entries' option, and update the label
to convey the right meaning.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: storage content: support filtering by notes for backups
Thomas Lamprecht [Mon, 2 May 2022 13:26:21 +0000 (15:26 +0200)]
ui: storage content: support filtering by notes for backups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/copyright: update years
Thomas Lamprecht [Fri, 29 Apr 2022 12:35:45 +0000 (14:35 +0200)]
d/copyright: update years

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 7.2-1
Thomas Lamprecht [Fri, 29 Apr 2022 12:29:33 +0000 (14:29 +0200)]
bump version to 7.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: ceph: fix description indentation style
Thomas Lamprecht [Fri, 29 Apr 2022 12:28:12 +0000 (14:28 +0200)]
api: ceph: fix description indentation style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: followup: code locality
Thomas Lamprecht [Fri, 29 Apr 2022 12:26:32 +0000 (14:26 +0200)]
api: followup: code locality

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: ceph ec pools: make add_storages overridable default
Aaron Lauterer [Fri, 29 Apr 2022 09:28:59 +0000 (11:28 +0200)]
api: ceph ec pools: make add_storages overridable default

The behavior of always adding the storage config was lost in commit
23c407e. But it is more sensible to make it a default that can be
changed if needed.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoapi: ceph ec pools: schema fixes and enhancements
Aaron Lauterer [Fri, 29 Apr 2022 09:28:58 +0000 (11:28 +0200)]
api: ceph ec pools: schema fixes and enhancements

Ceph has a min value for 'k' of 2. Adding default and description where
missing.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoui: dc/SyncWindow: realign to sync options
Dominik Csapak [Fri, 29 Apr 2022 10:23:36 +0000 (12:23 +0200)]
ui: dc/SyncWindow: realign to sync options

put the checkboxes in a fieldset and reuse their labels

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 7.1-13
Thomas Lamprecht [Thu, 28 Apr 2022 19:00:48 +0000 (21:00 +0200)]
bump version to 7.1-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi: ceph ec pools: move to format-str, create ec in worker, reuse $rados
Thomas Lamprecht [Thu, 28 Apr 2022 18:23:24 +0000 (20:23 +0200)]
api: ceph ec pools: move to format-str, create ec in worker, reuse $rados

moved to a format string 'erasurce-coded', that allows also to drop
most of the param existence checking as we can set the correct
optional'ness in there.  Also avoids bloating the API to much for
just this.

Reuse the $rados connection more often to avoid to much
overhead/lingering sockets (the rados connection stays around in the
background to allow efficient reuse)

really should be three separate commits, but too intertwined and too
late for me to care tbh.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoceph tools: allow more rados connection reuse
Thomas Lamprecht [Thu, 28 Apr 2022 17:46:46 +0000 (19:46 +0200)]
ceph tools: allow more rados connection reuse

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoceph pools: allow to create erasure code pools
Aaron Lauterer [Thu, 28 Apr 2022 11:58:09 +0000 (13:58 +0200)]
ceph pools: allow to create erasure code pools

To use erasure coded (EC) pools for RBD storages, we need two pools. One
regular replicated pool that will hold the RBD omap and other metadata
and the EC pool which will hold the image data.

The coupling happens when an RBD image is created by adding the
--data-pool parameter. This is why we have the 'data-pool' parameter in
the storage configuration.

To follow already established semantics, we will create a 'X-metadata'
and 'X-data' pool. The storage configuration is always added as it is
the only thing that links the two together (besides naming schemes).

Different pg_num defaults are chosen for the replicated metadata pool as
it will not hold a lot of data.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoceph tools: add erasure code management functions
Aaron Lauterer [Thu, 28 Apr 2022 11:58:06 +0000 (13:58 +0200)]
ceph tools: add erasure code management functions

Functions to manage erasure code (EC) profiles:
* add
* remove
* check if exists
* get default prefixed name
* get pool properties
* destroy crush rule

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoapi: ceph: $get_storages check if data-pool too
Aaron Lauterer [Thu, 28 Apr 2022 11:58:05 +0000 (13:58 +0200)]
api: ceph: $get_storages check if data-pool too

When removing a pool, we check against any storage that might have that
pool configured.
We need to check if that pool is used as data-pool too.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoceph tools: make rados open if not reused shorter
Thomas Lamprecht [Thu, 28 Apr 2022 17:39:52 +0000 (19:39 +0200)]
ceph tools: make rados open if not reused shorter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: transform hook script checks to post-if notation
Thomas Lamprecht [Thu, 28 Apr 2022 16:44:20 +0000 (18:44 +0200)]
vzdump: transform hook script checks to post-if notation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: add error if passed in hook script doesn't exist
Dylan Whyte [Thu, 28 Apr 2022 14:57:06 +0000 (16:57 +0200)]
vzdump: add error if passed in hook script doesn't exist

Previously, if the '--script' argument was passed with a non-existent
file, it would state that a non-executable script was the reason for
failure. This adds a check to see if the hook script exists, in order
to provide a more accurate error message.

Also adds an 'Error:' prefix the 'script not executable' error.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
2 years agoui: add virgl GPU to possible VGA drivers
Thomas Lamprecht [Thu, 28 Apr 2022 14:36:31 +0000 (16:36 +0200)]
ui: add virgl GPU to possible VGA drivers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agovzdump: check that notes-template is a single line
Fabian Ebner [Thu, 28 Apr 2022 08:07:39 +0000 (10:07 +0200)]
vzdump: check that notes-template is a single line

While vzdump itself wouldn't mind about unescaped newlines, the
parameter isn't supposed to contain any, and when used as part of the
job config, it has to be a single line too, so make it consistent.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agovzdump: generate notes: die upon unexpected escape character or variable
Fabian Ebner [Wed, 27 Apr 2022 15:41:16 +0000 (17:41 +0200)]
vzdump: generate notes: die upon unexpected escape character or variable

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoclose #438: ui: backup job: allow setting a notes-template for a job
Fabian Ebner [Wed, 27 Apr 2022 15:41:13 +0000 (17:41 +0200)]
close #438: ui: backup job: allow setting a notes-template for a job

Add a tooltip to the comment field, to better distinguish it from the
notes-template.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: backup: allow setting protected and notes-template for manual backup
Fabian Ebner [Wed, 27 Apr 2022 15:41:12 +0000 (17:41 +0200)]
ui: backup: allow setting protected and notes-template for manual backup

Setting a width, so the text area can fill the horizontal space.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoui: util: add helpers for (un)escaping notes-template
Fabian Ebner [Wed, 27 Apr 2022 15:41:11 +0000 (17:41 +0200)]
ui: util: add helpers for (un)escaping notes-template

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopartially close #438: vzdump: support setting notes-template
Fabian Ebner [Wed, 27 Apr 2022 15:41:10 +0000 (17:41 +0200)]
partially close #438: vzdump: support setting notes-template

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>