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.
Dominik Csapak [Fri, 4 Mar 2016 08:28:32 +0000 (09:28 +0100)]
ext6migrate: fix ceph Pool tab
the usual:
* move static conf. to class definition
* change "show" event to "activate"
special attention here to the bufferedRenderer: false value here:
if the grid panel has bufferedRenderer: true (default) and the
store is our Diffstore, it adds the Summary Row twice, once before
the store is loaded and once after.
because there probably will not be many pools in a ceph configuration
managed by the gui, we can safely deactivate bufferedRenderer
(according to extjs documentation, this is intended for gridpanels
with several thousand rows, which is not an issue with ceph pools
i think)
Dominik Csapak [Fri, 4 Mar 2016 08:28:31 +0000 (09:28 +0100)]
ext6migrate: fix ceph OSD Panel
* moved static configuration to class definition
* changed the width of the headers (because most were too small)
* changed "show" event to "activate"
special attention for the data fields:
changed the id from type integer to default type, because
extjs cannot convert form integer for this field
(if we do not do this, the whole ceph tab breaks)
Dominik Csapak [Fri, 4 Mar 2016 08:28:30 +0000 (09:28 +0100)]
ext6migrate: fix most ceph subtabs
this fixed the ceph subtabs: Status,Config,Crush,Disks,Monitor
with the usual fixes:
* moving static configuration to class definition
* change deprecated fields
* make xtypes consistent
* change "show" event to "activated"
special note: i moved the subtabs to the left (like the firewall),
because the alternatives are really bad (top looks not good, bottom
is not obvious)
i also changed the width of some headers in gridpanels when the
title was too long
Dominik Csapak [Fri, 4 Mar 2016 08:28:29 +0000 (09:28 +0100)]
ext6migrate: fix DiffStore event
some extjs components expect the datachanged event
to be fired, we changed this to refresh (which
worked for most things, but not all),
this patch fires both events when data is loaded
Emmanuel Kasper [Thu, 3 Mar 2016 13:43:22 +0000 (14:43 +0100)]
do not use applyIf when adding items in initComponent()
our parent class Ext.grid.GridPanel sets 'tbar: null'
and Ext.applyIf() will only apply our property
if it is undefined, so switch to Ext.apply()
it is safe to use Ext.apply() because none of these classes is further extended,
so we don't have to worry that might me might override a toolbar
set further down by a child class
this fixes allows the panel to display its top toolbar with add/edit buttons
Emmanuel Kasper [Thu, 3 Mar 2016 13:43:21 +0000 (14:43 +0100)]
adapt KVComboBoxes to pass store items using 'comboItems' parameter
we used a custom 'data' property to pass around the items to
add to the store, but this property is now used by ExtJS to
store content for the component template
vzdump: don't double exclude-paths from the config
The exclude list is built from both the command line
parameters and the config. If no excludes are passed on the
command line we previously copied the defaults to it,
effectively passing them twice.
vzdump: make exclude-path from config file work again
Call split_args() on the 'exclude-path' option read from
/etc/vzdump.conf
With the move to the generic JSONSchema::parse_config() in
commit cc61ea36 the call to split_args() for 'exclude-path'
was dropped breaking the 'exclude-path' option.
The schema's documentation was already updated to reflect
the change from regular expressions to shell globs, but the
pod entry in CLI/vzdump.pm wasn't.
Also C<> is not interpreted in verbatim (space-prefixed)
lines so it showed up as literal text.
This allows the user to only show logs from a specific date span.
For that two date picker and a 'Update' button were added to the
header bar.
For the until date we assume always 23:59:59 o'clock, as witouth
a specific time journalctl assumes 00:00 which would result in an
empty log if we only wanted to look at todays log.
As the LogView is shared with others (e.g. ceph log) use an boolean
variable to set if we want to show those date pickers)
Fixes timeout when the user has a long uptime and or persistent logs
allow the since/until parameters which journalctl understands
We use a really simple regex to check a valit date (time) stamp.
This can be done as this API call gets mainly used by the GUI where
we have full controll over what we send and additional journalctl
has already a good timestamp parser which can handle that.
Dominik Csapak [Tue, 1 Mar 2016 12:15:16 +0000 (13:15 +0100)]
ext6migrate: fix subscription tab
fixes:
* update deprecated field
* move static configuration to class definition
* change applyIf to apply
* change system report handler to pass a function to
check_command (instead of the result of showReport)
Emmanuel Kasper [Mon, 29 Feb 2016 12:50:08 +0000 (13:50 +0100)]
move tabs of a sub tabpanel to the left by default
This takes a bit of screensize, but is fine as long as the browser
horizontal screen size is at least 1280 px ( 92 % of desktop users in 2016
according to StatsCounter)
Still usable for the remaining small displays, but horizontal scrolling
is needed for grids with a lot of columns.
Moving the sub tabs to the top left provides a minor usability
improvement as all controls are now grouped together in the same
screen region.
Dominik Csapak [Mon, 29 Feb 2016 11:54:47 +0000 (12:54 +0100)]
ext6migrate: fix model behaviour for KVComboBox
we used an empty value for the Key-Value ComboBox for defaults.
With extjs6, if the idProperty of a model is empty, they generate
a name for it, which breaks our logic for submitting
(currently we checked if this is empty, and send a delete command
to our api)
instead, we use the value 'default' and check for it when we submit
Dominik Csapak [Fri, 26 Feb 2016 14:33:44 +0000 (15:33 +0100)]
ext6migrate: update vncconsole and remove java applet code
includes the following fixes:
* remove all code related to the old java applet vnc client
(we do not use this anymore)
* move static configuration to class definition
* use Ext.ux.IFrame instead of widget.uxiframe (to be consistent)
* change listener from show to activate (for browser refresh)
* change deprecated autoScroll to scrollable
* remove novnc option from openVNCViewer function,
since we do not need this option anymore