]> git.proxmox.com Git - pve-manager-legacy.git/log
pve-manager-legacy.git
4 years agogui/cluster: validate cluster name length on create
Stefan Reiter [Wed, 29 Jan 2020 10:27:19 +0000 (11:27 +0100)]
gui/cluster: validate cluster name length on create

API limits this to 15, validate in GUI as well for instant user
feedback.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agoui: fix disk controllers sortByPreviousUsage iteration
Thomas Lamprecht [Thu, 30 Jan 2020 12:36:53 +0000 (13:36 +0100)]
ui: fix disk controllers sortByPreviousUsage iteration

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.1-6
Thomas Lamprecht [Wed, 29 Jan 2020 20:28:27 +0000 (21:28 +0100)]
bump version to 6.1-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agowww: add permissions button to userview
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:26 +0000 (13:54 +0100)]
www: add permissions button to userview

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoapi/tasks: attribute token tasks to user
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:24 +0000 (13:54 +0100)]
api/tasks: attribute token tasks to user

and store token ID in separate, currently unused member.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agod/control: bump version dependencies for libpve-http-server-perl
Thomas Lamprecht [Wed, 29 Jan 2020 09:25:42 +0000 (10:25 +0100)]
d/control: bump version dependencies for libpve-http-server-perl

For new auth extract helper support

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopveproxy: use new cookie extraction method
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:23 +0000 (13:54 +0100)]
pveproxy: use new cookie extraction method

we only care about the regular cookie case for the index.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agod/control: bump version dependencies for pve-common
Thomas Lamprecht [Wed, 29 Jan 2020 09:24:47 +0000 (10:24 +0100)]
d/control: bump version dependencies for pve-common

For allowtoken property support in schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agorest_handler: implement 'allowtoken' property
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:22 +0000 (13:54 +0100)]
rest_handler: implement 'allowtoken' property

to filter out API paths that are not available with API tokens for
security reasons, such as access control related endpoints.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agod/control: bump version dependencies for pve-access-control
Thomas Lamprecht [Wed, 29 Jan 2020 09:19:15 +0000 (10:19 +0100)]
d/control: bump version dependencies for pve-access-control

for API token verification support.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoauth_handler: handle API tokens
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:21 +0000 (13:54 +0100)]
auth_handler: handle API tokens

by verifying them via pve-access-control, as alternative to regular
tickets.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agowww: add 'users' columns to Groups model
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:25 +0000 (13:54 +0100)]
www: add 'users' columns to Groups model

it's useful information that now gets returned by the API, so might as
well display it.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoProtect the user's tfa key setting.
Wolfgang Link [Fri, 17 Jan 2020 13:48:59 +0000 (14:48 +0100)]
Protect the user's tfa key setting.

If oath or U2F is set, it should not be possible to change it
in the GUI on the user edit window.
It disables the second factor, but leave the tfa key behind
in the file tfa.cfg.
The key in the tfa.cfg file is a problem when the user tries to recreate a key.
The old key must be deleted before a new one can be created.

4 years agomanager: startIPStore: status can be null/undef
Thomas Lamprecht [Mon, 27 Jan 2020 18:09:10 +0000 (19:09 +0100)]
manager: startIPStore: status can be null/undef

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoAPI2: Network: add vlan-raw-device && vlan-id options.
Alexandre Derumier [Sat, 25 Jan 2020 09:30:12 +0000 (10:30 +0100)]
API2: Network: add vlan-raw-device && vlan-id options.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agogui: qemu: HardwareView: improve button disable code
Dominik Csapak [Fri, 17 Jan 2020 16:14:10 +0000 (17:14 +0100)]
gui: qemu: HardwareView: improve button disable code

this improves following behaviours:
* do not loop over items multiple times
  (we iterated one time extra for efidisk)
* do not check every item for cloudinit
  (we even checked non-disk types)
* make the counts more generic using an object
* also disable cloudinit button when you have one pending
* also disable serial/net button when at limit or the user has
  not the right priviliges

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: qemu HardwareView: specify hardware counts in Utils
Dominik Csapak [Fri, 17 Jan 2020 16:14:09 +0000 (17:14 +0100)]
gui: qemu HardwareView: specify hardware counts in Utils

this also fixes the issue that we only showed 4 hostpci devices in
the gui despite raising the limit in the backend to 16

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: controller selector: use OSDefaults.getDefaults
Thomas Lamprecht [Fri, 24 Jan 2020 08:37:09 +0000 (09:37 +0100)]
ui: controller selector: use OSDefaults.getDefaults

it does the fallback for us already

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: controller selector: refactor and cleanup
Thomas Lamprecht [Fri, 24 Jan 2020 08:35:58 +0000 (09:35 +0100)]
ui: controller selector: refactor and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: avoid duplication of guest disc controller maxIDs definition
Thomas Lamprecht [Thu, 23 Jan 2020 11:15:19 +0000 (12:15 +0100)]
ui: avoid duplication of guest disc controller maxIDs definition

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: FW/Alias: whitespace/indentation fixes
Thomas Lamprecht [Wed, 22 Jan 2020 11:40:35 +0000 (12:40 +0100)]
ui: FW/Alias: whitespace/indentation fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: FW/Alias: make grid flex
Thomas Lamprecht [Wed, 22 Jan 2020 11:40:15 +0000 (12:40 +0100)]
ui: FW/Alias: make grid flex

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: FW/Alias: make edit window wider to fit IPv6 CIDR
Thomas Lamprecht [Wed, 22 Jan 2020 11:39:58 +0000 (12:39 +0100)]
ui: FW/Alias: make edit window wider to fit IPv6 CIDR

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoBroadcast supported CPU flags
Stefan Reiter [Thu, 21 Nov 2019 14:53:52 +0000 (15:53 +0100)]
Broadcast supported CPU flags

pvestatd will check if the KVM version has changed using
kvm_user_version (which automatically clears its cache if QEMU/KVM
updates), and if it has, query supported CPU flags and broadcast them as
key-value pairs to the cluster.

If detection fails, we clear the kv-store and set up a delay (120s), to not
try again too quickly.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agofix #2552: ui: allow to collapse notes panel from guest summary
Thomas Lamprecht [Fri, 10 Jan 2020 14:51:58 +0000 (15:51 +0100)]
fix #2552: ui: allow to collapse notes panel from guest summary

Allow to collapse and expand the "Notes" panel on the virtual guests
summary panel.

Further add a browser setting to control the default behavior, one
can chose from:
 * expand on show (default)
 * collapse on show
 * collapse if there are no notes

This way users can make slightly better use of the available screen
space for the guest status.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Co-developed-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agonetwork reload: check if recent enough PVE ifupdown2 version is present
Thomas Lamprecht [Tue, 14 Jan 2020 10:00:25 +0000 (11:00 +0100)]
network reload: check if recent enough PVE ifupdown2 version is present

We need a recent version *and* our patches on top of the vanilla
ifupdown2:
0001-don-t-remove-tap-veth-fwpr-interfaces-from-bridge-on.patch
0004-don-t-remove-bridge-is-tap-veth-are-still-plugged.patch

So check for at least 1.2.8 and the pve string in the version output.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi2 : network : add mtu
Alexandre Derumier [Wed, 8 Jan 2020 03:31:20 +0000 (04:31 +0100)]
api2 : network : add mtu

min 1280 to handle ipv6 && ipv4
max 65520 (infinibad support it)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2: network: add bond-primary option
Alexandre Derumier [Wed, 8 Jan 2020 03:31:19 +0000 (04:31 +0100)]
api2: network: add bond-primary option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoifupdown1: bridgevlan: add bridge-vids list support
Alexandre Derumier [Wed, 8 Jan 2020 03:31:18 +0000 (04:31 +0100)]
ifupdown1: bridgevlan: add bridge-vids list support

like ifupdown2, support multiple values

iface vmbr0
   bridge-vids 2 4 5-10 70

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoui: settings: use default-value functionallity from state manager
Thomas Lamprecht [Fri, 10 Jan 2020 14:50:59 +0000 (15:50 +0100)]
ui: settings: use default-value functionallity from state manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2334: gui/cloudinit: enable edit button only when editor is set
Dominik Csapak [Thu, 9 Jan 2020 08:59:35 +0000 (09:59 +0100)]
fix #2334: gui/cloudinit: enable edit button only when editor is set

when a user does not have the right privileges for cloudinit (e.g.
VM.Config.Network), we do not set an editor, which results in a button
that does nothing when pressed

fix this by enabling the button only when there is an editor set

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui/vnc: reload IFrame-embedded xtermjs on LXC startup
Stefan Reiter [Thu, 19 Dec 2019 11:17:49 +0000 (12:17 +0100)]
ui/vnc: reload IFrame-embedded xtermjs on LXC startup

Same as with previous QEMU patch, avoids manual reload after starting a
container while the "Console" window is open.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agoui/lxc: cleanup pveSelNode to variable
Stefan Reiter [Thu, 19 Dec 2019 11:17:48 +0000 (12:17 +0100)]
ui/lxc: cleanup pveSelNode to variable

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agofollowup: code cleanup/nitpicking
Thomas Lamprecht [Wed, 18 Dec 2019 18:40:09 +0000 (19:40 +0100)]
followup: code cleanup/nitpicking

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui/vnc: reload IFrame-embedded noVNC on VM startup
Stefan Reiter [Wed, 18 Dec 2019 12:19:50 +0000 (13:19 +0100)]
ui/vnc: reload IFrame-embedded noVNC on VM startup

Avoids having to do the 'Console' -> 'Summary' -> 'Console' dance
everytime the VM is started and the Console window is currently open.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agoui/vnc: whitespace cleanup
Stefan Reiter [Wed, 18 Dec 2019 12:19:49 +0000 (13:19 +0100)]
ui/vnc: whitespace cleanup

and formatting

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agoui/qemu: cleanup pveSelNode to variable
Stefan Reiter [Wed, 18 Dec 2019 12:19:48 +0000 (13:19 +0100)]
ui/qemu: cleanup pveSelNode to variable

'vm' has been in use further down anyway, let's move it up.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agobump version to 6.1-5
Thomas Lamprecht [Mon, 16 Dec 2019 11:02:06 +0000 (12:02 +0100)]
bump version to 6.1-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: add a bit of context to error message
Thomas Lamprecht [Mon, 16 Dec 2019 14:11:42 +0000 (15:11 +0100)]
followup: add a bit of context to error message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoAPI: OSD: Fix #2496 Check OSD Network
Aaron Lauterer [Mon, 16 Dec 2019 11:04:10 +0000 (12:04 +0100)]
API: OSD: Fix #2496 Check OSD Network

It's possible to have a situation where the cluster network (used for
inter-OSD traffic) is not configured on a node. The OSD can still be
created but can't communicate.

This check will abort the creation if there is no IP within the subnet
of the cluster network present on the node. If there is no dedicated
cluster network the public network is used as a failsafe even though
this situation should not occur.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agofix #2509: add --rsyncable to pigz again
Stefan Reiter [Mon, 16 Dec 2019 10:16:38 +0000 (11:16 +0100)]
fix #2509: add --rsyncable to pigz again

fixes commit 8538b4a538aea3cf07a7da0d68050563822b234e

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years ago fix BandwidthSelector empty return value
Dominik Csapak [Mon, 16 Dec 2019 10:07:30 +0000 (11:07 +0100)]
 fix BandwidthSelector empty return value

if we do not want to return a value for submitting, we have to return
'null', every other value will get returned by getSubmitValue,
including 'undefined' and '' (empty string)

this fixes an issue when the user did not enter any bwlimit on
restore (the user would get an api error that bwlimit expects an
integer and not '')

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agogrammar fix: s/does not exists/does not exist/g
Thomas Lamprecht [Fri, 13 Dec 2019 11:51:22 +0000 (12:51 +0100)]
grammar fix: s/does not exists/does not exist/g

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogrammar fix: s/does not exists/does not exist/g
Thomas Lamprecht [Fri, 13 Dec 2019 11:09:44 +0000 (12:09 +0100)]
grammar fix: s/does not exists/does not exist/g

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: clarify which storage is used for automatic
Thomas Lamprecht [Wed, 11 Dec 2019 08:18:58 +0000 (09:18 +0100)]
followup: clarify which storage is used for automatic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: avoid a doc-gen bump, use general QM chapter as onlineHelp
Thomas Lamprecht [Wed, 11 Dec 2019 08:01:10 +0000 (09:01 +0100)]
followup: avoid a doc-gen bump, use general QM chapter as onlineHelp

doc was just bumped, there's no real content, I don't want to bump it
just for this, so replace with link to QM and a fixme comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: make vmstatestorage configureable
Dominik Csapak [Mon, 9 Dec 2019 14:27:02 +0000 (15:27 +0100)]
ui: make vmstatestorage configureable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: vm/HDEdit: really™ fix backup checkbox default
Thomas Lamprecht [Tue, 10 Dec 2019 10:29:10 +0000 (11:29 +0100)]
ui: vm/HDEdit: really™ fix backup checkbox default

By ensuring we delete the property if it's true (the backend default)
and set it is false, i.e., like originally (pre, mine and Aaron's
patch), but with reversed user input.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: IP in capital & what the node IP is
Thomas Lamprecht [Mon, 9 Dec 2019 17:18:47 +0000 (18:18 +0100)]
followup: IP in capital & what the node IP is

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: prevent null as return value for property type string
Tim Marx [Mon, 9 Dec 2019 13:30:28 +0000 (14:30 +0100)]
api: prevent null as return value for property type string

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoapi: update cluster status return properties
Tim Marx [Mon, 9 Dec 2019 13:30:27 +0000 (14:30 +0100)]
api: update cluster status return properties

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agowhitespace cleanup
Tim Marx [Mon, 9 Dec 2019 13:30:26 +0000 (14:30 +0100)]
whitespace cleanup

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agobump version to 6.1-4
Thomas Lamprecht [Mon, 9 Dec 2019 14:38:26 +0000 (15:38 +0100)]
bump version to 6.1-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/HDEdit: fix backup checkbox default
Thomas Lamprecht [Mon, 9 Dec 2019 14:42:40 +0000 (15:42 +0100)]
ui: vm/HDEdit: fix backup checkbox default

The recent change transformed this checkbox from a negative "No
Backup" to a positive "Backup" did not accounted for changing the
default fallback for the parseBoolean call.

As this would had suggested that disk are backed-up which aren't
backup, it could lead to pretty devastating results...

fixes commit 28c0b7da7d966e9c150a18900766a8f153483cd2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: rename to "Backup" but add tooltip
Thomas Lamprecht [Mon, 9 Dec 2019 13:52:51 +0000 (14:52 +0100)]
followup: rename to "Backup" but add tooltip

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: hdedit: change nobackup to include in backup
Aaron Lauterer [Mon, 2 Dec 2019 09:58:28 +0000 (10:58 +0100)]
ui: hdedit: change nobackup to include in backup

Change the behavior from having to activate the `No backup` checkbox to
exclude a disk from backups to having a `Include in backup` checkbox
that is checked by default.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoui: mpedit: activate backup on MP creation
Aaron Lauterer [Mon, 2 Dec 2019 09:58:26 +0000 (10:58 +0100)]
ui: mpedit: activate backup on MP creation

This patch enables the backup checkbox by default for newly created
LXC mount points.

Hopefully this will help to avoid situations in the future where people
realize too late that the mount point has not been backed up when they
expected it to because they missed the checkbox.

The reason why `view.isCreate` is not passed directly is because
AFAIU the 'view.isCreate' can have one of three values:
* null - editing an existing mount point
* true - creating a new mp
* array('unusedX') - adding an unused disk again

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agogui: set minWidth for node/guest Summary
Dominik Csapak [Wed, 4 Dec 2019 12:41:37 +0000 (13:41 +0100)]
gui: set minWidth for node/guest Summary

to make sure the panels are always readable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: let users choose the number of columns
Dominik Csapak [Wed, 4 Dec 2019 12:41:36 +0000 (13:41 +0100)]
gui: let users choose the number of columns

introduce a new browser setting, with which the users can choose between
the automatic mode of choosing columns, or always using 1/2/3 columns

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: {dc, node}/Summary: choose columns by panel size
Dominik Csapak [Wed, 4 Dec 2019 12:41:35 +0000 (13:41 +0100)]
gui: {dc, node}/Summary: choose columns by panel size

instead of viewport size, similar to the guest summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: GuestSummary: choose columns based on container width
Dominik Csapak [Wed, 4 Dec 2019 12:41:34 +0000 (13:41 +0100)]
gui: GuestSummary: choose columns based on container width

instead of the viewport width. This means that the number of columns can
change when the tree width changes, not only on browser window resize

for this to work reliably, we have to change the structure of the first
two panels, so that they are in one container for non-templates. if
we do not do this, there are some weird glitches on resizing with the
scrollbar

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: refactor {lxc, qemu}/Summary to panel/GuestSummary
Dominik Csapak [Wed, 4 Dec 2019 12:41:33 +0000 (13:41 +0100)]
gui: refactor {lxc, qemu}/Summary to panel/GuestSummary

they are both similar enough to have it only once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: Create symlink on standalone MGR creation
Alwin Antreich [Tue, 3 Dec 2019 10:52:26 +0000 (11:52 +0100)]
ceph: Create symlink on standalone MGR creation

Ceph MGR fails to start when installed on a node without existing
symlink to /etc/pve/ceph.conf.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
4 years agobulk migration: only pass 'with-local-disks' along if defined
Thomas Lamprecht [Thu, 5 Dec 2019 12:50:21 +0000 (13:50 +0100)]
bulk migration: only pass 'with-local-disks' along if defined

To make it backward compaitble. NBo real harm without this, but lots
of ugly undefiend $val warnings...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agomigration worker: move params to own variable
Thomas Lamprecht [Thu, 5 Dec 2019 12:49:55 +0000 (13:49 +0100)]
migration worker: move params to own variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: window/Restore: fixup unit conversion for bwlimit
Dominik Csapak [Thu, 5 Dec 2019 09:43:38 +0000 (10:43 +0100)]
ui: window/Restore: fixup unit conversion for bwlimit

vzdumps bwlimit is in KiB, so we have to tell our component that
and also remove the unnecessary multiplication with 1024
(the field previously returned the value in MiB)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: backup restore: add start-after-restore checkbox
Thomas Lamprecht [Tue, 3 Dec 2019 09:51:10 +0000 (10:51 +0100)]
ui: backup restore: add start-after-restore checkbox

Restore may be a long running operation, as it goes over the common
create API path we can reuse the "start after create" for a "start
after restore" for free.

Add this as hbox layout, as else it looks like a lot of wasted space
in the right side of the window, especially when restoring a CT
backup (were the "unprivileged" checkbox is additionally there).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: backup restore: use new bandwith limit component
Thomas Lamprecht [Tue, 3 Dec 2019 09:51:09 +0000 (10:51 +0100)]
ui: backup restore: use new bandwith limit component

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: add date column for backups in storage content view
Thomas Lamprecht [Tue, 3 Dec 2019 08:27:19 +0000 (09:27 +0100)]
ui: add date column for backups in storage content view

main use case is to sort by date, e.g., I just re-created a cluster,
did some VM/CT backups on a NFS dump of mine which already had quite
some backups. Now, on restore I knew that only the backups made
yesterday were interesting, so a sort by date would allow me to find
them all easily, thus this patch was born.

Simple frontend extraction of information from the volid, for now
only for backups as there's the only case were we have the info at
all. Called the model entry "vdate" for "virtual date".

Mayb adding the creation date to all entries could be a nice addition
for the API someday.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapt-transport-https was integrated in apt >= 1.5
Thomas Lamprecht [Wed, 4 Dec 2019 09:20:51 +0000 (10:20 +0100)]
apt-transport-https was integrated in apt >= 1.5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.1-3
Thomas Lamprecht [Tue, 3 Dec 2019 13:34:45 +0000 (14:34 +0100)]
bump version to 6.1-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: ha: drop unused pve-ha-resources model
Thomas Lamprecht [Tue, 3 Dec 2019 13:29:50 +0000 (14:29 +0100)]
ui: ha: drop unused pve-ha-resources model

we only have the unified pve-ha-status model now

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: ha: calculate service name in model to fix sorting
Thomas Lamprecht [Tue, 3 Dec 2019 13:29:36 +0000 (14:29 +0100)]
ui: ha: calculate service name in model to fix sorting

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopveversion: fix removed packages with residual configs
Thomas Lamprecht [Tue, 3 Dec 2019 12:50:16 +0000 (13:50 +0100)]
pveversion: fix removed packages with residual configs

Those ain't 'not correctly installed', so do not suggest the user
that.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: apt versions: handle packages without filename info
Thomas Lamprecht [Tue, 3 Dec 2019 12:49:03 +0000 (13:49 +0100)]
api: apt versions: handle packages without filename info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: ha: add name of service to resource grid
Thomas Lamprecht [Sat, 30 Nov 2019 19:03:53 +0000 (20:03 +0100)]
ui: ha: add name of service to resource grid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.1-2
Thomas Lamprecht [Sat, 30 Nov 2019 17:41:25 +0000 (18:41 +0100)]
bump version to 6.1-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/hw: be more specific what VM state this is
Thomas Lamprecht [Sat, 30 Nov 2019 17:14:33 +0000 (18:14 +0100)]
ui: vm/hw: be more specific what VM state this is

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/hw: order VM state last and add extra warning
Thomas Lamprecht [Sat, 30 Nov 2019 17:12:28 +0000 (18:12 +0100)]
ui: vm/hw: order VM state last and add extra warning

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/hw: make extra message from deletion flexible
Thomas Lamprecht [Sat, 30 Nov 2019 17:12:08 +0000 (18:12 +0100)]
ui: vm/hw: make extra message from deletion flexible

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: qemu/HardwareView: show vmstate and allow removal
Dominik Csapak [Fri, 29 Nov 2019 10:06:50 +0000 (11:06 +0100)]
gui: qemu/HardwareView: show vmstate and allow removal

so that a user can remove the 'suspended' state without resuming it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoapi/bulk migrate: add comment regarding PID re-used
Thomas Lamprecht [Sat, 30 Nov 2019 16:06:00 +0000 (17:06 +0100)]
api/bulk migrate: add comment regarding PID re-used

this needs to be fixed, maybe with pidfd's...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi/bulk migrate: warn if vmlist was empty, die if no worker got spawned
Thomas Lamprecht [Sat, 30 Nov 2019 16:05:31 +0000 (17:05 +0100)]
api/bulk migrate: warn if vmlist was empty, die if no worker got spawned

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi/bulk migrate: split long param list in multiple lines
Thomas Lamprecht [Sat, 30 Nov 2019 16:04:49 +0000 (17:04 +0100)]
api/bulk migrate: split long param list in multiple lines

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi/bulk migrate: rework pre-condition check outputs
Thomas Lamprecht [Sat, 30 Nov 2019 16:04:17 +0000 (17:04 +0100)]
api/bulk migrate: rework pre-condition check outputs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollow bulk-migrate gui adaptions
Thomas Lamprecht [Sat, 30 Nov 2019 15:24:47 +0000 (16:24 +0100)]
follow bulk-migrate gui adaptions

show both, checkbox and hint in one row, there more horizontal space
than vertical.

s/Warning/Note/

default to on for convenience

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: add checkbox to bulk migrate window to allow migration with local disks
Tim Marx [Fri, 29 Nov 2019 14:10:16 +0000 (15:10 +0100)]
ui: add checkbox to bulk migrate window to allow migration with local disks

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoapi: add migrate precondition checks to bulk migrate api
Tim Marx [Fri, 29 Nov 2019 14:10:15 +0000 (15:10 +0100)]
api: add migrate precondition checks to bulk migrate api

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoapi: add migrate with local disks to bulk migrate api
Tim Marx [Fri, 29 Nov 2019 14:10:14 +0000 (15:10 +0100)]
api: add migrate with local disks to bulk migrate api

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoui: lxc: fix cmd menu separator hiding
Thomas Lamprecht [Sat, 30 Nov 2019 13:39:24 +0000 (14:39 +0100)]
ui: lxc: fix cmd menu separator hiding

use same condition boolean line as VMs have

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd reboot button to right-click menu for VMs
Oguz Bektas [Fri, 29 Nov 2019 16:44:44 +0000 (17:44 +0100)]
add reboot button to right-click menu for VMs

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agoapi: apt/versions: track ifupdown and ifupdown2 as optional package
Thomas Lamprecht [Sat, 30 Nov 2019 13:30:58 +0000 (14:30 +0100)]
api: apt/versions: track ifupdown and ifupdown2 as optional package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: dc/options: fix capabillities for u2f, bwlimits, ha settings
Thomas Lamprecht [Fri, 29 Nov 2019 14:20:32 +0000 (15:20 +0100)]
ui: dc/options: fix capabillities for u2f, bwlimits, ha settings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoLXC: Disable resize button when volume is unusued
Fabian Ebner [Wed, 27 Nov 2019 12:01:48 +0000 (13:01 +0100)]
LXC: Disable resize button when volume is unusued

The size of an unused volume is not visible to the user and trying to resize
an unused volume runs into a 'parameter verification failed' anyways.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Tested-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agopvesr service: order after pve-cluster
Thomas Lamprecht [Thu, 28 Nov 2019 09:52:51 +0000 (10:52 +0100)]
pvesr service: order after pve-cluster

avoids errors from this service on boot as it could be started before
pve-cluster.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/control: build depend on newes doc-gen 6.1-1
Thomas Lamprecht [Wed, 27 Nov 2019 18:36:02 +0000 (19:36 +0100)]
d/control: build depend on newes doc-gen 6.1-1

to ensure we have all the online references available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: dc/options: add onlineHelp to u2f and ha edit window
Thomas Lamprecht [Wed, 27 Nov 2019 18:35:08 +0000 (19:35 +0100)]
ui: dc/options: add onlineHelp to u2f and ha edit window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: Bandwidth limits: increase labelWidth to 120
Dominik Csapak [Wed, 27 Nov 2019 16:31:44 +0000 (17:31 +0100)]
gui: Bandwidth limits: increase labelWidth to 120

in some languages (e.g. German) the default (100) is too short for some labels,
resulting in cut-off text. We often use 120 in such cases, so we should
do here as well

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: UserView: show api call errors
Dominik Csapak [Wed, 27 Nov 2019 15:27:34 +0000 (16:27 +0100)]
gui: UserView: show api call errors

otherwise, an api error leads to an empty UserView, and the user
wonders why no users show up

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobump version to 6.1-1
Thomas Lamprecht [Wed, 27 Nov 2019 10:37:39 +0000 (11:37 +0100)]
bump version to 6.1-1

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