5118 Commits

Author SHA1 Message Date
Thomas Lamprecht
795ea1ff41 bump version to 6.2-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-07 19:16:50 +02:00
Moayad Almalat
c89d1756bf Close #1623: replace apt-get to apt
Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
2020-07-07 18:52:28 +02:00
Thomas Lamprecht
1063923b75 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>
2020-07-07 18:47:48 +02:00
Alexandre Derumier
8c460b6ed5 sdn: add simple zone plugin
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-07-07 18:41:18 +02:00
Alexandre Derumier
a0881499d2 sdn: move mtu from vnetview to zoneview
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-07-07 18:39:55 +02:00
Alexandre Derumier
2c38f63872 sdn: vnetedit: tag optional && fix max tag value
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-07-07 18:39:55 +02:00
Thomas Lamprecht
21dfcce135 ui: add PBS edit input panel
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-07 18:29:09 +02:00
Thomas Lamprecht
a017a1d692 buildsys: ui: sort JS source list
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-07 18:00:34 +02:00
Thomas Lamprecht
9b63d460b4 bump version to 6.2-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-06 22:11:25 +02:00
Thomas Lamprecht
42a618e8e9 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>
2020-07-06 22:03:42 +02:00
Thomas Lamprecht
ae73319d40 vzdump: set target key for PBS based backups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 16:49:19 +02:00
Thomas Lamprecht
848cf539e5 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>
2020-07-03 16:45:22 +02:00
Thomas Lamprecht
96d6c0c752 api nodes/netstat: cleanup indentation and refactor slightly
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 08:06:44 +02:00
Thomas Lamprecht
81a8968836 ui: ceph: downgrade remapped from error to warning/working
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-02 18:36:46 +02:00
Thomas Lamprecht
4ba23f1a51 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>
2020-07-01 12:02:34 +02:00
Thomas Lamprecht
f183f9d815 ui: cifs: monitor scan-store errors and show in combobox
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-01 12:02:25 +02:00
Thomas Lamprecht
797168ea50 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>
2020-07-01 11:50:45 +02:00
Thomas Lamprecht
897eea0c56 ui: cifs: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-01 11:20:44 +02:00
Thomas Lamprecht
cf0d18e2a8 api/nodes: factor out getting VNC connection info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-01 09:02:49 +02:00
Fabian Ebner
9c090f0c06 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>
2020-06-30 13:55:11 +02:00
Fabian Ebner
474778f9d0 storage_info: avoid duplication
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2020-06-30 13:54:32 +02:00
Fabian Ebner
0ba96fd0ed 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>
2020-06-30 13:54:16 +02:00
Thomas Lamprecht
5731748e2e fixup: get fallback caps correctly
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-26 10:20:20 +02:00
Mira Limbeck
340bffa7ec 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>
2020-06-26 09:43:00 +02:00
Alexandre Derumier
4b0c8805a3 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>
2020-06-25 13:35:55 +02:00
Fabian Grünbichler
c45e1bfa0c node_config: followup s/domain/alias
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-06-25 10:28:14 +02:00
Fabian Möller
b3d4217078 node_config: Allow leading underscore in ACME aliases 2020-06-25 10:25:45 +02:00
Dominik Csapak
ce4e6e9afb 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>
2020-06-24 09:45:47 +02:00
Stefan Reiter
bcdd608744 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>
2020-06-17 15:51:11 +02:00
Stefan Reiter
2acbaad618 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>
2020-06-17 15:51:11 +02:00
Stefan Reiter
0a157fbd17 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>
2020-06-17 15:51:11 +02:00
Stefan Reiter
66d1a6d75e api: register /nodes/X/cpu call for CPU models
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-06-17 15:51:11 +02:00
Thomas Lamprecht
9147f87c75 vzdump: move VMID sorting to check_vmids
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-17 15:45:56 +02:00
Thomas Lamprecht
3af9591798 vzdump: import split_list and cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-17 15:45:21 +02:00
Thomas Lamprecht
475dd0fbf5 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>
2020-06-17 15:39:46 +02:00
Aaron Lauterer
9f6c322c1d 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>
2020-06-17 15:16:06 +02:00
Aaron Lauterer
be30864709 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>
2020-06-17 15:16:06 +02:00
Fabian Grünbichler
a7c1c61175 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>
2020-06-17 14:00:43 +02:00
Fabian Grünbichler
34b8c26637 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>
2020-06-17 14:00:43 +02:00
Thomas Lamprecht
cd1588fc2c 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>
2020-06-17 10:16:27 +02:00
Thomas Lamprecht
7a0e36cdfd d/control: update versioned dependency for widget-toolkit
for the refactored out disk manage stuff

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-16 17:01:56 +02:00
Thomas Lamprecht
ece2fe4ee3 dc/Tasks: pass endtime to make duration calculation correct
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-16 17:00:26 +02:00
Dominik Csapak
7e2bd6a98a ui: use pmxDiskList from widget-toolkit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-16 11:43:05 +02:00
Dominik Csapak
cfec9fb991 ui: use pmxDiskSelector from widget-toolkit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-16 11:43:05 +02:00
Alexandre Derumier
6e8e96925b sdn: browser: fix Permissions.Modify
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-15 15:35:30 +02:00
Alexandre Derumier
7b0ab1b482 api : cluster resources: add sdn audit permission
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-15 15:35:30 +02:00
Thomas Lamprecht
6f28b7f295 small nit follouwp: use $var->[0] to acccess array ref element
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-08 15:57:34 +02:00
Aaron Lauterer
400ef82478 vzdump: test: add first tests to the guest include logic
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2020-06-08 15:54:42 +02:00
Aaron Lauterer
242567f2df 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>
2020-06-08 15:54:42 +02:00
Thomas Lamprecht
47702088db vzdump: format size: future proof against huge VM disks
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-08 15:54:35 +02:00