Commit Graph

4444 Commits

Author SHA1 Message Date
Thomas Lamprecht
2e8f031f99 ui: vm/usbedit: code & indentation cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-23 10:01:27 +02:00
Thomas Lamprecht
7c72eb5112 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>
2019-09-23 08:42:25 +02:00
Thomas Lamprecht
4292a318ee 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>
2019-09-23 08:18:15 +02:00
Thomas Lamprecht
410313f8b2 ui: vm/usbedit: omit usb3 changes for spice completely
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-23 08:17:56 +02:00
Aaron Lauterer
4d51f6572b 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>
2019-09-23 07:44:57 +02:00
Alexandre Derumier
e06c0dab3d 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>
2019-09-19 15:17:09 +02:00
Aaron Lauterer
e7d6f69490 ui: Add online help reference to VM bios settings
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2019-09-19 15:07:34 +02:00
Aaron Lauterer
d2d16a78b8 ui: Add online help reference to VM display settings
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2019-09-19 15:07:17 +02:00
Thomas Lamprecht
f07d8e6050 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>
2019-09-19 14:12:38 +02:00
Dominik Csapak
c48535b16c gui: qemu: add reboot button
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-09-19 13:21:17 +02:00
Aaron Lauterer
fbd0335fbf Cleanup: align backslashes in manager6 Makefile
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2019-09-18 12:00:53 +02:00
Thomas Lamprecht
4547052ec5 update appliance info for PMG 6.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-10 11:45:25 +02:00
Dominik Csapak
ecf4b557ae 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>
2019-09-06 16:22:44 +02:00
Thomas Lamprecht
084e60304e api network reload: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-05 14:31:24 +02:00
Alexandre Derumier
bc700dbc5b api2: network reload: add frr config generation and reload
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-09-05 12:29:13 +02:00
Thomas Lamprecht
9a08bd8a27 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>
2019-09-04 15:14:09 +02:00
Thomas Lamprecht
98b14eb0ec browser settings: add tooltip to reset layout button
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-04 14:30:19 +02:00
Thomas Lamprecht
b89a26bcb8 vnc scaling: show setting in a single line
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-04 14:30:01 +02:00
Thomas Lamprecht
635cc133e0 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>
2019-09-04 13:46:57 +02:00
Dominic Jäger
26fcae336c 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>
2019-09-03 14:15:37 +02:00
Thomas Lamprecht
3d89a02614 bump version to 6.0-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-03 10:32:49 +02:00
Thomas Lamprecht
eb5cc90892 follouwp whitespace/indentation cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-03 10:31:14 +02:00
Alexandre Derumier
4be427a021 api2 : nodes : sdn status endpoint
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-09-03 10:28:55 +02:00
Alexandre Derumier
afc237df4e api : cluster ressources : add sdn
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-09-03 10:28:55 +02:00
Alexandre Derumier
a36565ba37 pvestatd : broadcast sdn transportzone status
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-09-03 10:28:55 +02:00
Alexandre Derumier
2bca9b773e api2: network reload : generate local sdn config
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-09-03 10:28:55 +02:00
Alexandre Derumier
f0f63a1cb2 api2 : cluster: add sdn api endpoint
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-09-03 10:28:55 +02:00
Thomas Lamprecht
a740deff88 fix typos all over the place
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-03 07:55:32 +02:00
Thomas Lamprecht
e1b5780906 api startall guest: improve descriptions
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-03 07:53:11 +02:00
Stefan Reiter
518a397487 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>
2019-09-03 07:08:47 +02:00
Thomas Lamprecht
a02348b953 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>
2019-08-30 18:55:58 +02:00
Tim Marx
4a512d7a2e api: fix nodes stats memory return type description
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-08-26 13:36:48 +02:00
Peter Keresztes Schmidt
94961aff44 CPU flags: Add aes flag
Signed-off-by: Peter Keresztes Schmidt <peterke@sos.ethz.ch>
2019-08-23 10:41:29 +02:00
Dominik Csapak
385df8382d 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>
2019-08-22 14:09:20 +02:00
Dominik Csapak
9b80367057 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>
2019-08-22 14:09:20 +02:00
Thomas Lamprecht
e30cddd254 ui: vm memory: correctly set initial maxValue for balloon
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-22 14:08:50 +02:00
Thomas Lamprecht
94d7d5acfb 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>
2019-08-22 14:07:47 +02:00
Thomas Lamprecht
a94d02955a bump version to 6.0-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-16 13:10:40 +02:00
Stefan Reiter
b05c990876 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>
2019-08-16 13:09:42 +02:00
Stefan Reiter
43b2494b79 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>
2019-08-14 14:02:53 +02:00
Stefan Reiter
389d3cf19b 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>
2019-08-14 13:41:16 +02:00
Stefan Reiter
6cd5ffb06c 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>
2019-08-14 13:36:08 +02:00
Thomas Lamprecht
f5a82b09ec d/control: bump version of widget toolkit dependency
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-13 16:14:17 +02:00
Dominik Csapak
cc8c253f23 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>
2019-08-13 15:38:39 +02:00
Dominik Csapak
d0cdf92082 gui: fix html entities in system report file
since the content of the window is encoded with 'Ext.htmlEncode'
we have to decode it with 'Ext.String.htmlDecode' (Ext.htmlDecode is
a deprecated alias for it) before downloading the file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-08-09 09:22:35 +02:00
Stefan Reiter
e953f92adf fix #2314: remove GZIP env var
...and replace instead with command line argument.
Avoids a deprecation warning.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2019-08-08 13:18:45 +02:00
Dominik Csapak
4ed5c13800 gui: ceph wizard: fix typo
s/Coniguration/Configuration/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-07-26 08:25:34 +02:00
Dominic Jäger
4d23cdef16 Fix #582: Add default delay for backups
A default of 5 seems like a reasonable delay for removing backups from
the GUI.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2019-07-25 13:23:40 +02:00
Thomas Lamprecht
e5d8aebb35 ui login: followup: add some hints to the 595 login error message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-24 18:36:04 +02:00
Oguz Bektas
f41b67ab7c ui: login: do not show connection failure as login failure
In case pvedaemon, pveproxy is not running or we get somehow else a
595 response (connection failure), we want to tell this to the user,
since "Login failed" doesn't help.

Handle all connection failures, leave the rest the same. We could go
into more detail (CONNECT_FAILURE, CLIENT_INVALID, LOAD_FAILURE and
SERVER_INVALID), but i didn't see any reason to make all these
distinctions now.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-07-24 18:34:18 +02:00