Commit Graph

1837 Commits

Author SHA1 Message Date
Emmanuel Kasper
3d990919c2 ext6migrate: set valueField as a class property
Also moves to full declarative style for
IPProtocolSelector, saves 11 lines of of boilerplate code
(works when the store is local and not pulled over the API)
2016-02-15 12:28:13 +01:00
Emmanuel Kasper
a263665b16 Ext6migrate: Update our ComboGrid component to work with ExtJS6
The ComboGrid combonent requires row-like selection something that
the default ExtJS Ext.selection.DataViewModel used for ComboBox cannot do.

This requires overriding the protected method onBindStore() where the selection
model is set.
2016-02-15 12:25:17 +01:00
Thomas Lamprecht
5fc9bddb07 ext6/triton: add some visual changes and fixes
They are mostly intended to save space as the "new theme", if it
gets applied, takes up space like it's worth pure gold.

Paddings get made smaller on buttons, tabs and grids.
Also let the main tree receive a sane space padding.

Further fix the height of the top info panel (the one with the logo,
PVE version, login button ...).

Also the "start/stop/more/..." buttons from the tool bar above the
navigation tab bar gets fixed.

Login panel got also some small fixes together with all input
fields.

We use simple CSS overrides to achieve this all.
Working with the scss (sass) files and rebuilding the theme would
be nicer, but as I have no intend to start working with senchas
"build system" and we self have no sane way for compiling the sass
stuff also, this is the preferred way for now.

We add a new css stylesheet so that the current manager remains
untouched by this changes.
2016-02-12 10:46:51 +01:00
Dietmar Maurer
5a49655419 bump version to 4.1-13 2016-02-12 10:43:31 +01:00
Dietmar Maurer
194076348f pveupdate: use warnings instead of -w 2016-02-12 10:42:23 +01:00
Dietmar Maurer
f9ee64e1a5 bump version to 4.1-12 2016-02-12 08:23:00 +01:00
Thomas Lamprecht
90c75580b6 add permissions to allow non root ceph configuration
Do not only allow root@pam to admin ceph server as some user do not
want to allow root logins and users with the Sys.Modify permission
should be able to modify ceph related stuff.

We use basically the following permissions:
 Sys.Modify:
    for any delete, add, modify action (POST, PUT, DELETE)
 Sys.Audit and Datastore.Audit:
    for any status/information view action (GET)
 Sys.Log:
    for viewing the Ceph log (was already implemented)

We have two exceptions creating and destroying osds. Those may only
be done by 'root@pam' for security reasons.

Also show users with any of those capabilities the ceph tab in the
web GUI.

Addresses bug#818
2016-02-12 08:22:16 +01:00
Dietmar Maurer
feaf335817 bump version to 4.1-11 2016-02-11 12:06:12 +01:00
Wolfgang Bumiller
c7f3280811 Close #822: show the nodename in the page title 2016-02-11 12:05:08 +01:00
Thomas Lamprecht
89ceb8026a use max_workers from datacenter.cfg for stopall/migrateall
If set limit the maximal worker count to the new datacenter.cfg
setting 'max_workers'.

For stopall we prefer this over the cpu count if it's set.

For migrateall we prefer the parameter but allow now to ommit
the parameter and then we use the new setting if set.
if both are not set we throw an error.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-02-11 11:13:55 +01:00
Wolfgang Bumiller
c2c8ca92b3 cleanup leftover debug output 2016-02-09 12:41:56 +01:00
Emmanuel Kasper
734b37950e ext6migrate: last fixes for firewall
listen to 'activate' event is needed because of framework changes,
similar to c0b3df6e34

ext6migrate: listen to 'activate' events for panels inside a tabpanel
2016-02-09 07:29:31 +01:00
Emmanuel Kasper
cee050e2a1 ext6migrate: fix minor selection bug in the ComboGrid
up to now we were only updating the picker selection when the picker
was created, which means that subsequent changes in the text field were
not propagated to the drop-down list

This patch creates a private syncSelection() method which is called each time
the picker is shown
This is roughly based on the ExtJS 4 ComboBox behaviour
2016-02-04 18:07:00 +01:00
Emmanuel Kasper
61bd788866 ext6migrate: fix IPRefSelector ComboGrid
The IPrefSelector ComboGrid can have selected values which are not backed
by the component store, ie the store only contains IP aliases, but
the ComboGrid can contain an IP adress not registered as an IP alias.

In that case we should not try to update the selection in the dropdown,
as the dropdown only knows about the component store.

Implementation is similar to the syncSelection() private method of the
ExtJS4 ComboBox.
2016-02-04 18:05:54 +01:00
Emmanuel Kasper
6cc50c8044 ext6migrate: push array elements separately 2016-02-04 18:04:53 +01:00
Emmanuel Kasper
b6f01f8430 ext6migrate: replace unsafe pattern
using applyIf is not safe here as the tbar property has already been set
by the framework ( and anyway we would like to override any default
set by the framework )

this allows the toolbar of the component to be displayed
2016-02-04 18:04:38 +01:00
Emmanuel Kasper
fa94a9776a ext6migrate: push array elements separately
This fix is needed for buttons and columns to be properly displayed when
loading the component.
2016-02-03 16:39:28 +01:00
Emmanuel Kasper
e7bc7f3192 ext6migrate: adapt to new KVComboBox interface 2016-02-03 15:00:07 +01:00
Emmanuel Kasper
f3578e261f ext6migrate: replace new with Ext.create()
This allows us in the future to use the ExtJS class
autoloader if we want
2016-02-03 14:59:54 +01:00
Dietmar Maurer
b94322610f bump version to 4.1-10 2016-02-02 18:13:35 +01:00
Dominik Csapak
cba2c62be3 remove 'VZDump backup file' option from upload web gui
since we do not want to upload vzdump backup files (see bug #498),
it is confusing to expose this option in the gui, since currently
it can never succeed.

the correct way would probably allow it based on the users permissions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-02 18:12:12 +01:00
Dietmar Maurer
26dabcb3ca bump version to 4.1-9 2016-02-01 17:13:36 +01:00
Wolfgang Bumiller
d4575fb0d9 gui: use empty default cpu data for ProcessorInputPanel
Since the create wizard doesn't fill the cpu type we need a
default to avoid accessing undefined values.
2016-02-01 17:12:07 +01:00
Wolfgang Bumiller
730b25581f gui: cpu: fix processor editing
The last processor editing commit broke various parts of the
cpu editor window.
Most noticeably switching between the default and non-default
cpu types dealt with empty values wrongly and tried to
delete the 'cputype' property rather than the cputype
portion of the cpu property string.
2016-02-01 17:10:49 +01:00
Wolfgang Bumiller
8aebff91f5 extjs: add parseBoolean for drive backup and iothreads
The backup and iothread options are now boolean types
internally instead of strings and need to be treated as
such.

Added a parseBoolean() function to deal with this with an
optional default value to use for undefined values.

The default for an undefined backup value is true.
2016-01-29 12:23:04 +01:00
Emmanuel Kasper
7a4c3133bc ext6migrate: adapt the Checkbox column of the firewall panel to ExtJS6
API changes in ExtJS6 involved here:
 * 'checkchange' event passes now the record index instead of the whole record
 * record.fields is now an array of Field objects, before it was an Object
2016-01-28 16:56:17 +01:00
Emmanuel Kasper
85203d5bea ext6migrate: enable the Firewall tab 2016-01-28 16:50:42 +01:00
Emmanuel Kasper
1d397ae1b3 ext6migrate: remove our in house checkcolumn
This component is now available in the framework and works properly
( tested with FirewallRules.js who was the only one using it)
2016-01-28 16:50:25 +01:00
Emmanuel Kasper
0aba2d0413 ext6migrate: enable the AuthPanel
'data' is renamed to 'comboItems' to match the new KVComboBox
2016-01-28 11:18:14 +01:00
Emmanuel Kasper
56c500b917 ext6migrate: remove 'comment' id from Comment column in our tables
The use of this field raise an error with ExtJS6 because it is not
unique inside the application.
Removing this is safe, because we never query the Comment column
with an id.
2016-01-28 11:16:55 +01:00
Wolfgang Bumiller
789536e7e8 PendingObjectGrid hasPendingChanges optimization
Break out of Ext.Array.each early by returning false when
we found a pending change.
2016-01-28 10:27:29 +01:00
Dietmar Maurer
b6dfc18598 update changelog 2016-01-27 17:12:01 +01:00
Thomas Lamprecht
10a9a736ed fix PVE::HA use clause so HA resources get registered
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-01-27 17:11:21 +01:00
Emmanuel Kasper
389b62b276 ext6migrate: fix picker dropdown on ViewSelector initial load
This fixes a nasty bug where an initial click on the  ViewSelector
trigger would display the picker but hide it immediatly afterwards.

What was happening behind the scene, is that without queryMode 'local',
the store bound to the picker was loaded on each picker display.

Loading the store would then trigger our onLoad() override in ToolKit.js
which called setValue(), which fired a bunch of unwanted events
including 'collapse'.

It is safe here not to call onLoad() to set an initial value, because
the initial value is set in initComponent() (value: groupdef[0][0])
2016-01-27 16:53:12 +01:00
Dietmar Maurer
2b353a6042 bump version to 4.1-8 2016-01-27 16:46:01 +01:00
Wolfgang Bumiller
0f2c29ad4f gui: preserve extra cpu options when changing CPU type 2016-01-27 16:44:59 +01:00
Emmanuel Kasper
aeb5e2f63f replace object creation via 'new' with ExtJS methods
This makes the code more homogeneous and allows us to use the ExtJS
class autoloader in the future if we want (autoloader idea: ExtJS tries to load the
JS class file over HTTP based on the class name, no need to maintain a list
of includes)
2016-01-27 09:18:15 +01:00
Emmanuel Kasper
fb3877561f ext6migrate: fix ressource tree filter selection
the selection do not return an array but a single 'records' object
so records.length is always undefined
2016-01-27 09:17:53 +01:00
Emmanuel Kasper
820c770f04 ext6migrate: move static fields to class body
Some fields  need to be processed by initConfig(),
which will be run before initComponent() in the
component lifecycle.

This fix the problem of the Selector default value
whihc was not loading.
2016-01-27 09:16:58 +01:00
Dietmar Maurer
ffd96a3bf5 add correct display text for lvmthin and drbd storage type 2016-01-27 05:56:30 +01:00
Dietmar Maurer
0d3370c685 bump version to 4.1-7 2016-01-26 16:47:46 +01:00
Fabian Grünbichler
41196653e1 Add DHPARAMS option in /etc/default/pveproxy
If set, Diffie-Hellman parameters in PEM format are loaded
from the given path. Otherwise, the built-in 'skip2048'
group is used.

Also fix some typos in the man page.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-01-26 16:44:17 +01:00
Fabian Grünbichler
ee0b96b15f Enable TLS 1.1 and 1.2, change default DH params
AnyEvent uses a built-in DH group defined as 'schmorp1539'
by default, which seems to trigger the bug in [1] for every
attempt of accessing the web GUI using IE11 and TLS1.2. By
switching to a bigger default DH group ('skip2048'), the
bug seems to be gone (or trigger sufficiently rarely).

1: http://engineering.imvu.com/2015/01/27/the-case-of-the-page-cant-be-displayed-intermittent-selenium-test/
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-01-26 16:42:53 +01:00
Emmanuel Kasper
08801a5d01 ext6migrate: fix a long running bug where a logout from the GUI would break the workspace
If we pass true to the removeAll() , ExtJS6 will try to erase the leafes of a tree,
and then try to to iterate throuch these leaves in onNodeRemove() ( this obviously do not work)

The true parameter does not seem to be needed anyway anymore.
After a call to removeAll, the childNodes[] property of the rootNode is empty
2016-01-26 10:54:32 +01:00
Emmanuel Kasper
b70496d69d Comment out missing/broken JS classes so we can select nodes in the left ressource tree with ExtJS6 2016-01-26 10:53:44 +01:00
Emmanuel Kasper
7722bd0958 When running with extjs=1, construct the includes lists based on manager6 dir content
This way, we don't have to manage manually the list files and let the FS do it.
For development purpose only.
2016-01-26 10:52:53 +01:00
Dietmar Maurer
3f60f3b82a bump version to 4.1-6 2016-01-25 11:01:27 +01:00
Wolfgang Bumiller
675946f221 fix #871: netstat: include veth devices
Include container's veth devices in /nodes/{node}/netstat
2016-01-25 10:59:48 +01:00
Dietmar Maurer
cab2875f4f add description for vztemplate and vzclone tasks 2016-01-22 11:24:32 +01:00
Dietmar Maurer
6c545e91d3 lxc GUI: add 'Convert to template' 2016-01-22 11:24:31 +01:00