]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
4 years agoaplinfo: see trusted keys as build product, always assembly
Thomas Lamprecht [Wed, 16 Oct 2019 09:05:36 +0000 (11:05 +0200)]
aplinfo: see trusted keys as build product, always assembly

Don't track the binary trustedkeys.gpg but see it just as normal
build product with the armored keys as source.

This ensures we always ship those from TRUSTED_KEYS variable, not
more, not less.

Instead of the "gpg import+export in temporary home dir" just
de-armor and concatenate them our self, that's what happens anyway.

This could be even simplified by just using base64 -d on the pubkeys,
after the non base64 stuff was trimmed, that would omit our need for
gpg here completely.

Thanks to Wolfgang B. for giving the idea to just do simple stuff :)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: remove chrome/extjs workaround
Dominik Csapak [Thu, 3 Oct 2019 11:50:14 +0000 (13:50 +0200)]
gui: remove chrome/extjs workaround

it seems that this is not needed anymore, at least i cannot
see any difference with/without it here (chromium 76)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: TFA: default to a 160 bit secret
Wolfgang Bumiller [Mon, 28 Oct 2019 11:20:43 +0000 (12:20 +0100)]
ui: TFA: default to a 160 bit secret

This is base32, so we use only 5 bit per byte to make things simple,
so 32 byte * 5 bit/byte = 160 bit of entropy

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoui: TFAEdit: use 'v2' secret format
Wolfgang Bumiller [Mon, 28 Oct 2019 11:20:41 +0000 (12:20 +0100)]
ui: TFAEdit: use 'v2' secret format

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agogui: reset cdimage selector on change
Tim Marx [Fri, 25 Oct 2019 10:47:33 +0000 (12:47 +0200)]
gui: reset cdimage selector on change

to improve UX, disabled child fields shouldn't show validation errors
when the parent widget (radiofield) isn't selected anymore.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agofollowup: use boxLabel to avoid big labelWidths
Thomas Lamprecht [Fri, 25 Oct 2019 15:38:57 +0000 (17:38 +0200)]
followup: use boxLabel to avoid big labelWidths

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #1291: add purge checkbox to VM/CT destroy dialog
Christian Ebner [Tue, 22 Oct 2019 14:40:37 +0000 (16:40 +0200)]
fix #1291: add purge checkbox to VM/CT destroy dialog

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agoadd versioned postinst run of newaliases
Stoiko Ivanov [Wed, 23 Oct 2019 16:10:28 +0000 (18:10 +0200)]
add versioned postinst run of newaliases

When installing from ISO '/etc/aliases' gets written correctly, however
postfix needs '/etc/aliases.db' (generated by running newaliases)
in order to work.

added to the postinst script to fix the issue for users having installed from
the ISO before this fix.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agoui: window settings: remove no-op onShow overwrite
Thomas Lamprecht [Wed, 23 Oct 2019 16:20:56 +0000 (18:20 +0200)]
ui: window settings: remove no-op onShow overwrite

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: window settings: use column layout
Thomas Lamprecht [Wed, 23 Oct 2019 16:18:08 +0000 (18:18 +0200)]
ui: window settings: use column layout

This change shouldn't be noticeable, main advantage is that we can
add a top or botton spanning row for hints or a save/restore feature
(in the future)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui settings: fix noVNC scaling mode radiogroup setValue
Thomas Lamprecht [Mon, 21 Oct 2019 13:20:11 +0000 (15:20 +0200)]
ui settings: fix noVNC scaling mode radiogroup setValue

radio groups set and get Value helper are objects, as they are
expected to be key, value, where key is a field-name of the radio
group and values is the inputValue from the radiobutton to be set.

So ensure we extract only the value in the change event handler, as
we do not want to save the whole object. But on restoring (setValue)
we need to wrap it as object again, else radiogroup won't know what
field we want to set..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: settings: remove ":" from some gettext labels
Thomas Lamprecht [Mon, 21 Oct 2019 09:31:06 +0000 (11:31 +0200)]
ui: settings: remove ":" from some gettext labels

to make those easier to be re-used

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.0-10
Thomas Lamprecht [Fri, 18 Oct 2019 20:30:30 +0000 (22:30 +0200)]
bump version to 6.0-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoedit/show lxc pending changes in gui
Oguz Bektas [Thu, 5 Sep 2019 14:46:57 +0000 (16:46 +0200)]
edit/show lxc pending changes in gui

uses the new /pending and the adapted /config API endpoints
to get pending changes and show them in a PendingObjectGrid

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agofix #2364: allow offline migration with local cloudinit disk
Mira Limbeck [Mon, 7 Oct 2019 10:07:47 +0000 (12:07 +0200)]
fix #2364: allow offline migration with local cloudinit disk

As the cloudinit disk itself does not get copied on an offline
migration, just the config, there's no conflict. Ignore the local
cloudinit disk on offline migration. Also adds a useful message when
trying to live migrate with a local cloudinit disk.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
4 years agod/control: bump doc-gen and guest-common deps for VZDump refactoring
Thomas Lamprecht [Fri, 18 Oct 2019 08:58:44 +0000 (10:58 +0200)]
d/control: bump doc-gen and guest-common deps for VZDump refactoring

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agovzdump: move code needed for cfs register of vzdump.cron to guest-common
Christian Ebner [Tue, 15 Oct 2019 11:00:22 +0000 (13:00 +0200)]
vzdump: move code needed for cfs register of vzdump.cron to guest-common

This moves the cfs register code for vzdump.cron to the
pve-guest-common package. Therefore, it relies on the corresponding
patches in pve-guest-common and pve-docs as build dependencies.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupdated shipped aplinfo index
Thomas Lamprecht [Thu, 17 Oct 2019 16:29:44 +0000 (18:29 +0200)]
updated shipped aplinfo index

for Ubuntu 19.10, CentOS 8 and 6 (update), and deindexing of Alpine
Linux 3.8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: subscription: use rpcenv for permission check
Fabian Grünbichler [Thu, 17 Oct 2019 13:14:14 +0000 (15:14 +0200)]
api: subscription: use rpcenv for permission check

commit 2d2ed7ab5305eb4b5875e7d0888011edc4ad32f7 had a valid cause but
unnecessarily used the static PVE::AccessControl::check_permissions.
As the RPCEnvironment based check method has a "$noerr" parameter and
we already have a rpcenv instance readily available, we can use that
one just fine.

this is the last caller of PVE::AccessControl::check_permissions(),
which is the last caller of PVE::AccessControl::permission(). both can
thus be dropped altogether.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.0-9
Thomas Lamprecht [Wed, 16 Oct 2019 06:26:04 +0000 (08:26 +0200)]
bump version to 6.0-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupdate trustedkeys
Thomas Lamprecht [Wed, 16 Oct 2019 05:54:19 +0000 (07:54 +0200)]
update trustedkeys

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: migrate: add checkbox to enable offline migration with local resources
Tim Marx [Mon, 14 Oct 2019 09:58:20 +0000 (11:58 +0200)]
ui: migrate: add checkbox to enable offline migration with local resources

Added to make use of [0] and because it does make sense for non HA vm's
as well, in accordance with #2241.

[0] pve-ha-manager: 6e8b0c225405da9472f56fe5c94c94b204259caa
Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agogui: qemu: allow move disk for EFI Disk again
Dominik Csapak [Fri, 11 Oct 2019 10:09:45 +0000 (12:09 +0200)]
gui: qemu: allow move disk for EFI Disk again

with commit 0ea3b8499bf289d20edf92532feef59145a4743e we changed how
we define isUsedDisk, which was true for efidisks before, but not
after

use the existing 'isEfi' varable to include them for the move_btn
(but not the resize_btn)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: vm opts: clarify QGA option
Thomas Lamprecht [Thu, 10 Oct 2019 09:53:36 +0000 (11:53 +0200)]
ui: vm opts: clarify QGA option

To make it more clear that PVE does not somehow magically injects a
QHA into the VM, but that this can be set if one has installed the
QGA in the VM themself.

So slightly adapt the label by prepending "Use" and adding a hint for
further details.

Also ensure we call it the real name everywhere, i.e., "QEMU Guest
Agent", this makes it a bit more consistent and easier to find
information for users.

Suggested-by: Aaron Lauterer <t.lamprecht@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: refactor pveQemuBiosEdit widget
Thomas Lamprecht [Thu, 10 Oct 2019 15:23:28 +0000 (17:23 +0200)]
ui: refactor pveQemuBiosEdit widget

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agochange .pve-hint to .pmx-hint css-class
Stoiko Ivanov [Mon, 7 Oct 2019 19:37:34 +0000 (21:37 +0200)]
change .pve-hint to .pmx-hint css-class

With introducing pmx-hint to pmg as well, by adding a 'pmx-hint' css-class
to proxmox-widget-toolkit, it makes sense to use the definition everywhere.
this patch drops the .pve-hint class from pve's css and replaces all occurences
in the GUI-source.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agoui: vm/qga selector: convert to schematic style
Thomas Lamprecht [Tue, 8 Oct 2019 12:41:05 +0000 (14:41 +0200)]
ui: vm/qga selector: convert to schematic style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/options: use 'none' if no spice enhancement is set
Thomas Lamprecht [Mon, 7 Oct 2019 14:21:44 +0000 (16:21 +0200)]
ui: vm/options: use 'none' if no spice enhancement is set

to make it more clear that this is not a single option which can be
disabled or enabled, but that it consists of multiple options

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm-options: add spice enhancements
Aaron Lauterer [Mon, 7 Oct 2019 13:23:52 +0000 (15:23 +0200)]
ui: vm-options: add spice enhancements

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoui: add spice enhancements form component
Aaron Lauterer [Mon, 7 Oct 2019 13:23:51 +0000 (15:23 +0200)]
ui: add spice enhancements form component

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agobump version to 6.0-8
Thomas Lamprecht [Fri, 4 Oct 2019 14:42:00 +0000 (16:42 +0200)]
bump version to 6.0-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: make parsePropertyString less picky
Thomas Lamprecht [Fri, 4 Oct 2019 14:07:49 +0000 (16:07 +0200)]
ui: make parsePropertyString less picky

simply return a empty object for cases we would get an exception
anyway, this is not wrong and allows easier usage for cases where
it's not sure if the value is set or not.

We could still do a Ext.isDebugEnabled() check and then throw up, but
this really should not matter much and I do not like if my debug mode
breaks and the non-debug not..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2389: ceph wizard showing network of target node
Mira Limbeck [Fri, 4 Oct 2019 09:29:58 +0000 (11:29 +0200)]
fix #2389: ceph wizard showing network of target node

Before this patch the wizard shows the available networks for the node
one is connected to, not the actual target node where ceph is
configured. This patch changes this to access the network information of
the target node instead of the local one.
It could be that not every node in the cluster is part of the ceph
cluster (and the same network) which makes this useful.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
4 years agoui: settings/xterm.js: add margin between reset/save button
Thomas Lamprecht [Fri, 4 Oct 2019 12:40:24 +0000 (14:40 +0200)]
ui: settings/xterm.js: add margin between reset/save button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: labelWidth gets `px` suffixed so `auto` won't work
Thomas Lamprecht [Fri, 4 Oct 2019 12:38:31 +0000 (14:38 +0200)]
ui: labelWidth gets `px` suffixed so `auto` won't work

This is a common mistake with widths in ExtJS, most of them have the
'px' unit implicit, so using things like 'auto' or '100%' does not
works with them.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoHarmonize reset buttons in "My Settings"
Dominic Jäger [Thu, 3 Oct 2019 09:58:38 +0000 (11:58 +0200)]
Harmonize reset buttons in "My Settings"

- Rename both buttons to a single word as it is clear where they belong
  to. Use "Reset" instead of "Clear" as you can rather "Reset a saved
  user name" than "Clear a layout".
- Use container instead of panels as they are simpler (e.g. no "border:
  false" necessary) and sufficient.
- Align the buttons at the right for visual appeal.
- Use title case for the user name label for consistency.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
4 years agoui: cpuselector: use QEMU and Host as vendors instead of Other
Thomas Lamprecht [Wed, 2 Oct 2019 14:17:00 +0000 (16:17 +0200)]
ui: cpuselector: use QEMU and Host as vendors instead of Other

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoMake CPU Model Selector a searchable grid view
Stefan Reiter [Tue, 10 Sep 2019 17:11:44 +0000 (19:11 +0200)]
Make CPU Model Selector a searchable grid view

Uses a ComboGrid with search feature and a column for vendor. Can be
sorted by both columns.

Default sort is as given in this file, I tried to align it as
* AMD
* Intel
* Other
alphabetically and in QEMU order (as before, seems to be release date?)
within those "groups".

Doesn't work with value set in widget definition (would need to be
preferredValue), but we always call setValue() anyway (and if we don't,
value will be '', aka the default, which is correct too), so just remove
that from ProcessorEdit.js.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: openVNCViewer: mobile has no Ext.state.Manager
Thomas Lamprecht [Tue, 1 Oct 2019 12:58:54 +0000 (14:58 +0200)]
ui: openVNCViewer: mobile has no Ext.state.Manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agomobile: implement login with OTP based TFA enabled
Thomas Lamprecht [Tue, 1 Oct 2019 11:30:06 +0000 (13:30 +0200)]
mobile: implement login with OTP based TFA enabled

roughly copied over from the full-fledged manager UI, but enough
differences between manager <-> mobile and ExtJS <-> Sencha Touch to
just adapt it here instead of having a force-shared implementation
with lots of corner case checks and even more callback methods..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agomobile: workspace: reuse Proxmox.Utils.setAuthData
Thomas Lamprecht [Tue, 1 Oct 2019 11:29:03 +0000 (13:29 +0200)]
mobile: workspace: reuse Proxmox.Utils.setAuthData

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agomobile: datacenter: fix version
Thomas Lamprecht [Tue, 1 Oct 2019 12:42:20 +0000 (14:42 +0200)]
mobile: datacenter: fix version

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: loginwindow: reduce empty whitespace cluttering
Thomas Lamprecht [Tue, 1 Oct 2019 11:32:20 +0000 (13:32 +0200)]
ui: loginwindow: reduce empty whitespace cluttering

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/efi: always allow to add EFI disk even if OVMF is not yet set
Thomas Lamprecht [Tue, 1 Oct 2019 07:30:03 +0000 (09:30 +0200)]
ui: vm/efi: always allow to add EFI disk even if OVMF is not yet set

As this is annoying else, especially if the change from default to
ovmf BIOS is already a pending change..

A simple hint is enough, we do not do anything with the EFI disk if
OVMF is not set to be used anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocpumodel: qemu 4.0: add Skylake-Server, Cascadelake-Server, KnightsMill
Alexandre Derumier [Mon, 30 Sep 2019 09:47:06 +0000 (11:47 +0200)]
cpumodel: qemu 4.0: add Skylake-Server, Cascadelake-Server, KnightsMill

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoui: qemubiosedit: add gettext to efi disk hint
Aaron Lauterer [Mon, 30 Sep 2019 09:42:47 +0000 (11:42 +0200)]
ui: qemubiosedit: add gettext to efi disk hint

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoupdated shipped aplinfo index
Thomas Lamprecht [Fri, 27 Sep 2019 13:52:41 +0000 (15:52 +0200)]
updated shipped aplinfo index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: usbselector: show product name and enable anyMatch search
Thomas Lamprecht [Thu, 26 Sep 2019 16:05:22 +0000 (18:05 +0200)]
ui: usbselector: show product name and enable anyMatch search

Show "Product (usbid)" instead of only "usbid" for slightly better
UX.

Still allows to only enter a USBID and hit enter, even if the ID is
not in the store (i.e., currently unplugged).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: usbselector: refactor USB Speed rendering, add USB 3.1
Thomas Lamprecht [Thu, 26 Sep 2019 16:00:54 +0000 (18:00 +0200)]
ui: usbselector: refactor USB Speed rendering, add USB 3.1

Fixes also an issue where unregonized (often faster) devices would
get recognized as "USB 1.x" due to the else fallback.

Now, if we do not recognize the speed value, just print the speed
with the MBps unit (it's not exactly megabit per second, but mega
baud (= symbols) per second - the effective rate is dependent on the
used signal encoding)

adapt widths a bit further

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: usbselector: add empty text for UX
Thomas Lamprecht [Thu, 26 Sep 2019 16:00:18 +0000 (18:00 +0200)]
ui: usbselector: add empty text for UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/usbselector: cleanup unused code
Aaron Lauterer [Thu, 26 Sep 2019 13:03:18 +0000 (15:03 +0200)]
ui: vm/usbselector: cleanup unused code

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoui: vm/usbedit: simplify USB3 handling
Aaron Lauterer [Thu, 26 Sep 2019 13:03:17 +0000 (15:03 +0200)]
ui: vm/usbedit: simplify USB3 handling

Enable USB3 by default. There are no restrictions anymore that the speed
of the dev must match the USB3 speed. The xhci controller can deal with
USB 2 and 1 devices. USB3 devices can be plugged in a USB2 (ehci)
controller. As discussed in [0]

When using a USB device for SPICE passthrough my tests showed that USB2
devices connecting to the xhci controller work but a USB3 device passed
via Spice cannot connect to an ehci controller (no USB3 enabled).

qemu-server 6.0-9 supports USB3 also for Spice USB passthrough. See
commit 733234b [1].

All this means we can get rid of the separate handling of USB3 and non
USB3 devices and leave the decision to the user if USB3 should be
enabled or not.

[0]: https://pve.proxmox.com/pipermail/pve-devel/2019-September/039131.html
[1]: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff;h=733234be04d585febd74c655d8b82d17ebf9e133

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: usbselector/usbedit: make widths a bit larger
Thomas Lamprecht [Thu, 26 Sep 2019 14:39:02 +0000 (16:39 +0200)]
ui: usbselector/usbedit: make widths a bit larger

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: usbselector: return string not false when invalid
Thomas Lamprecht [Thu, 26 Sep 2019 14:36:23 +0000 (16:36 +0200)]
ui: usbselector: return string not false when invalid

If the return value is not exact Boolean(true) this is used for
error, so false gets converted to string and shown in error tooltip,
address that

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/usbedit: add gettext to label
Aaron Lauterer [Wed, 25 Sep 2019 12:30:54 +0000 (14:30 +0200)]
ui: vm/usbedit: add gettext to label

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoui: vm/usbedit: don't use getUSBValue to avoid possible duplicate "usb3"
Thomas Lamprecht [Mon, 23 Sep 2019 15:06:21 +0000 (17:06 +0200)]
ui: vm/usbedit: don't use getUSBValue to avoid possible duplicate "usb3"

As getUSBValue() always added the "usb3" property if the selected
device was recognized as USB3. But we can now also pass such a device
as USB2 so lift this restriction - which also fixes a bug for USB3
selected devices with the USB3 checkbox set.

The solution also avoids the me.down query, which is nice too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/usbedit: code & indentation cleanup
Thomas Lamprecht [Mon, 23 Sep 2019 08:01:27 +0000 (10:01 +0200)]
ui: vm/usbedit: code & indentation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/usbedit: cleanup and refactor usb selector change
Thomas Lamprecht [Mon, 23 Sep 2019 06:42:16 +0000 (08:42 +0200)]
ui: vm/usbedit: cleanup and refactor usb selector change

split the long ternary operation into a common if/else, to make it
readable.

Also, remove the usb3field.isDisabled check as:
1. we do not disable it anywhere anymore
2. if we would, it makes sense to do this anyhow

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/usbedit: use simple bind for radio button changes
Thomas Lamprecht [Mon, 23 Sep 2019 06:18:09 +0000 (08:18 +0200)]
ui: vm/usbedit: use simple bind for radio button changes

reduces code and is more expressive

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm/usbedit: omit usb3 changes for spice completely
Thomas Lamprecht [Mon, 23 Sep 2019 06:17:56 +0000 (08:17 +0200)]
ui: vm/usbedit: omit usb3 changes for spice completely

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agousb: Enable USB3 for Spice USB passthrough
Aaron Lauterer [Wed, 11 Sep 2019 12:43:34 +0000 (14:43 +0200)]
usb: Enable USB3 for Spice USB passthrough

Instead of having two times the check if the USB3 setting needs to be
added to the config string it is now checked at one place only.

If USB3 is checked for a non USB3 device it will be attached to the USB2
root hub of the xhci controller.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoapi2 : network : use vtysh for frr reload instead systemd
Alexandre Derumier [Mon, 9 Sep 2019 08:22:28 +0000 (10:22 +0200)]
api2 : network : use vtysh for frr reload instead systemd

avoid extra dep on frr-pythontools and parse error messages

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoui: Add online help reference to VM bios settings
Aaron Lauterer [Wed, 18 Sep 2019 07:42:37 +0000 (09:42 +0200)]
ui: Add online help reference to VM bios settings

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoui: Add online help reference to VM display settings
Aaron Lauterer [Wed, 18 Sep 2019 07:42:36 +0000 (09:42 +0200)]
ui: Add online help reference to VM display settings

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoui: power menu: add more tooltips
Thomas Lamprecht [Thu, 19 Sep 2019 12:12:33 +0000 (14:12 +0200)]
ui: power menu: add more tooltips

For reset and reboot.
Shutdown and pause is pretty self-explanatory, so omit that

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: qemu: add reboot button
Dominik Csapak [Thu, 12 Sep 2019 11:37:24 +0000 (13:37 +0200)]
gui: qemu: add reboot button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoCleanup: align backslashes in manager6 Makefile
Aaron Lauterer [Tue, 17 Sep 2019 09:35:48 +0000 (11:35 +0200)]
Cleanup: align backslashes in manager6 Makefile

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoupdate appliance info for PMG 6.0
Thomas Lamprecht [Tue, 10 Sep 2019 09:45:25 +0000 (11:45 +0200)]
update appliance info for PMG 6.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix login window on chrome
Dominik Csapak [Fri, 6 Sep 2019 12:28:20 +0000 (14:28 +0200)]
fix login window on chrome

labelWidth: 'auto' is not valid since extjs simply
adds 'px' and sets it as width which would result in:

width: 'autopx';

which is not valid css. chrome/chromium had a change such that this now
produces the wrong height in the login bottom 'button bar'

250 should be enough for all translations and we do not have
any other element there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoapi network reload: code cleanup
Thomas Lamprecht [Thu, 5 Sep 2019 12:31:24 +0000 (14:31 +0200)]
api network reload: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi2: network reload: add frr config generation and reload
Alexandre Derumier [Wed, 4 Sep 2019 05:54:36 +0000 (07:54 +0200)]
api2: network reload: add frr config generation and reload

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agobrowser settings: move reset layout button to same row as label
Thomas Lamprecht [Wed, 4 Sep 2019 13:14:06 +0000 (15:14 +0200)]
browser settings: move reset layout button to same row as label

diff best viewed with git diff -w

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobrowser settings: add tooltip to reset layout button
Thomas Lamprecht [Wed, 4 Sep 2019 12:30:19 +0000 (14:30 +0200)]
browser settings: add tooltip to reset layout button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agovnc scaling: show setting in a single line
Thomas Lamprecht [Wed, 4 Sep 2019 12:30:01 +0000 (14:30 +0200)]
vnc scaling: show setting in a single line

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agovnc scaling: still fallback to old default value if not set
Thomas Lamprecht [Wed, 4 Sep 2019 11:46:55 +0000 (13:46 +0200)]
vnc scaling: still fallback to old default value if not set

as else we change behavior for those who never set the new scaling
variable, or cleared the browser local store.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoClose #2262: Add noVNC scale setting
Dominic Jäger [Tue, 3 Sep 2019 10:13:15 +0000 (12:13 +0200)]
Close #2262: Add noVNC scale setting

Add a setting to choose the scale mode of the noVNC pop-up as well as
the embedded console in the content panel to "My Settings". Having both
set to local scaling was the most important use-case for the users. One
setting for both places is the simplest solution making this possible.

The new section (fieldset) makes adding further options such as
"Local Cursor" easy.

Co-developed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
4 years agobump version to 6.0-7
Thomas Lamprecht [Tue, 3 Sep 2019 08:32:49 +0000 (10:32 +0200)]
bump version to 6.0-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollouwp whitespace/indentation cleanup
Thomas Lamprecht [Tue, 3 Sep 2019 08:31:14 +0000 (10:31 +0200)]
follouwp whitespace/indentation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi2 : nodes : sdn status endpoint
Alexandre Derumier [Wed, 21 Aug 2019 03:22:40 +0000 (05:22 +0200)]
api2 : nodes : sdn status endpoint

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi : cluster ressources : add sdn
Alexandre Derumier [Wed, 21 Aug 2019 03:22:39 +0000 (05:22 +0200)]
api : cluster ressources : add sdn

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agopvestatd : broadcast sdn transportzone status
Alexandre Derumier [Wed, 21 Aug 2019 03:22:38 +0000 (05:22 +0200)]
pvestatd : broadcast sdn transportzone status

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2: network reload : generate local sdn config
Alexandre Derumier [Wed, 21 Aug 2019 03:22:37 +0000 (05:22 +0200)]
api2: network reload : generate local sdn config

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2 : cluster: add sdn api endpoint
Alexandre Derumier [Wed, 21 Aug 2019 03:22:36 +0000 (05:22 +0200)]
api2 : cluster: add sdn api endpoint

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agofix typos all over the place
Thomas Lamprecht [Tue, 3 Sep 2019 05:55:32 +0000 (07:55 +0200)]
fix typos all over the place

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi startall guest: improve descriptions
Thomas Lamprecht [Tue, 3 Sep 2019 05:53:11 +0000 (07:53 +0200)]
api startall guest: improve descriptions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoShow supported file types in upload file selector
Stefan Reiter [Thu, 22 Aug 2019 12:39:54 +0000 (14:39 +0200)]
Show supported file types in upload file selector

By default, all file types are shown, but the user now has the option of
filtering only by supported types in the file selector dialog.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: IPRef field: allow all valid IPs, even if not in the store
Thomas Lamprecht [Fri, 30 Aug 2019 16:55:51 +0000 (18:55 +0200)]
ui: IPRef field: allow all valid IPs, even if not in the store

since commit 1ccb53ecdbd69a0e4c57a6d861da1918d3625e08 from widget
toolkit[0] we enforce by default that an entered value needs to be in
the backing data store, else the field is marked invalid.

But, for the firewall source/destination IP selector we do not care
if it's in the store, which is only loaded for convenience and to
allow selecting defined aliases/ipsets

[0]: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=commit;h=1ccb53ecdbd69a0e4c57a6d861da1918d3625e08

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: fix nodes stats memory return type description
Tim Marx [Mon, 26 Aug 2019 11:13:42 +0000 (13:13 +0200)]
api: fix nodes stats memory return type description

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoCPU flags: Add aes flag
Peter Keresztes Schmidt [Thu, 1 Aug 2019 17:39:27 +0000 (19:39 +0200)]
CPU flags: Add aes flag

Signed-off-by: Peter Keresztes Schmidt <peterke@sos.ethz.ch>
4 years agofix #2341: ceph: osd create: allow db/wal on partioned disks
Dominik Csapak [Thu, 22 Aug 2019 10:26:10 +0000 (12:26 +0200)]
fix #2341: ceph: osd create: allow db/wal on partioned disks

It was intended that for partitioned disks, we create one and use it.
Instead the code died always when the disk was used and not of type 'LVM'

We now check correctly the 2 cases:
* used for partitions and has gpt
* used and lvm

The remaining api call handles those two cases correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agofix #2340: gui: ceph: handle 'null' versions for hosts
Dominik Csapak [Thu, 22 Aug 2019 10:26:09 +0000 (12:26 +0200)]
fix #2340: gui: ceph: handle 'null' versions for hosts

the api returns 'null' for a host that is in the crushmap, but
without actual version information, so just check for falsyness instead
of 'undefined', else we run later into javascript exceptions and no
content on the osd page

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: vm memory: correctly set initial maxValue for balloon
Thomas Lamprecht [Thu, 22 Aug 2019 12:08:50 +0000 (14:08 +0200)]
ui: vm memory: correctly set initial maxValue for balloon

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi2: dust off root API module a little bit
Thomas Lamprecht [Thu, 22 Aug 2019 12:07:45 +0000 (14:07 +0200)]
api2: dust off root API module a little bit

trailing whitespace cleanup and fix the code methods signatures (no
response anymore)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.0-6
Thomas Lamprecht [Fri, 16 Aug 2019 11:10:40 +0000 (13:10 +0200)]
bump version to 6.0-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoDelete "exclude" when switching a backup job to pool mode
Stefan Reiter [Wed, 14 Aug 2019 13:36:27 +0000 (15:36 +0200)]
Delete "exclude" when switching a backup job to pool mode

If you updated a job in "exclude" mode with some VMIDs specified to "pool" mode,
the backup job would retain the "exclude" section and thus not back up all VMs.

The GUI misrepresents this, showing that all VMs will be backed up or
straight up break and show "exclude" mode again, with the backend still
being on "pool" - to prevent this, we always delete a jobs "exclude" list
when it's switched to "pool".

Co-authored-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agoCode cleanup in Backup
Stefan Reiter [Mon, 12 Aug 2019 12:50:08 +0000 (14:50 +0200)]
Code cleanup in Backup

Whitespace removal and consolidating VZDump's job id format into a
local variable.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agofix #1594: add "Run now" button to cluster backup page
Stefan Reiter [Mon, 12 Aug 2019 12:50:06 +0000 (14:50 +0200)]
fix #1594: add "Run now" button to cluster backup page

Iterate all (online) nodes client-side and call vzdump with the correct
parameters (according to the job selected) for each one.

Then, show a progress bar in a non-closeable modal-dialog, to ensure the
user stays on the Backup page during the /vzdump API calls. Any errors
that occurred will be displayed in a consolidated message box.

Includes a "confirm" dialog to not accidentally run a potentially large
backup job.

Curiously, the "pve-cluster-backup" data model seems to have been broken
entirely.  I'm not sure how it was working before, but the changes in
this patch need it fixed, so include that as well (use "mode" instead of
individual flags + "compress" is not a boolean).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agofix #1594: allow skipping VMIDs on other nodes from API
Stefan Reiter [Mon, 12 Aug 2019 12:50:07 +0000 (14:50 +0200)]
fix #1594: allow skipping VMIDs on other nodes from API

This was previously gated to CLI only, but it causes a vzdump job
started with the newly introduced "Run Now" button to fail if it
includes VMIDs on other nodes.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agod/control: bump version of widget toolkit dependency
Thomas Lamprecht [Tue, 13 Aug 2019 14:14:15 +0000 (16:14 +0200)]
d/control: bump version of widget toolkit dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd the css/images from proxmox widget toolkit
Dominik Csapak [Wed, 24 Jul 2019 07:21:13 +0000 (09:21 +0200)]
add the css/images from proxmox widget toolkit

add the dirs to the proxy and the css file to the index template

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>