Commit Graph

2689 Commits

Author SHA1 Message Date
Fabian Grünbichler
95f99e8c5e aplinfo: use explicit defined checks
a checksum of '0' can never be correct, but this makes the code clearer
2016-08-24 13:08:45 +02:00
Fabian Grünbichler
79be6db38a aplinfo: use fh for both digests
for consistency, because Digest::MD5 cannot handle filenames directly..
2016-08-24 13:08:22 +02:00
Dominik Csapak
4661648a14 drop all hide calls
since we do not use tabpanels anymore,
the hide calls and listeners do nothing,
so we can drop them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:46:47 +02:00
Dominik Csapak
f3bb7cf1a2 remove subconfigpanel related code
this removes all subconfigpanel related code,
since it is not needed anymore

we now have the treelist/cardpanel combo instead of tabpanels
which means we can drop the whole subconfigpanel class
and subclasses

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:32:25 +02:00
Dominik Csapak
7247077d0e move crushmap into ceph config
instead of having 2 panels,
we have now a splitted panel
with both config and crushmap

also drop the not needed [] around the alias

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:32:03 +02:00
Dominik Csapak
7ccbcc6c89 reorganize storage and pools
add icons to panels

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:31:22 +02:00
Dominik Csapak
c284be32bd reorganize qemu items
use new tree functionality of configpanel

move options,monitor,console under hardware (now system)
move firewall subpanels into tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:31:11 +02:00
Dominik Csapak
e62ebded82 reorganize lxc items
use new tree functionality of configpanel

move options,network,dns,console under resources (now system)
move firewall subpanels into tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:30:56 +02:00
Dominik Csapak
332581a88d reorganize node items
use new tree functionality of the configpanel
move services,time,syslog and shell under summary
move dns,firewall under network

move subpanels of firewall and ceph in the tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:29:21 +02:00
Dominik Csapak
2af89b7b59 reorganize datacenter items
use the new tree functionality of the configpanel
make users,groups,pools,roles and auth
subitems of permissions (expanded by default)

instead of using the subconfigpanel for
ha and firewall, use the panels directly
as subitems of ha-status and firewall-rules

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:20:38 +02:00
Dominik Csapak
9a4c279dbf use a treelist instead of tabs in configpanel
this patch changes configpanel class,
so that instead of creating a tabpanel,
we now are a card panel which uses a treelist
to choose the active card

this changes how the panel looks:
instead of having countless tabs on the top
we now can have a nice tree structure on the left

how the items will be interpreted by the tree
is commented in www/manager6/panel/ConfigPanel.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:19:09 +02:00
Fabian Grünbichler
62180d0f1d update descriptions, error messages 2016-08-24 10:18:27 +02:00
Fabian Grünbichler
c9a8ee0f8d aplinfo: add generated trustedkeys.gpg 2016-08-24 10:10:33 +02:00
Fabian Grünbichler
609801c560 aplinfo: use warnings 2016-08-24 10:10:07 +02:00
Fabian Grünbichler
0d2daf2cc5 aplinfo: update format spec with SHA512 2016-08-24 10:09:57 +02:00
Fabian Grünbichler
3b81e495cd aplinfo: improve checksum handling
instead of calling md5sums, use perl's Digest::MD5.
also support SHA512 via perl's Digest::SHA, to enable a
transition away from MD5.
2016-08-24 10:09:12 +02:00
Fabian Grünbichler
36b9245739 aplinfo: remove leftover cruft
this was probably missed in a previous refactoring, the
filehandle is only opened and closed here and read_aplinfo()
already opens and closes the file itself.
2016-08-24 09:57:18 +02:00
Fabian Grünbichler
868801cb22 aplinfo: improve signature verification
instead of importing the trusted gpg keys into root's
.gnupg on each appliance list update, install a trusted
keyring generated at build time.

verify signatures with gpgv and the trusted keyring instead
of gpg --verify on root's keyring with output parsing.
2016-08-24 09:56:38 +02:00
Fabian Grünbichler
c351eda952 aplinfo: replace system() with run_command/rename 2016-08-24 09:48:15 +02:00
Dominik Csapak
2650df0824 refer to manual in lxc wizard
adds a help button to the following panels in the lxc wizard

Template (points to: Container Images)
Root Disk (points to: Container Storage)
Network (points to: Container Network)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-23 09:10:47 +02:00
Wolfgang Bumiller
db6b444647 bump version to 4.2-18 2016-08-19 14:57:35 +02:00
Wolfgang Bumiller
b1339314b6 lxc: wizard: ssh key 2016-08-19 13:54:38 +02:00
Wolfgang Bumiller
6acb632a54 vzdump: set task mode early to fix a warning
when a vzdump script is set and the backup fails early (eg.
when exceeding the number of backups) run_hook_script()
showed an uninitialized value error trying to use
$task->{mode} which is set only after prepare() was called.

This sets $task->{mode} early, still updated later to $stop
if !$running, and changes the condition for whether
cleanup() should be called to not use $task->{mode} (which
makes no real sense anyway) to using the $cleanup hash like
the rest of the code.
2016-08-19 13:54:38 +02:00
Emmanuel Kasper
de7eeaac1c Clear sensitive content when logging out fixes #1060
The current position inside the Workspace is saved via the StateProvider
separately thus this clearing operation do not lose the previous selection.

As a side effect by calling setContent(null) on logout we also fix the
following bug:

when logging out while the Syslog tab of the Node panel was displayed,
you had to login twice due a to a race condition in the store
load of the Syslog panel. ( The login call could complete successfully
before a backgroup store load, causing the faild store load call
to redisplay a login window)
2016-08-19 13:54:38 +02:00
Dominik Csapak
4cb8c20f16 delete old lxc/qemu statusview classes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:37 +02:00
Dominik Csapak
d57f413ae2 make lxc/qemu use new statusview
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:37 +02:00
Dominik Csapak
cb892fb36c make node StatusView use new version
this implements the new StatusView for nodes
and uses it declarative instead of with Ext.Create

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:37 +02:00
Dominik Csapak
6d43126dcb include new statusview classes in makefile
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:37 +02:00
Dominik Csapak
c0a14978c2 add GuestStatusView and TemplateStatusView
this implements the new StatusView class for
guests and templates

using the new pveStatusView, we do not split the status
panels per lxc/qemu, but for Template/Guest

this makes more sense, since the information which lxc
and qemu guests have are more similar than what you want
to display for templates/guests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:36 +02:00
Dominik Csapak
054ac1b879 add new StatusView component
this adds a component StatusView which is intended to
replace the old statusview panels of qemu/lxc/nodes
(later maybe also pools and storages)

it extends Ext.panel.Panel and expects an rstore and title

it is not intended to be used directly but to be subclassed

it works like this:

on instantiating, it adds a listener to the rstore load,
so that on every rstore load 'updateValues' gets executed

there, if successful, looks for every subcomponent of type
'pveInfoWidget' and calls 'updateField' on it

'updateField' calculates the update text and value for
the info widgets based on the given class variables

using either:
textField -> which gets the value from the store and
displays it simple as text (with renderer and calculator)

or valueField and (optional) maxField
where it determines the usage
(also with a renderer and calculator)

for both there is a default calculator/renderer
but this can be overwritten when instantiating/declaring

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:30 +02:00
Dominik Csapak
23fd6c5395 add new infoWidget component
this adds a new component, which is 2 labels
(left the title and right the text) with a
small progressbar

it has a method updateValue, where it takes a string and
a value from 0 to 1 and updates the right label
and the progressbar

the progressbar gets a different css class at >60% and
>90% (i added some css classes to make it yellow and red
respectively)

the warning and critical thresholds are customizable

this will be used in a new version of the statusview

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:52:56 +02:00
Emmanuel Kasper
9829cb0dea Do not use a hardcoded Certificate Authority for https repositories
Instead we will the use the CA certificate provided by the
ca-certificates packages, which is now a mandatory depency of
pve-manager since 067d24db98 and
pve-manager 4.2-17. This change allows us in the future to
use different CA for our https repositories.

This changed has been tested OK with the following combination:
 * https repository using a StartCom certificate: works
 * https repository using a Let's encrypt certificate: works

User visible changes:
 * none : the new configuration file 75pveconf silently
 overwrites the olderone, except if local changes were made
 in which case you're presented with the traditional debian menu
 (keep local/ use packager version/ diff / open a shell)
2016-08-17 12:35:16 +02:00
Dominik Csapak
54b590f0c5 only use exact match in pveRealmSelector
store.findRecord returns the first match, and by default
matches the beginning of the strings not the whole

without this, with multple realms with the same name, but different
tfa settings, the login window can show the tfa input box even
when the selected realm has no tfa active

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-17 12:35:00 +02:00
Dominik Csapak
9644912e66 make the lxc wizard select the current node by default
like in the qemu create wizard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-17 12:35:00 +02:00
Emmanuel Kasper
b785adf1ee Remove obsolete make variable for ExtJS4 2016-08-12 12:06:44 +02:00
Dominik Csapak
86506300af add novnc-pve to pveversion -v
it was missing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-12 10:43:25 +02:00
Dominik Csapak
613ac9486b don't save password and double lines in pvesh history
we assumed that Term::ReadLine does not put
input into the history automatically, but it does this

so if this feature is enabled, we do not have to add
the inputs manually, and we have to delete the password
from the history

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-03 12:23:01 +02:00
Dietmar Maurer
936e4d890c avoid IE compatibility mode 2016-08-03 10:59:45 +02:00
Dominik Csapak
7d7f77ba06 fix influxdb field assignment and allow non integer field
this patch fixes an issue where we assemble the influxdb
key value pairs to the wrong measurement

and also we did only allow integer fields,
excluding all cpu,load and wait measurements

this patch fixes both issues with a rewrite of the
recursive build_influxdb_payload sub

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-02 13:15:47 +02:00
Dominik Csapak
36720d75c4 fix lint error
no traling commas

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-02 11:30:34 +02:00
Emmanuel Kasper
9875a997c8 closes #195 : hide disallowed commands in tree
When basic capabilities are missing, don't display the corresponding actions in
the tree menu.

Note that we *hide* the corresponding actions, instead of disabling by greying
out the menu command. Disabling here does not make sense, since a low privilege
user has no way to reenable the menu commands by himself.

This is mainly a usability improvement, as the real capabilities test is done in
the backend.
2016-08-01 17:16:18 +02:00
Wolfgang Bumiller
4050aade7f Add mac prefix to the datacenter options 2016-07-26 14:41:26 +02:00
Emmanuel Kasper
ed9896e205 prevent KRDB and Monitor(s) being localized
Both terms are rather domain specific and should not be translated.
See http://pve.proxmox.com/pipermail/pve-devel/2016-July/021975.html
for the problems of Monitor Host being wrongly translated
2016-07-26 14:38:47 +02:00
Dominik Csapak
e31294433f open vm console on doubleclick in tree
with this patch you can open the console of a guest
with a simple doubleclick in the tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-21 13:10:49 +02:00
Emmanuel Kasper
6cc8cfb361 Set VirtIO drivers as default when using the Qemu Wizard and the OS Type is Linux
virtio-blk and virtio-net have been in the kernel since 2.6.25 released in 2008, so
it safe to assume distributions using the l26 type will have these drivers.
2016-07-21 12:52:27 +02:00
Emmanuel Kasper
39c06c6925 USe PVE.qemu.OSDefaults statics to get defaults for NIC and Storage Controller 2016-07-21 12:50:27 +02:00
Emmanuel Kasper
b70e9ef5c8 Add PVE.qemu.OSDefaults class to hold OS-dependant wizard defaults 2016-07-21 12:46:52 +02:00
Emmanuel Kasper
42902182c0 Rename Wizard Component aliases using camelCase
this is ExtJS recommended practise, follows most of our
conventions and is necessary for querying
components with Ext.ComponentQuery.query() without escaping the
dots in the component widget name.
2016-07-21 12:44:13 +02:00
Dominik Csapak
e79d3eb5b7 change default proxy test to noneText
instead of having "Do not use a proxy" simply
use PVE.Utils.noneText, which defaults to 'none'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-18 12:40:59 +02:00
Dominik Csapak
eef363519d prevent infinite loop in edit window
on touch devices, the isValid function of forms trigger
a layout event, which the edit window listens to and
executes an isValid on the form -> infinite loop

we now suspend the layout before this and continue afterwards

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-15 16:49:25 +02:00