Commit Graph

7360 Commits

Author SHA1 Message Date
Maximiliano Sandoval
d76c2b0f9e fix typos in comments
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-07-22 18:28:18 +02:00
Max Carrara
48b64ef35b utils: align regex of parse_ceph_version with Perl equivalent
Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Igor Thaller <igor.thaller@brg9.at>
2024-07-22 16:19:03 +02:00
Max Carrara
ddf6263191 ceph: services: refactor version existence check as guard clause
Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Igor Thaller <igor.thaller@brg9.at>
2024-07-22 16:19:03 +02:00
Max Carrara
f09b26ae56 ceph: services: remove old cluster broadcast
The `ceph-version` key is not used anymore, so it can go.

Double-checked by `rg`ing through all of our repositories.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Igor Thaller <igor.thaller@brg9.at>
2024-07-22 16:19:03 +02:00
Max Carrara
344b0a18d2 ceph: tools: parse Ceph version in separate sub and update regex
The part of the `get_local_version` sub that's concerned with actually
parsing the Ceph version is factored into a separate sub
`parse_ceph_version`. That way the parsing logic can easily be reused.

Make the version regex more maintainable declaring it as a variable,
breaking it up and commenting it by using the x flag.

Also remove the part that parses our Debian revision (e.g. -pve1) from
the version, as we do not actually include that in our Ceph builds.

The part of the regex that parses the build commit hash is made
mandatory (remove '?' after its group).

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Igor Thaller <igor.thaller@brg9.at>
2024-07-22 16:19:03 +02:00
Max Carrara
2b0c7293a0 ceph: tools: refactor installation check as guard clause
Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Igor Thaller <igor.thaller@brg9.at>
2024-07-22 16:19:03 +02:00
Maximiliano Sandoval
1d4dd057ef changelog: fix typos
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-07-17 18:02:59 +02:00
Thomas Lamprecht
6d4c9cade7 api: node status: fix description of current-kernel schema entry
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-07-15 09:44:25 +02:00
Christian Ebner
8504a0e291 www: backup: clarify experimental change detection modes
Currently, the whole mode selector is labeled as experimental, this
does however give the impression that also the default legacy mode is
an experimental mode.
To clarify that only the `data` and `metadata` change detection modes
are experimental, move the experimental label to the individual
modes and explicitly mention the experimental modes in the message.

Also, make it more clear that the archive encoding format depends on
the selected mode.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2024-07-10 16:08:42 +02:00
Stoiko Ivanov
8763c263d1 pve7to8: fix typo in log message
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2024-07-10 13:53:06 +02:00
Lukas Wagner
d915b69907 api: replication: include 'hostname' field for notifications
The field contains the hostname of the host (without any domain part)
which sends the notification. This field can be used in match-field
match rules.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-07-04 14:57:08 +02:00
Lukas Wagner
2952bfe413 vzdump: apt: notification: do not include domain in 'hostname' field
- The man page warns about the usage of `hostname -f`, since a host
   may have multiple domains (or none at all)
 - The fallback PVE::INotify::nodename() already only returned the
   hostname without the domain part
 - Fencing notifications didn't include the domain part anyway

This may result in soft-breakage for any users who have already relied
on the domain being present. If there is need for it, it could include
a fqdn metadata field.

The hostname property used for rendering the notification template
is unaffected for now.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-07-04 14:57:08 +02:00
Lukas Wagner
431ae86b08 api: replication: add 'job-id' to notification metadata
This allows users to create notification match rules for specific
replication jobs, if they so desire.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-07-04 14:57:08 +02:00
Fiona Ebner
fb59038a8b pve7to8: allow arbitrary newer running '-pve' kernels after upgrade
As recently reported in the community forum [0], 6.8 pve kernels would
not be detected correctly by the script. Allow arbitrary newer
versions if already upgraded for future-proofing.

[0]: https://forum.proxmox.com/threads/145723/post-664612

Suggested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>

[FG: made `return 0;` explicit in closure]
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-07-04 10:43:37 +02:00
Fiona Ebner
c1bbee0105 vzdump: fix unit for bandwidth limit in log message
The documentation 'man vzdump' states that the value is in KiB/s. This
is correct, as seen in the plugin implementations, where the value is
multiplied by 1024.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-07-01 10:57:22 +02:00
Lorenz Stechauner
9c54c52d79 api: aplinfo: rename REs for iso and vztmpl extensions
Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
2024-06-27 15:07:23 +02:00
Dominik Csapak
3a9037ba25 ui: fix align mode of two column container
'stretch' is most often the wrong value, as that will stretch
everything, to the height of the whole container, including fields.
That is not desirable, since fields look not good when stretched this
way (e.g. the controls are not correctly aligned).

To fix it, simply set it to 'begin'.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-06-12 15:54:21 +02:00
Fiona Ebner
d4191941ff vzdump config: add fleecing property string
This makes it clear(er) that fleecing can be configured as a node-wide
default too.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-06-12 12:50:47 +02:00
Fiona Ebner
5b32251812 ui: qemu: hardware: use asynchronous remove API call for disk hot-unplug
The backend uses a 10 minute timeout for disk hot-unplug, so avoid
using the synchronous call which only has a 30 second timeout.

Commit 3b2e557f ("close #584: ui qemu: changed remove unused disk to
asynchron call") introduced the necessary functionality when removing
unused disks.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-06-11 13:58:09 +02:00
Fiona Ebner
3dba293d78 ui: qemu: hardware: use background delay for asynchronous remove tasks
Avoids spawning a progress window for tasks that do complete more
quickly than the background delay.

Currently, the remove task is only asynchronous (i.e. using POST) when
it's for an unused disk, but this might change in the future (e.g. for
hot-unplug).

When adding a disk, a background delay of 5 seconds is already used.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-06-11 13:58:09 +02:00
Fabian Grünbichler
faa83925c9 bump version to 8.2.4
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-10 14:00:15 +02:00
Fabian Grünbichler
600d40d715 d/control: bump pve-container
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-10 13:57:37 +02:00
Christian Ebner
4541af1089 vzdump: add pbs-change-detection-mode to config template
Include the additional parameter to set the `change-detection-mode`
for backup jobs with Proxmox Backup Server target as node wide
configuration, including possible variants to be set.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2024-06-10 13:02:53 +02:00
Christian Ebner
3b21f19fc1 www: advanced backup: add pbs change detection mode selector
The proxmox backup client allows to switch the method used to encode
data based on a change-detection-mode parameter.  Expose this setting
as experimental feature in the advanced panel for a backup job.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2024-06-10 13:02:53 +02:00
Lukas Wagner
9039cbf6f3 pvestatd: clear trailing newlines
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-06-07 12:05:35 +02:00
Wolfgang Bumiller
b4648c6905 bump version to 8.2.3
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-04 11:09:02 +02:00
Lukas Wagner
fede7e87e4 notifications: use named templates instead of in-code templates
This commit adapts notification sending for
    - package update
    - replication
    - backups

to use named templates (installed in /usr/share/pve-manager/templates)
instead of passing template strings defined in code to the
notification stack.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
2024-06-03 14:16:35 +02:00
Lukas Wagner
79a02b0e48 tests: remove vzdump_notification test
With the upcoming changes in how we send notifications, this one
really becomes pretty annoying to keep working. The location where
templates are looked up are defined in the proxmox_notify crate, so
there is no easy way to mock this for testing.
The test itself seemed not super valuable, mainly testing if
the backup logs are shortened if they ware too long - so they are just
removed.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
2024-06-03 14:16:35 +02:00
Lukas Wagner
aacb66ebc5 gitignore: ignore any test artifacts
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
2024-06-03 14:16:35 +02:00
Mira Limbeck
fc6acae04b api: add proxmox-firewall to versions pkg list
Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2024-05-21 15:58:55 +02:00
Thomas Lamprecht
f9cc01c7f5 update shipped appliance info index
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-05-07 11:55:24 +02:00
Thomas Lamprecht
fb60669f30 update shipped appliance info index
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-23 21:45:53 +02:00
Thomas Lamprecht
9355359cd7 bump version to 8.2.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-23 21:36:08 +02:00
Thomas Lamprecht
49291f8602 ui: importer: try to better convey what live-import does
It's hard to cram a easy to understandable meaning in the space we
have, to get a bit more space move the warning hint to a separate line
and use the box-label to show an always visible hint about the VM to
be stopped previously.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-23 19:51:29 +02:00
Maximiliano Sandoval
059121d1db fix #5251: login: set autocomplete on password and user
By default they have 'autocomplete=off'. From [1]:

 > In most modern browsers, setting autocomplete to "off" will not
 > prevent a password manager from asking the user if they would like to
 > save username and password information, or from automatically filling
 > in those values in a site's login form. See the autocomplete
 > attribute and login fields [2].

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
[2] https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#the_autocomplete_attribute_and_login_fields

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-04-23 17:23:00 +02:00
Fiona Ebner
5183495790 ui: user edit: protect user's TFA settings again
Same rationale as in 5b25580d ("Protect the user's tfa key setting."):
it should not be possible to change the value when it's not an actual
secret but a reference to what TFA method is used or, in case of 'x',
whether TFA is used.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-04-23 16:51:32 +02:00
Fiona Ebner
bd41a16da9 vzdump: also warn when hook script fails for backup-abort or log-end phase
to make it more visible, also in task logs.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-04-23 16:48:23 +02:00
Thomas Lamprecht
7ad48f3c5a ui: backup job: fixup missing trailing comma
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-23 16:40:17 +02:00
Dominik Csapak
a139284185 ui: mobile: enable subscription popup
not sure if this was lost at some point or never implemented, but we
want to be consistent with the remaining web ui and apps, so show
the subscription popup here too.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-23 16:39:20 +02:00
Dominik Csapak
84505f2de8 ui: mobile: fix totp login
Log-in with TOTP enabled account on mobile was broken due to these two
commits:
- pve-manager: 509d7a20 ("mobile ui: implement dummy message box and
  scrip loader")
- pve-access-control: cb64967 ("api: drop old verify_tfa api call")

The pve-manager one overwrote the Ext.MessageBox and Ext.Msg classes
and thus removed the Ext.MessageBox.OKCANCEL constant that represented
the buttons of popup messages (without those no buttons on message
boxes where shown).

This override did not work as intended, as we still  showed the
message box by accident, because at that point the Ext.MessageBox was
already initialized (so it was overwritten), but Ext.Msg was not (this
happens later).

And the pve-access-control removed the old tfa verify api (which is
now done via the /access/ticket api)

So to fix that, we have to adapt to the api changes and restore the
stock Ext.MessageBox and Ext.Msg classes by removing the overrides
(i couldn't find where we would need those)

We still cannot handle u2f/WebAuthn or recovery methods though.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-23 16:38:13 +02:00
Dominik Csapak
21e5ae5b36 ui: backup job editor: fix disable behavior for fleecing storage
commit 569b0388 (ui: fix reset behavior of backup job editor) disabled
the fleecing storage field by default (as that is the default state)
to fix the reset behavior. This broke editing the job when fleecing
was enabled and the user did not navigate to the advanced tab yet.

It seems that the 'bind' here only gets triggered once the panel is
rendered, but we actually need it before that.

To work around the issue for now, manually enable/disable the field
when toggling the fleecing checkbox. (Though this warrants a bit of
deeper investigation into this bind behavior)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-04-23 15:15:34 +02:00
Dominik Csapak
6bc5e32112 ui: backup jobs: fix fleecing parameters for 'run now' button
we have to 'printPropertyString' the fleecing parameters, otherwise
we'll get api parameter errors for that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-04-23 15:15:21 +02:00
Dominik Csapak
569b038830 ui: fix reset behavior of backup job editor
when we `bind` we also have to set the initial value correctly,
otherwise the form dirty tracking is off (the initial bind set does not
reset the `originalValue`)

also the bandwidth selector auto transformed the value `null` to `0`
when there was no initial transformation. Since this is not a valid
value anyway, skip that.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-04-23 09:52:03 +02:00
Thomas Lamprecht
676cb7dbff bump version to 8.2.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-22 19:49:33 +02:00
Thomas Lamprecht
216398458d ui: qemu: clarify that the intel vIOMMU is compatible with AMD
This is definitively a source of confusion otherwise.

Reported-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-22 19:49:33 +02:00
Thomas Lamprecht
6b3dddb008 ui: backup job: allow to set up fleecing for a job in advanced config
Use the new advanced options tab to expose the fleecing enable and
storage selections per backup job.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-22 19:49:33 +02:00
Thomas Lamprecht
249ac8aa83 ui: backup job: rework assembling deleted keys + style fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-22 19:49:33 +02:00
Thomas Lamprecht
dddcfc2ed6 ui: backup job: use boolean expression directly for boolean result
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-22 19:49:33 +02:00
Dominik Csapak
592d91724e ui: qemu machine: update link to better docs section
qm_machine_type is more relevant to this panel thatn qm_system_settings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-04-22 15:20:44 +02:00
Markus Frank
175dff3e29 ui: machine: add link to documentation of the system settings 2024-04-22 14:51:43 +02:00