Commit Graph

2090 Commits

Author SHA1 Message Date
Wolfgang Bumiller
17ab437fab lxc: disable ACL settings for bind mounts 2016-03-14 17:28:59 +01:00
Dominik Csapak
3d9bc0a27f ext6migrate: fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:18:46 +01:00
Dominik Csapak
1928545b8d ext6migrate: fix pool member view
change show event to activate

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:18:34 +01:00
Dominik Csapak
aa5dbcc32f ext6migrate: remove unecessary hacks
this removes the two overrides for extjs4

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:18:18 +01:00
Dominik Csapak
c90539dead ext6migrate: fix double loadMask
fix the double loadMask, (it exists, because extjs has a default
loadmask for gridpanels)

also move static configuration to class definition

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:17:51 +01:00
Dominik Csapak
ee231e7918 ext6migrate: fix framework caching issue
in extjs 5/6 there is a caching issue, where they
save dom elements for reuse, but the garbage collector
can set them to null

when the framework now reuses the "cached" element it is null,
and any action on it produces an error, which breaks the site

for details see the forum link in the comment

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:16:58 +01:00
Dominik Csapak
f2a6ce6cf1 ext6migrate: fix store load race condition
when we click on a node/container/vm and quickly
click on something else, there might be a race condition,
where the store finished loading and we try to change
dom elements, which are not there anymore

so we change the store.on to me.mon, which
deletes the handler when the component is gone

in the logview panel we use API2Request, where
we cannot do this, so we check if the component
is destroyed manually

also we change this whenever we change a dom element
in a callback

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:16:37 +01:00
Emmanuel Kasper
27ea3c5981 Fix LXC summary view:
* replace scrollable with autoScroll and move to prototype body
 * use 'activate' to load store on F5
 * do not set a height on the StatusView component: it hides some rows,
and the framework sets a good working default height
2016-03-14 17:11:24 +01:00
Emmanuel Kasper
8132a620a1 Enable last remaining lxc panels 2016-03-14 17:11:06 +01:00
Emmanuel Kasper
d0e96c0d50 update leaf nodes instead of removing / readding them
if the selected node has its status changed between stop &
running, the node was removed and then readded
during the remove / add process the 'selected' status of the node
was lost if it has one

instead of deleting / readding the node, we update now its content
this was the default behaviour for server nodes, but not for leaf nodes

this fixes a graphical bug where starting/stopping a VM/container would lose
the current selection in the ressource tree
2016-03-14 17:02:46 +01:00
Dietmar Maurer
2618ee9782 ext6migrate: remove useless padding to improve TaskViewer layout 2016-03-11 17:49:37 +01:00
Dietmar Maurer
0423798570 lazy create view controller (use xclass property) 2016-03-11 17:17:43 +01:00
Dominik Csapak
834ba9e4ec ext6migrate: change setContent behaviour of workspace
instead of removing the current content and setting the new
we add the new content to the next card of the content container
(which now has the card layout, same as in the wizard)

then seamlessly change the active card, and then destroy the old card
with a delay

this has three reasons:
on a change, the panel does not flicker anymore
we give the old content time to finish ajax request (avoid race
conditions)
and we (hopefully) load the new content faster as the destroy
process can take some time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:36:35 +01:00
Dominik Csapak
bc53e0716d ext6migrate: avoid using id
since id should be unique for the whole dom,
avoid using it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:34:55 +01:00
Dominik Csapak
04a234a024 ext6migrate: fix task history race condition
on destroy, stop the store loading, else
we try to update dom elements which are not there anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:33:45 +01:00
Dominik Csapak
fd02b3c506 ext6migrate: add unqueue to UpdateQueue
in the event of a destroyed or stopped object/updateStore,
we do not want to execute queued requests, thus we
need to unqueue them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:32:47 +01:00
Dietmar Maurer
95c4a0cb84 bump version to 4.1-21 2016-03-11 16:30:38 +01:00
Dominik Csapak
6c1a2b8690 disable template/upload button in manager6, fixes #483
also for manager6

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:29:30 +01:00
Dominik Csapak
b8187b26c7 disable template/upload button, fixes #483
with this patch, the upload/template buttons
are disabled, when the selected storage
has the respective contents disabled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:29:14 +01:00
Dietmar Maurer
da096950ee ext6migrate: use a view controller for LoginWindow 2016-03-11 12:55:35 +01:00
Dietmar Maurer
3262415bbf ext6migrate: fix LoginWindow
move the static configuration to the class definition
2016-03-11 10:23:58 +01:00
Dietmar Maurer
b836f4a04b use 'form' layout for login window
this fixes padding problems when using new themes.
2016-03-11 10:09:44 +01:00
Dominik Csapak
c6179cf5cf ext6migrate: fix Pool View
move static configuration to class definition
change applyIf to apply
and change show event to activate

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:25:20 +01:00
Dominik Csapak
177de3de1c ext6migrate: fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:24:53 +01:00
Dominik Csapak
232c96e0f1 ext6migrate: add Tabs to Storages
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:24:42 +01:00
Dominik Csapak
86cc7049d2 ext6migrate: fix ContentView grouping
the framework triggers the convert function
when you click on a grouping header

since there is no volid there, we have to check this,
otherwise we get an error

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:24:31 +01:00
Dominik Csapak
2a82a5286b ext6migrate: fix zpool storage subject
the correct value is 'zfspool' not 'ZFS Storage'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:24:05 +01:00
Dominik Csapak
e857c94adc ext6migrate: fix StatuView and Summary
we move the static configuration to the class definiton
change applyIf to apply
and change the show event to activate

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:23:47 +01:00
Dominik Csapak
3b422683cf ext6migrate: fix ContentView
we move the static configuration to the class definition
we change the deprecated autoScroll to scrollable
we change applyIf to apply (when appropriate)
we change "new Ext..." to Ext.create
we change the event from show to activate

also we change the button height of the upload to 32
so that it matches the textfield (looks weird otherwise)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:23:36 +01:00
Dominik Csapak
c2317525f0 ext6migrate: fix dropboxes in Storage Edit windows
we fix this by moving the static configuration (especially value and
displayfield) to the class definition

also we remove the scrollbar hack (it works properly now)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:23:20 +01:00
Dominik Csapak
3f90858ace ext6migrate: remove unnecessary array declaration
we do not need the array definition for the alias

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:23:00 +01:00
Dominik Csapak
5198365d53 ext6migrate: change PVE.form.NodeSelector to pveNodeSelector
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:22:39 +01:00
Dominik Csapak
a74714b8b5 ext6migrate: add LvmThinEdit.js to html site
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:22:26 +01:00
Dietmar Maurer
0c061aec56 ext6migrate: use crisp theme instead of triton
This theme works without to many css changes.
2016-03-10 17:17:01 +01:00
Emmanuel Kasper
e7f0e95e2f fix storage selector 'change' event handling
the initial loading of the storage selector fires a 'change'
event via the 'onLoad' method of its parent class

at that point the value of the storage selector is empty,
and the callback function fails
2016-03-09 18:03:54 +01:00
Emmanuel Kasper
0b409147ad Fix ComboBoxes when adding a mountpoint
reasoning identic to:
commit 8f8e8a2e06
adapt KVComboBoxes to pass store items using 'comboItems' parameter
2016-03-09 18:02:43 +01:00
Emmanuel Kasper
4c1c0d5d2a copy missing methods from ExtJS 4 Parser.js 2016-03-09 18:02:28 +01:00
Emmanuel Kasper
0d9df07076 fix display of lxc console button text
same reasoning as

f799361886
do not use applyIf when adding items in initComponent()
2016-03-09 18:02:09 +01:00
Emmanuel Kasper
4b4885652c load/reload stores of tabpanel children on 'activate' event 2016-03-09 18:01:55 +01:00
Emmanuel Kasper
c9d05dc8bb fix lxc console selection ComboBox for extjs6
reasoning identic to

commit 8f8e8a2e06
adapt KVComboBoxes to pass store items using 'comboItems' parameter

commit f2782813cd
ext6migrate fix model behaviour for KVComboBox
2016-03-09 18:01:39 +01:00
Dietmar Maurer
67f010216a update changelog 2016-03-09 17:50:20 +01:00
Wolfgang Bumiller
41bfbd0a73 lxc: always allow blank mac address for autogeneration
Same as with KVM.
2016-03-09 17:47:54 +01:00
Dietmar Maurer
c78f745aee bump version to 4.1-20 2016-03-09 14:38:46 +01:00
Fabian Grünbichler
299d290c42 Allow non-self-signed override certificate for API
if the files pveproxy-ssl.pem and pveproxy-ssl.key are
available for a node (i.e., in /etc/pve/<node>/), they will
be used as TLS certificate and private key for the web
interface and API of this node.

Note: the Spice and non-websocket VNC connections are still
using the self-signed certificate and key in pve-ssl.pem
and pve-ssl.key.
2016-03-09 14:37:55 +01:00
Dietmar Maurer
e59db2739d bump version to 4.1-19 2016-03-08 11:57:32 +01:00
Fabian Grünbichler
7141ae254a Use methods from PVE::QemuConfig
use config_file and load_config from PVE::QemuConfig
2016-03-08 11:53:33 +01:00
Dominik Csapak
a9f712828d ext6migrate: fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:26:29 +01:00
Dominik Csapak
c3378f7b3e ext6migrate: add LVM-Thin to manager6
shows the option to add lvmthin storage

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:26:08 +01:00
Dominik Csapak
fbf6e7b412 ext6migrate: fix NodeSelector
the intial value of the node selector is null,
but when the store is loaded, it becomes an empty array

this triggers the 'dirtychanged' event and causes
the edit windows to enable the OK/Submit Button,
even when no change is made

this fix sets the default value to an empty array,
which fixes the mentioned behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:25:57 +01:00
Dominik Csapak
b4ea8af6cc ext6migrate: fix User and Role selector
we have to move the static fields to the class
configuration, otherwise the combobox does not work

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:25:17 +01:00