Commit Graph

29 Commits

Author SHA1 Message Date
Aaron Lauterer
d27a44a615 ui: fix column behavior with browser scaling
especially on chromium based browser (e.g. chrome, edge) it can happen,
depending on the zoom level, that the last column does not fit next to
the other columns and is moved below the other columns.

This results in an ugly looking UI and in the worst case makes it
unusable.

This can also be triggered if the monitor is set to a higher scaling /
different DPI settings. I was able to have the same problem in Edge when
setting the scaling in the windows display settings to 125% (Clone VM).

Changing the layout from columns with 0.5 width to extjs HBOXes with
flex 1 works as expected.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2020-11-17 09:58:49 +01:00
Thomas Lamprecht
cd338fe153 ui: migrate: sort migrations hints by text column
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 19:24:27 +02:00
Fabian Ebner
11c17a01b7 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>
2020-06-06 18:49:08 +02:00
Fabian Ebner
0411c2c058 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>
2020-06-06 18:49:08 +02:00
Thomas Lamprecht
3bbce3b8cd drop jslint lines
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 18:11:47 +02:00
Tim Marx
8b4987e5a9 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>
2020-06-03 16:27:38 +02:00
Fabian Ebner
4119b159e9 ui: don't block offline migration due non-referenced disk in the config
All local disks can/will be migrated if not for a reason we don't
know about yet at this stage. The disks we get from the API call as
'local_disks' are either referenced by the config or by snapshots in
the config (which was not checked for and the reason one could run
into the 'else if' branch).

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-29 12:17:14 +02:00
Mira Limbeck
cea7382bd8 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>
2019-10-18 21:49:05 +02:00
Tim Marx
4ddaf2909e 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>
2019-10-14 13:38:46 +02:00
Thomas Lamprecht
a4740d30ac ui: window/migrate: use space separator between type and VMID
Like previous to commit 9706707d2f
which broke this, we have some assumptions in our gui-test/screenshot
automation which lays assumptions on certain window titles, so try to
keep them stable.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-15 20:14:39 +02:00
Tim Marx
c54f9a758d ui: migrate: add storage and size information to preconditions
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-28 17:42:21 +02:00
Thomas Lamprecht
b453339028 ui: vm migrate: rename icon to severity and uses renderer
and some other minor style changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 21:29:06 +02:00
Thomas Lamprecht
090dff2f43 ui: migrate: add source node field and rebalance field positions
This makes the window more symmetric, and additional has the
following small advantages:
* to the left we now have static fields only, user modifiable ones
  are all to the right (with shorter distance to the migrate "submit"
  button here)
* if one starts the migration from the tree's context menu it may not
  be really clear where the VM currently is located at, so showing
  the source node can help (especially on bigger clusters with a
  huge target node list)
* more symmetric

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-17 12:47:12 +02:00
Thomas Lamprecht
3188b0b707 ui: migrate: set window width to 600
700 feels a bit wide

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-17 12:39:51 +02:00
Tim Marx
9706707d2f ui: migrate: refactor migrate window & add migration with local disks
This patch depends on:
qemu-server: e1f0fbf4448b374eb9a19502aee565adb5be7ec0

This patch refactors the migrate ui to incoperate the viewmodel approach
which should help if we need to add functionality in future iterations.
Additionally it is now possible to migrate with local disks.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-15 11:15:30 +02:00
Thomas Lamprecht
672a6270ea use HelpButton from widget toolkit
Proxmox.button.Help renamed the css class for the button styling, as
this class is only used rarely and the widget toolkit does not
provides a (shared) css file itself, just rename it here too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
8cbc11a70c use TaskViewer & TaskProgress window from widget toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Dominik Csapak
e7ade592e3 use Proxmox.Utils instead of PVE.Utils
some function are now in Proxmox.Utils instead, so we have to use that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:38 +01:00
Emmanuel Kasper
1c62fde24d Turn the offline/online checkbox of the Migrate Windows into a displayfield
This checkbox had not effect whatsoever:
 * if the VM was online and offline was selected, the migration would fail
 with the message that the --online flag is needed for running VMs
 * if the the VM was offline and online was selected, the migration would
 happen offline anyway
2017-09-19 11:11:29 +02:00
Emmanuel Kasper
2df7ea9fda Rework Migrate Window with declarative synthax
Also group all qemu vs LXC tests in a single place.
2017-09-19 11:11:29 +02:00
Emmanuel Kasper
d0ad472c73 Close #1268: Show migration start server and migration end server 2017-07-25 14:24:35 +02:00
Dominik Csapak
8f3600b629 disable submit button in migrate window when not valid
when the form is not valid (e.g. an offline or no host selected),
disable the submit button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 08:21:30 +01:00
Dominik Csapak
6b43f8f16d fix typo in vmtype check
by mistake we checked if me.vtype is 'qemu'
but the property is me.vmtype, so we would always show
restart mode

note that this error was purely cosmetic, behaviour was correct

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-05 12:26:53 +01:00
Dominik Csapak
209daf221e adds a help button to the migration window
for now we have to explicitely define the
    onlineHelp: 'blockid'
string, so that the parser picks it up

in the future we should refactor that window, so that we define the
blockid when declaring the component

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-02 16:35:09 +01:00
Dominik Csapak
18fdf0bcf6 change lxc migration option to restart mode
since online migration does work at the moment, and with ha we already
have the restart mode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-02 16:33:52 +01:00
Thomas Lamprecht
766998b1ae do not show current node in migration window
As we cannot migrate to the source node do not show it in the
migration window's node selector.

Fixes #1049 partly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-19 09:51:48 +01:00
Dominik Csapak
87d7df9664 show CT in migrate window Title
shows different title in migration window if vmtype
is not qemu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 15:32:58 +02:00
Emmanuel Kasper
d46faa2c06 change xtype name to follow ExtJS and our own conventions
this also fixes the problem that the method
Ext.ComponentQuery.query() was outputting a warning
since it did not know if it should perform a  lookup
for a class name or a xtype
2016-02-26 07:37:29 +01:00
Dietmar Maurer
bac5bd135c rename manager5 to manager6 2016-01-22 11:24:10 +01:00