2412 Commits

Author SHA1 Message Date
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 067d24db982be44ff64cb5eb61a3297bba6afdc9 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
Dominik Csapak
70e779e47b add HostList validator and check monhosts with it
this adds a vtype which splits the given string into a list by
; or , or space
and checks if it is a valid (hostname|ip) port notation

also make the rbd monhost input field use it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-15 11:53:05 +02:00
Dominik Csapak
7b58d7b272 refactor DnsName regex
we will need this again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-15 11:53:05 +02:00
Dominik Csapak
62631154f9 give comment in bridgeselector more space
change the default column widths, to give more space
to the comment column

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-12 14:43:54 +02:00
Wolfgang Bumiller
3ddb4f31a5 bump version to 4.2-17 2016-07-11 13:11:11 +02:00
Fabian Grünbichler
0da2260fc2 vzdump: add newline in mail text
for consistency with html version and better readability
2016-07-07 11:12:24 +02:00
Wolfgang Bumiller
44b21574f0 Fix #1048: vzdump: include job-* hook logs in email 2016-07-07 10:52:58 +02:00
Wolfgang Bumiller
6cd975001f vzdump: safer cp call 2016-07-07 10:52:58 +02:00
Wolfgang Bumiller
c37f23f53b fix undefined value warning in resources api call
With the new calculation $pe->{maxcpu} was used before being
initialized to zero. Moving the initialization up.
Additionally setting $pe->{cpu} to $entry->{cpu} if maxcpu
is not set seems pointless as with its factor (maxcpu)
initialized to zero it is cancelled out anyway.
2016-07-07 08:15:15 +02:00
Dominik Csapak
6897aeb307 fix surviving update store
when a load of an update store was ongoing and stopUpdate
was called, the task could not be canceled, and the store
would remain indefinitely

this patch sets 'isStopped' of the store on stopUpdate
and checks it on the next update and stopping it then

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:15:14 +02:00
Dominik Csapak
597fd1b4e3 reload lxc resources also on activate
in a previous commit (26c5aba0) we changed the reload
from the activate event to afterrender, because
activate will not be fired as a lazyitem

but this only fires once, so we also reload on activate.
with the lazyitem/tabchange fix from a previous commit,
this has now the correct behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:09:53 +02:00
Dominik Csapak
464c721af6 fire activate event for lazyitems in tabpanels
when changing tabs which are lazyitems,
there will be no activate event for the content of the tab

so we fire it manually on tabchange (if the new card has the
lazyitems plugin activated) as we do it for the hide event

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:09:53 +02:00
Dominik Csapak
3335a948e9 correctly delete name of a qemu vm
we mistakenly sent
'name:'
instead of:
'delete:name'

in case of an empty name of qemu guest
which lead to an error message that it is
not a valid dns name

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:09:53 +02:00
Wolfgang Link
8c9e7b5ad3 Add some extra debug information to the report.
There were no useful information about block device.
2016-07-05 12:30:00 +02:00
Emmanuel Kasper
067d24db98 add ca-certificates as required depency
ca-certificates provides the necessary root ca certificates
to connect to the PVE enterprise repositories
The package was always installed since pve-manager 3.1-13 as an indirect
'Depends:'  via liblwp-protocol-https, but could have been missing in previous
versions of pve.

Adding this dependency directly makes it sures that it's available
in each PVE installs no matter what Debian packagers do.
With this package installed we no longer need to ship
our own server CA cert.
2016-07-05 09:31:47 +02:00
Wolfgang Bumiller
e002f24dc6 lxc/status: show disk usage on running containers 2016-07-04 14:13:50 +02:00
Dominik Csapak
ffe31eeacd fix #1030: calculate correct cpu usage of pools
we only added the % of the vms in a pool
which lead to wrong results
e.g. having a pool with 3 vms with 4 cores each and a
cpu usage of 50% each (2 cores at 100%)
lead to :

vm1	50%
vm2	50%
vm3	50%
pool	150%

instead we new calculate the percentage for the whole pool

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-01 11:10:37 +02:00
Dominik Csapak
5039e75e31 fix #757: show the bridge comment in the selector
this shows the comment of the bridge in the selector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:06:59 +02:00
Dominik Csapak
1de934eb8e add comment to network edit and view
this adds a new textinput field for the comment to the
network edit window and a new column for it in the
network view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:06:45 +02:00
Dominik Csapak
0aa52e14b8 add comments to network model
we already have a comments field for network entries
now we have it in the model

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:04:06 +02:00
Dominik Csapak
76dc2ad016 fix #1043: prevent ceph destroypool when in use
also introduces a force parameter to this call
if force is true, the call destroys the ceph pool
even when it is use

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 13:47:36 +02:00
Wolfgang Bumiller
f9078dd525 bump version to 2.4-16 2016-06-29 14:41:05 +02:00
Wolfgang Bumiller
3f682b1d6d use new repoman toolkit 2016-06-29 14:41:04 +02:00
Dominik Csapak
8cd6425724 remove unnecessary debug output
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Dominik Csapak
dadec6d02d fix background color of template badges
the template badges had the wrong background color
when selected or hovered, so the line would be
blue but the background of the icon would be white

now the background is the correct color

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Dominik Csapak
9f95072366 set focus on tree after selecting a node
this is useful when using the new search field,
or when double clicking in the search tab,
since it focuses the item in the tree and lets
the treepanel scroll to the item

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Dominik Csapak
fc349cb69a make content of configuration window a component
otherwise, the styling does not apply

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Wolfgang Bumiller
837c047dbb build-depends: add liblocale-po-perl 2016-06-29 14:32:08 +02:00