]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
3 years agoui: not backed: add emptyText to search field
Aaron Lauterer [Fri, 10 Jul 2020 08:38:19 +0000 (10:38 +0200)]
ui: not backed: add emptyText to search field

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoui: storage selector: improve handling PBS special case
Thomas Lamprecht [Fri, 10 Jul 2020 06:13:08 +0000 (08:13 +0200)]
ui: storage selector: improve handling PBS special case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-9
Thomas Lamprecht [Thu, 9 Jul 2020 18:12:16 +0000 (20:12 +0200)]
bump version to 6.2-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: storage: adapt pbs hint sligtly
Thomas Lamprecht [Thu, 9 Jul 2020 18:09:51 +0000 (20:09 +0200)]
ui: storage: adapt pbs hint sligtly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: backup now: disable compression field for PBS storage
Thomas Lamprecht [Thu, 9 Jul 2020 18:04:50 +0000 (20:04 +0200)]
ui: backup now: disable compression field for PBS storage

a bit hacky but well..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: backup detail: rename button to "Job Detail"
Thomas Lamprecht [Thu, 9 Jul 2020 18:04:32 +0000 (20:04 +0200)]
ui: backup detail: rename button to "Job Detail"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: backup detail: some small nits + padding adation
Thomas Lamprecht [Thu, 9 Jul 2020 18:04:01 +0000 (20:04 +0200)]
ui: backup detail: some small nits + padding adation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: backup detail: move search bar in panel header to save vspace
Thomas Lamprecht [Thu, 9 Jul 2020 18:02:55 +0000 (20:02 +0200)]
ui: backup detail: move search bar in panel header to save vspace

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #2609 gui: backup: add window for not backed guests
Aaron Lauterer [Tue, 7 Jul 2020 09:49:02 +0000 (11:49 +0200)]
fix #2609 gui: backup: add window for not backed guests

In case that there are guests which are not covered by any backup job, a
notification is shown and a window with a grid can be opened to view
these guests.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agofix #2609 api: backupinfo: add non job specific endpoint
Aaron Lauterer [Tue, 7 Jul 2020 09:49:01 +0000 (11:49 +0200)]
fix #2609 api: backupinfo: add non job specific endpoint

Adds a new api endpoint at cluster/backupinfo for cluster wide backup
stuff. This is necessary because cluster/backup expects a backup job ID
at the next level and thus other endpoints are hard to impossible to
implement under that hierarchy.

The only api endpoint available for now is the `not_backed_up` which
returns a list of all guests which are not covered by any backup job.

The top level index endpoint is left unsused for now to be available for
a more generic summary endpoint in the future.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agogui: dc/backup: add new backup job detail view
Aaron Lauterer [Tue, 7 Jul 2020 09:49:00 +0000 (11:49 +0200)]
gui: dc/backup: add new backup job detail view

The new detail view for backup jobs shows the settings similar to the
edit dialog but read only. Additionally it does show a list of all
included guests with their volumes and whether these volumes will be
included in the backup.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agogui: dc/backup: move renderers to Utils.js
Aaron Lauterer [Tue, 7 Jul 2020 09:48:59 +0000 (11:48 +0200)]
gui: dc/backup: move renderers to Utils.js

Moving the following renderers to Utils.js to be able to use them in
more than one place:
* render_backup_days_of_week
* render_backup_selection

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoapi: backup: add endpoint to list included guests and volumes
Aaron Lauterer [Tue, 7 Jul 2020 09:48:58 +0000 (11:48 +0200)]
api: backup: add endpoint to list included guests and volumes

This patch adds a new API endpoint that returns a list of included
guests, their volumes and whether they are included in a backup.

The output is formatted to be used with the extJS tree panel.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agovzdump: included_guest: return empty hash if no guests selected
Aaron Lauterer [Thu, 9 Jul 2020 11:21:28 +0000 (13:21 +0200)]
vzdump: included_guest: return empty hash if no guests selected

This will fix the behaviour when calling `vzdump --stop` to cause all
local guests to be backed up.

When refactoring this logic in commit df5875b4, the assumption was that
every call will have one of the following parameters set: pool, list of
VMIDs or all (intentional or when exclude is used).

There is an addtional possibility, that vzdump is called with only
--stop. Thus there are no other parameters that would indicate which
VMIDs to include.

In this case we want to return the empty hash.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoui: storage: add beta hint to PBS panel
Thomas Lamprecht [Wed, 8 Jul 2020 12:53:11 +0000 (14:53 +0200)]
ui: storage: add beta hint to PBS panel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobackup: update job: add missing permission description
Thomas Lamprecht [Wed, 8 Jul 2020 11:53:57 +0000 (13:53 +0200)]
backup: update job: add missing permission description

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobackup: factor out param permission check
Thomas Lamprecht [Wed, 8 Jul 2020 11:48:21 +0000 (13:48 +0200)]
backup: factor out param permission check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobackup: add missing user check in update_job
Oguz Bektas [Tue, 7 Jul 2020 12:55:39 +0000 (14:55 +0200)]
backup: add missing user check in update_job

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
3 years agoRevert "Close #1623: replace apt-get to apt"
Thomas Lamprecht [Wed, 8 Jul 2020 08:55:56 +0000 (10:55 +0200)]
Revert "Close #1623: replace apt-get to apt"

This reverts commit 19137ed620b22dc012c17999ff4efc0186c677c0.

3 years agobump version to 6.2-8
Thomas Lamprecht [Tue, 7 Jul 2020 17:16:50 +0000 (19:16 +0200)]
bump version to 6.2-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoClose #1623: replace apt-get to apt
Moayad Almalat [Tue, 7 Jul 2020 10:20:00 +0000 (12:20 +0200)]
Close #1623: replace apt-get to apt

Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
3 years agoui: sdn/simple zone: comment out onlineHelp for now
Thomas Lamprecht [Tue, 7 Jul 2020 16:47:47 +0000 (18:47 +0200)]
ui: sdn/simple zone: comment out onlineHelp for now

until we update the doc-generator package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosdn: add simple zone plugin
Alexandre Derumier [Wed, 1 Jul 2020 07:11:10 +0000 (09:11 +0200)]
sdn: add simple zone plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: move mtu from vnetview to zoneview
Alexandre Derumier [Wed, 1 Jul 2020 07:11:09 +0000 (09:11 +0200)]
sdn: move mtu from vnetview to zoneview

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: vnetedit: tag optional && fix max tag value
Alexandre Derumier [Wed, 1 Jul 2020 07:11:08 +0000 (09:11 +0200)]
sdn: vnetedit: tag optional && fix max tag value

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoui: add PBS edit input panel
Thomas Lamprecht [Tue, 7 Jul 2020 16:29:09 +0000 (18:29 +0200)]
ui: add PBS edit input panel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: ui: sort JS source list
Thomas Lamprecht [Tue, 7 Jul 2020 15:59:42 +0000 (17:59 +0200)]
buildsys: ui: sort JS source list

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-7
Thomas Lamprecht [Mon, 6 Jul 2020 20:11:25 +0000 (22:11 +0200)]
bump version to 6.2-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: drop usless pbs upload finished log message
Thomas Lamprecht [Mon, 6 Jul 2020 20:03:40 +0000 (22:03 +0200)]
vzdump: drop usless pbs upload finished log message

this is implied, if not there should be an error.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: set target key for PBS based backups
Thomas Lamprecht [Fri, 3 Jul 2020 14:49:19 +0000 (16:49 +0200)]
vzdump: set target key for PBS based backups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: rename tasks 'tarfile' key to 'target'
Thomas Lamprecht [Fri, 3 Jul 2020 14:45:19 +0000 (16:45 +0200)]
vzdump: rename tasks 'tarfile' key to 'target'

Even now we can have plain vma files which, while an archive, are not
a TARfile.
Use the generic (backup) target as key instead. Makes it less
confusing to be reused for PBS in a later patch.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi nodes/netstat: cleanup indentation and refactor slightly
Thomas Lamprecht [Fri, 3 Jul 2020 06:06:44 +0000 (08:06 +0200)]
api nodes/netstat: cleanup indentation and refactor slightly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: downgrade remapped from error to warning/working
Thomas Lamprecht [Thu, 2 Jul 2020 16:36:46 +0000 (18:36 +0200)]
ui: ceph: downgrade remapped from error to warning/working

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: cifs: make user and password independent from each other
Thomas Lamprecht [Wed, 1 Jul 2020 10:01:31 +0000 (12:01 +0200)]
ui: cifs: make user and password independent from each other

the guest account can be password protected, as can a user have no
password - so don't enforce either if the other is set.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: cifs: monitor scan-store errors and show in combobox
Thomas Lamprecht [Wed, 1 Jul 2020 09:51:31 +0000 (11:51 +0200)]
ui: cifs: monitor scan-store errors and show in combobox

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: cifs: reset proxy cache also if user or password change
Thomas Lamprecht [Wed, 1 Jul 2020 09:50:36 +0000 (11:50 +0200)]
ui: cifs: reset proxy cache also if user or password change

not only on server address change.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: cifs: eslint fixes
Thomas Lamprecht [Wed, 1 Jul 2020 09:20:44 +0000 (11:20 +0200)]
ui: cifs: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi/nodes: factor out getting VNC connection info
Thomas Lamprecht [Wed, 1 Jul 2020 07:02:49 +0000 (09:02 +0200)]
api/nodes: factor out getting VNC connection info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoSimplify how maxfiles is determined
Fabian Ebner [Tue, 30 Jun 2020 08:24:26 +0000 (10:24 +0200)]
Simplify how maxfiles is determined

No functional change is intended.
The preference order is: option, then storage config, then vzdump defaults.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agostorage_info: avoid duplication
Fabian Ebner [Tue, 30 Jun 2020 08:24:25 +0000 (10:24 +0200)]
storage_info: avoid duplication

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoDie if dumpdir and storage are both defined
Fabian Ebner [Tue, 30 Jun 2020 08:24:24 +0000 (10:24 +0200)]
Die if dumpdir and storage are both defined

dumpdir will be overwritten if a storage is specified

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agofixup: get fallback caps correctly
Thomas Lamprecht [Fri, 26 Jun 2020 08:20:20 +0000 (10:20 +0200)]
fixup: get fallback caps correctly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agochange permissions for non-network cloudinit settings
Mira Limbeck [Thu, 25 Jun 2020 14:48:48 +0000 (16:48 +0200)]
change permissions for non-network cloudinit settings

With the introduction of VM.Config.Cloudinit we can set the user,
password and an SSH key without VM.Config.Network permission.
Keep the fallback for VM.Config.Network so custom roles don't break.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
3 years agosdn: fix zone icon in tree view
Alexandre Derumier [Fri, 19 Jun 2020 15:50:07 +0000 (17:50 +0200)]
sdn: fix zone icon in tree view

also add status icon:
  -pending (yellow triangle)
  -error (red cross)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agonode_config: followup s/domain/alias
Fabian Grünbichler [Thu, 25 Jun 2020 08:28:14 +0000 (10:28 +0200)]
node_config: followup s/domain/alias

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agonode_config: Allow leading underscore in ACME aliases
Fabian Möller [Mon, 22 Jun 2020 10:10:14 +0000 (12:10 +0200)]
node_config: Allow leading underscore in ACME aliases

3 years agofix #2810: reset state of mounts array in initComponent
Dominik Csapak [Wed, 24 Jun 2020 07:32:37 +0000 (09:32 +0200)]
fix #2810: reset state of mounts array in initComponent

so that each new instance has an empty mounts list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: ProcessorEdit: allow modifications with inaccessible CPU model
Stefan Reiter [Mon, 4 May 2020 10:58:43 +0000 (12:58 +0200)]
ui: ProcessorEdit: allow modifications with inaccessible CPU model

An administrator can set a custom CPU model for a VM where the general user
does not have permission to use this particular model. Prior to this change
the ProcessorEdit component would be broken by this, since the store of the
CPU type selector did not contain the configured CPU model.

Add it in manually if this situation occurs (with 'Unknown' vendor, since
we cannot retrieve it from the API), but warn the user that changing it
would be an irreversible action.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoui: CPUModelSelector: use API call for store
Stefan Reiter [Mon, 4 May 2020 10:58:42 +0000 (12:58 +0200)]
ui: CPUModelSelector: use API call for store

CPU models are retrieved from the new /nodes/X/cpu call and ordered by
vendor to approximate the previous sort order (less change for accustomed
users).

With this, custom CPU models are now selectable via the GUI.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoui: ProcessorEdit: fix total core calculation and use view model
Stefan Reiter [Mon, 4 May 2020 10:58:41 +0000 (12:58 +0200)]
ui: ProcessorEdit: fix total core calculation and use view model

Clean up the code in ProcessorEdit with a view model and fix a bug while at
it - previously, pressing the 'Reset' button on the form would always set
the value of the total core count field to 1, so mark 'totalcores' with
'isFormField: false' to avoid reset.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoapi: register /nodes/X/cpu call for CPU models
Stefan Reiter [Mon, 4 May 2020 10:58:40 +0000 (12:58 +0200)]
api: register /nodes/X/cpu call for CPU models

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agovzdump: move VMID sorting to check_vmids
Thomas Lamprecht [Wed, 17 Jun 2020 13:45:56 +0000 (15:45 +0200)]
vzdump: move VMID sorting to check_vmids

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: import split_list and cleanup
Thomas Lamprecht [Wed, 17 Jun 2020 13:45:21 +0000 (15:45 +0200)]
vzdump: import split_list and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: style fix, trailing comma and closing brace on new line
Thomas Lamprecht [Wed, 17 Jun 2020 13:39:42 +0000 (15:39 +0200)]
vzdump: style fix, trailing comma and closing brace on new line

also sort the hash definition

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: test: adapt and add more tests that are possible now
Aaron Lauterer [Wed, 17 Jun 2020 12:13:39 +0000 (14:13 +0200)]
vzdump: test: adapt and add more tests that are possible now

Now, with the logic for `all` and `exclude` in the same single method,
additional tests for these cases are possible.

Adapt to hash return value of `get_included_guests`.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agovzdump: move remaining guest include logic to single method
Aaron Lauterer [Wed, 17 Jun 2020 12:13:38 +0000 (14:13 +0200)]
vzdump: move remaining guest include logic to single method

The `guest include` logic handling `all` and `exclude` parameters was in
the `PVE::VZDump->exec_backup()` method. Moving this logic into the
`get_included_guests` method allows us to simplify and generalize it.

This helps to make the overall logic easier to test and develop other
features around vzdump backup jobs.

The method now returns a hash with node names as keys mapped to arrays
of VMIDs on these nodes that are included in the vzdump job.

The VZDump API call to create a new backup is adapted to use the new
method to create the list of local VMIDs and the skiplist.

Permission checks are kept where they are to be able to handle missing
permissions according to the current context. The old behavior to die
on a backup job when the user is missing the permission to a guest and
the job is not an 'all' or 'exclude' job is kept.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agofix #2784: always compare ACME domains in lower case
Fabian Grünbichler [Wed, 17 Jun 2020 09:15:11 +0000 (11:15 +0200)]
fix #2784: always compare ACME domains in lower case

otherwise the ACME endpoint might return the ordered domain in lower
case and we fail to find our plugin config.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agofix #2771: relax cert API endpoints permissions
Fabian Grünbichler [Wed, 17 Jun 2020 09:42:16 +0000 (11:42 +0200)]
fix #2771: relax cert API endpoints permissions

allow users with Sys.Modify to modify custom or ACME certificates. those
users can already hose the system in plenty of ways, no reason to
restrict this in particular to being root@pam only.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agofix #2802: metric flush check should not care about current usage
Thomas Lamprecht [Wed, 17 Jun 2020 08:16:23 +0000 (10:16 +0200)]
fix #2802: metric flush check should not care about current usage

We only need to check if the next data addition brings us over the
batch send size, not if we have already at least half of that data in
there, as else we may get again over the batch sent size.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: update versioned dependency for widget-toolkit
Thomas Lamprecht [Tue, 16 Jun 2020 15:01:54 +0000 (17:01 +0200)]
d/control: update versioned dependency for widget-toolkit

for the refactored out disk manage stuff

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodc/Tasks: pass endtime to make duration calculation correct
Thomas Lamprecht [Tue, 16 Jun 2020 15:00:26 +0000 (17:00 +0200)]
dc/Tasks: pass endtime to make duration calculation correct

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: use pmxDiskList from widget-toolkit
Dominik Csapak [Tue, 16 Jun 2020 09:06:36 +0000 (11:06 +0200)]
ui: use pmxDiskList from widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: use pmxDiskSelector from widget-toolkit
Dominik Csapak [Tue, 16 Jun 2020 09:06:35 +0000 (11:06 +0200)]
ui: use pmxDiskSelector from widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agosdn: browser: fix Permissions.Modify
Alexandre Derumier [Fri, 12 Jun 2020 09:58:08 +0000 (11:58 +0200)]
sdn: browser: fix Permissions.Modify

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoapi : cluster resources: add sdn audit permission
Alexandre Derumier [Fri, 12 Jun 2020 11:31:28 +0000 (13:31 +0200)]
api : cluster resources: add sdn audit permission

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosmall nit follouwp: use $var->[0] to acccess array ref element
Thomas Lamprecht [Mon, 8 Jun 2020 13:57:34 +0000 (15:57 +0200)]
small nit follouwp: use $var->[0] to acccess array ref element

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: test: add first tests to the guest include logic
Aaron Lauterer [Mon, 8 Jun 2020 13:00:35 +0000 (15:00 +0200)]
vzdump: test: add first tests to the guest include logic

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agovzdump: make guest include logic testable
Aaron Lauterer [Mon, 8 Jun 2020 13:00:34 +0000 (15:00 +0200)]
vzdump: make guest include logic testable

As a first step to make the whole guest include logic more testable the
part from the API endpoint has been moved to its own method with as
little changes as possible.

Everything concerning `all` and `exclude` logic is still in the
PVE::VZDump->exec_backup() method.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agovzdump: format size: future proof against huge VM disks
Thomas Lamprecht [Mon, 8 Jun 2020 13:54:35 +0000 (15:54 +0200)]
vzdump: format size: future proof against huge VM disks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd model information to ZFS create window
Stoiko Ivanov [Fri, 5 Jun 2020 13:24:55 +0000 (15:24 +0200)]
add model information to ZFS create window

and improve the layout by adding flex values and increasing the width.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agoui: migrate: sort migrations hints by text column
Thomas Lamprecht [Sat, 6 Jun 2020 17:24:27 +0000 (19:24 +0200)]
ui: migrate: sort migrations hints by text column

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoAllow setting no target storage and make it default
Fabian Ebner [Mon, 4 May 2020 08:50:40 +0000 (10:50 +0200)]
Allow setting no target storage and make it default

so the current disk locations can be preserved even if
there are multiple local disks. And users don't have to
manually select the current storage if there is only one
local disk.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoDon't show empty parentheses when size is not known
Fabian Ebner [Mon, 4 May 2020 08:50:39 +0000 (10:50 +0200)]
Don't show empty parentheses when size is not known

The size of VM state files and the size of unused disks not
referenced by any snapshot is not saved in the VM configuration,
so it's not available here either.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agodrop jslint lines
Thomas Lamprecht [Sat, 6 Jun 2020 16:11:47 +0000 (18:11 +0200)]
drop jslint lines

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph/status: cleanup legacy version handling
Thomas Lamprecht [Wed, 3 Jun 2020 17:12:45 +0000 (19:12 +0200)]
ui: ceph/status: cleanup legacy version handling

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-6
Thomas Lamprecht [Wed, 3 Jun 2020 14:42:40 +0000 (16:42 +0200)]
bump version to 6.2-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: migration: add maxHeight to migration window
Tim Marx [Tue, 19 May 2020 10:54:54 +0000 (12:54 +0200)]
ui: migration: add maxHeight to migration window

to prevent indefinite growth in case of e.g. many local disks

Signed-off-by: Tim Marx <t.marx@proxmox.com>
3 years agoui: backup grid: use boxLabel type and VMID
Thomas Lamprecht [Wed, 3 Jun 2020 14:26:25 +0000 (16:26 +0200)]
ui: backup grid: use boxLabel type and VMID

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add checkbox for vmid filter for backupview
Dominik Csapak [Fri, 29 May 2020 12:28:22 +0000 (14:28 +0200)]
ui: add checkbox for vmid filter for backupview

instead of hardcoding the text 'type-id-' into the searchbar
to accomodate for the additional size, add an overflowHandler
to the toolbar (for very small display sizes)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: ceph/pool: allow autoscale on create
Thomas Lamprecht [Wed, 3 Jun 2020 14:14:55 +0000 (16:14 +0200)]
ui: ceph/pool: allow autoscale on create

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: extend pveceph pool ls
Alwin Antreich [Wed, 3 Jun 2020 13:28:59 +0000 (15:28 +0200)]
ceph: extend pveceph pool ls

to present more data on pools and a nicer formated output on the command
line.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: extend the pool view
Alwin Antreich [Wed, 3 Jun 2020 13:28:58 +0000 (15:28 +0200)]
ceph: extend the pool view

to add the pg_autoscale_mode since its activated in Ceph Octopus by
default and emmits a waring (ceph status) if a pool has too many PGs.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: avoid fork/exec overhead for every ceph_cluster_status call
Thomas Lamprecht [Wed, 3 Jun 2020 13:30:02 +0000 (15:30 +0200)]
ceph: avoid fork/exec overhead for every ceph_cluster_status call

detect heuristically if we need to get the full mon and mgr map extra
for Octopus

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph/StatusDetail: cleanups
Thomas Lamprecht [Wed, 3 Jun 2020 13:25:39 +0000 (15:25 +0200)]
ui: ceph/StatusDetail: cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoMake PVE6 compatible with supported ceph versions
Alwin Antreich [Wed, 3 Jun 2020 11:39:42 +0000 (13:39 +0200)]
Make PVE6 compatible with supported ceph versions

Luminous, Nautilus and Octopus. In Octopus the mon_status was dropped.
Also the ceph status was cleaned up and doesn't provide the mgrmap and
monmap.

The rados queries used in the ceph status API endpoints (cluster / node)
were factored out and merged to one place.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoui: followup: use title case
Thomas Lamprecht [Wed, 3 Jun 2020 12:22:07 +0000 (14:22 +0200)]
ui: followup: use title case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosdn: vlan : add mtu field
Alexandre Derumier [Tue, 2 Jun 2020 09:48:26 +0000 (11:48 +0200)]
sdn: vlan : add mtu field

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: add vlan aware option to vnet
Alexandre Derumier [Tue, 2 Jun 2020 09:48:25 +0000 (11:48 +0200)]
sdn: add vlan aware option to vnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: use new helper methods to update config
Thomas Lamprecht [Wed, 3 Jun 2020 12:18:18 +0000 (14:18 +0200)]
sdn: use new helper methods to update config

and do a breaks on older network package as we do not depend on it
due to it being an optional/experimental feature, so reverse the
depends with the breaks.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoPVE/VZDump.pm: use new --quiet option for proxmox-backup-client prune
Dietmar Maurer [Wed, 3 Jun 2020 09:08:50 +0000 (11:08 +0200)]
PVE/VZDump.pm: use new --quiet option for proxmox-backup-client prune

3 years agoui: fix HotplugFeatureSelector
Dominik Csapak [Fri, 29 May 2020 11:07:57 +0000 (13:07 +0200)]
ui: fix HotplugFeatureSelector

we recently changed the setValue behaviour of the inputpanel and editwindow
(we now set all fields with the same names), which leads to wrong
behaviour here

use a different name for the internal checkboxes to avoid this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: fix missing change from 'pve-' to 'pmx-' models
Dominik Csapak [Fri, 29 May 2020 11:07:56 +0000 (13:07 +0200)]
ui: fix missing change from 'pve-' to 'pmx-' models

we forgot to change these

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: dc/summary: sync height of first two panels with others
Thomas Lamprecht [Tue, 2 Jun 2020 10:23:51 +0000 (12:23 +0200)]
ui: dc/summary: sync height of first two panels with others

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: bump version of proxmox-widget-toolkit dependency
Thomas Lamprecht [Tue, 2 Jun 2020 10:15:56 +0000 (12:15 +0200)]
d/control: bump version of proxmox-widget-toolkit dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocss: remove icon colors
Dominik Csapak [Thu, 28 May 2020 11:02:53 +0000 (13:02 +0200)]
css: remove icon colors

they are now in the widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: Replication: use render_duration from widget-toolkit
Dominik Csapak [Thu, 28 May 2020 11:02:52 +0000 (13:02 +0200)]
ui: Replication: use render_duration from widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoapi: improve node index with missing/broken cert
Fabian Grünbichler [Tue, 2 Jun 2020 07:40:55 +0000 (09:40 +0200)]
api: improve node index with missing/broken cert

since this API endpoint is used for the node selector in the GUI, which
causes quite widespread breakage.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agopveceph: make installing luminous on PVE 6 experimental
Thomas Lamprecht [Thu, 28 May 2020 13:23:28 +0000 (15:23 +0200)]
pveceph: make installing luminous on PVE 6 experimental

It's only available for the upgrade from 5.4 anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopveceph: allow installing octopus as experimental option
Thomas Lamprecht [Thu, 28 May 2020 13:22:47 +0000 (15:22 +0200)]
pveceph: allow installing octopus as experimental option

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-5
Thomas Lamprecht [Wed, 27 May 2020 12:31:07 +0000 (14:31 +0200)]
bump version to 6.2-5

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