]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
8 years agoadd onlineHelp to qemu
Dominik Csapak [Tue, 13 Sep 2016 11:46:14 +0000 (13:46 +0200)]
add onlineHelp to qemu

and its options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd onlineHelp to lxc
Dominik Csapak [Tue, 13 Sep 2016 11:46:13 +0000 (13:46 +0200)]
add onlineHelp to lxc

and its options, and to network input panel
and mount point input panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd onlineHelp to nodes
Dominik Csapak [Tue, 13 Sep 2016 11:46:12 +0000 (13:46 +0200)]
add onlineHelp to nodes

and to its options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd onlineHelp links to Datacenter
Dominik Csapak [Tue, 13 Sep 2016 11:46:11 +0000 (13:46 +0200)]
add onlineHelp links to Datacenter

also add it to its options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd a helpbutton to the toolbar of the configpanel
Dominik Csapak [Tue, 13 Sep 2016 11:46:10 +0000 (13:46 +0200)]
add a helpbutton to the toolbar of the configpanel

this adds a contextual help button to the action
toolbar on the far right.

now the subclasses of pvePanelConfig have to have
a property 'onlineHelp', which is a relative link
to the relevant documentation

if no link is given, we output 'No Help available'.

For the folder view, we have a switch statement,
because these are dynamically created and simply
from type pvePanelConfig

if an option has the property onlineHelp, this link
will be set when selecting it, so that
you have a contextual help button for the options
(e.g. directly to the backup documentation on the 'Backup' entry)

if an option does not have this property, it defaults
to the pvePanelConfig property

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd global help button
Dominik Csapak [Tue, 13 Sep 2016 11:46:09 +0000 (13:46 +0200)]
add global help button

this adds a global help button to the top,
which links to the index of our included documentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agomake pveHelpButton more abstract
Dominik Csapak [Tue, 13 Sep 2016 11:46:08 +0000 (13:46 +0200)]
make pveHelpButton more abstract

this adds an option to set the helplink on the global event

also we now only set the link instead of the complete handler,
which is now static and gets the url from a property
(which we will set directly for other help buttons)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoupdate favicon, add homescreen icon
Dominik Csapak [Fri, 9 Sep 2016 11:22:21 +0000 (13:22 +0200)]
update favicon, add homescreen icon

this updates the favicon to 64px and the new logo
and adds a 128px image for apple/android homescreen

also we add the relevant html meta link tags
for apple/android homescreen icons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agouse new logo
Dominik Csapak [Thu, 8 Sep 2016 13:57:51 +0000 (15:57 +0200)]
use new logo

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agofix #1104: add missing /firewall in url
Dominik Csapak [Mon, 12 Sep 2016 12:35:58 +0000 (14:35 +0200)]
fix #1104: add missing /firewall in url

with the reorganizing of the tabs to
the treelist, we forgot to add /firewall to some
urls, making the url for source/destination invalid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd efidisk button to add menu
Dominik Csapak [Mon, 12 Sep 2016 10:02:38 +0000 (12:02 +0200)]
add efidisk button to add menu

this adds a new button "efi disk" to the
qemu hardware add menu

this is only enabled if the vm has ovmf enabled and
no active efidisk

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd efidisk to qemu hardwareview
Dominik Csapak [Mon, 12 Sep 2016 10:02:37 +0000 (12:02 +0200)]
add efidisk to qemu hardwareview

this shows an active efidisk above
unused disks, without an editor (because there are no options)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd new efidisk edit window
Dominik Csapak [Mon, 12 Sep 2016 10:02:36 +0000 (12:02 +0200)]
add new efidisk edit window

this will be used to add an efidisk,
mostly copied from hdedit, but stripped down,
because we do not use most of the functionality here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agouse renamed alias for xtype
Dominik Csapak [Mon, 12 Sep 2016 10:02:35 +0000 (12:02 +0200)]
use renamed alias for xtype

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agorename alias of some form fields, and remove brackets
Dominik Csapak [Mon, 12 Sep 2016 10:02:34 +0000 (12:02 +0200)]
rename alias of some form fields, and remove brackets

to be conform with the rest of the code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 4.2-20
Dietmar Maurer [Fri, 9 Sep 2016 08:40:48 +0000 (10:40 +0200)]
bump version to 4.2-20

8 years agostartall: remove timeout, wait forever
Dietmar Maurer [Fri, 9 Sep 2016 08:31:21 +0000 (10:31 +0200)]
startall: remove timeout, wait forever

8 years agobump version to 4.2-19
Dietmar Maurer [Fri, 9 Sep 2016 07:31:11 +0000 (09:31 +0200)]
bump version to 4.2-19

8 years agoAdd link to terms glossary when adding an ACL
Emmanuel Kasper [Thu, 8 Sep 2016 12:46:54 +0000 (14:46 +0200)]
Add link to terms glossary when adding an ACL

This is especially needed to know what is the synthax of the Path
input field

8 years agowhitespace cleanup
Dominik Csapak [Wed, 7 Sep 2016 09:11:06 +0000 (11:11 +0200)]
whitespace cleanup

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoremove unused code
Dominik Csapak [Wed, 7 Sep 2016 09:11:05 +0000 (11:11 +0200)]
remove unused code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agouse the Diskmanage subs for ceph instead
Dominik Csapak [Wed, 7 Sep 2016 09:11:04 +0000 (11:11 +0200)]
use the Diskmanage subs for ceph instead

the subs are now in PVE::Diskmanage, so use them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoremove ceph disk panel code
Dominik Csapak [Tue, 6 Sep 2016 14:59:43 +0000 (16:59 +0200)]
remove ceph disk panel code

because we do not need it anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agouse nodedisk panel and remove ceph disks from navigation
Dominik Csapak [Tue, 6 Sep 2016 14:59:42 +0000 (16:59 +0200)]
use nodedisk panel and remove ceph disks from navigation

this adds a "disks" entry in the node navigation,
and removes the "disks" entry under ceph

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agomove cephdisk selector and create osd into osd panel
Dominik Csapak [Tue, 6 Sep 2016 14:59:41 +0000 (16:59 +0200)]
move cephdisk selector and create osd into osd panel

this patch moves the create osd button into the osd panel
and puts the ceph diskselector into ceph/OSD.js

also remove the vdev parameter there, because on the osd panel
we cannot preselect a disk

this patch makes it possible to remove the ceph disk panel alltogether

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd DiskList panel
Dominik Csapak [Tue, 6 Sep 2016 14:59:40 +0000 (16:59 +0200)]
add DiskList panel

this patch adds a disk list panel which:
lists the disks with typical columns
(type, vendor, serial, smart, wearout, etc.)

and with a doubleclick you can show the smart attributes

and with a click on init disk you can initialize a disk
with a gpt table

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd disk api entry point
Dominik Csapak [Tue, 6 Sep 2016 14:59:39 +0000 (16:59 +0200)]
add disk api entry point

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agofix #1091: add backup config button to storage contentview
Dominik Csapak [Tue, 30 Aug 2016 12:18:46 +0000 (14:18 +0200)]
fix #1091: add backup config button to storage contentview

this adds a show config button to the storage contentview
so that you can show the backup configuration from there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agorefactor backupconfig window
Dominik Csapak [Tue, 30 Aug 2016 12:18:45 +0000 (14:18 +0200)]
refactor backupconfig window

refactor it in its own class, because we need it again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agofix #621: allow template download to glusterfs
Dominik Csapak [Fri, 2 Sep 2016 09:59:43 +0000 (11:59 +0200)]
fix #621: allow template download to glusterfs

removes the check for dir or nfs storage,
because a few lines below we check for
the content type vztmpl
which should only be allowed when we have a
location where we put templates, thus we should
be able to download them there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agofix #586: make notes edit window resizable
Dominik Csapak [Fri, 2 Sep 2016 08:55:11 +0000 (10:55 +0200)]
fix #586: make notes edit window resizable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd ceph icon
Dominik Csapak [Thu, 1 Sep 2016 09:19:11 +0000 (11:19 +0200)]
add ceph icon

use official ceph icon for the ceph tab
from http://ceph.com/logos/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agorefine node gui structure
Dominik Csapak [Thu, 1 Sep 2016 09:19:10 +0000 (11:19 +0200)]
refine node gui structure

this makes summary its own point again,
and moves network,dns,time and syslog under
services which now is "system", which makes the order
of the options the same as before, with one exception

shell (previous console) is now the third option

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agopartially rever qemu gui structure
Dominik Csapak [Thu, 1 Sep 2016 09:19:09 +0000 (11:19 +0200)]
partially rever qemu gui structure

this restores the structure of the qemu options
and moves the console to the second position

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agopartially revert lxc gui structure
Dominik Csapak [Thu, 1 Sep 2016 09:19:08 +0000 (11:19 +0200)]
partially revert lxc gui structure

this patch removes the "system" group
and reorders the options like it was before,
with one exception:

console now comes at second place after summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agojs lint fixes
Dominik Csapak [Mon, 22 Aug 2016 15:13:42 +0000 (17:13 +0200)]
js lint fixes

jslint needs FileReader as global
jslint want object.property instead of object['property']
jslint does not like trailing commas

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd Proxmox Virtual Environment 5.x Release Key
Dietmar Maurer [Mon, 29 Aug 2016 10:54:46 +0000 (12:54 +0200)]
add Proxmox Virtual Environment 5.x Release Key

In future, we want to use this key to sign our aplinfo.dat

8 years agoupdate default aplinfo.dat
Dietmar Maurer [Mon, 29 Aug 2016 08:35:16 +0000 (10:35 +0200)]
update default aplinfo.dat

8 years agoremove pve-repo-ca-certificates.crt - no longer required
Dietmar Maurer [Mon, 29 Aug 2016 08:23:13 +0000 (10:23 +0200)]
remove pve-repo-ca-certificates.crt - no longer required

8 years agoaplinfo: use explicit defined checks
Fabian Grünbichler [Wed, 24 Aug 2016 10:27:42 +0000 (12:27 +0200)]
aplinfo: use explicit defined checks

a checksum of '0' can never be correct, but this makes the code clearer

8 years agoaplinfo: use fh for both digests
Fabian Grünbichler [Wed, 24 Aug 2016 10:27:41 +0000 (12:27 +0200)]
aplinfo: use fh for both digests

for consistency, because Digest::MD5 cannot handle filenames directly..

8 years agodrop all hide calls
Dominik Csapak [Mon, 22 Aug 2016 15:13:41 +0000 (17:13 +0200)]
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>
8 years agoremove subconfigpanel related code
Dominik Csapak [Mon, 22 Aug 2016 15:13:40 +0000 (17:13 +0200)]
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>
8 years agomove crushmap into ceph config
Dominik Csapak [Mon, 22 Aug 2016 15:13:39 +0000 (17:13 +0200)]
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>
8 years agoreorganize storage and pools
Dominik Csapak [Mon, 22 Aug 2016 15:13:38 +0000 (17:13 +0200)]
reorganize storage and pools

add icons to panels

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoreorganize qemu items
Dominik Csapak [Mon, 22 Aug 2016 15:13:37 +0000 (17:13 +0200)]
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>
8 years agoreorganize lxc items
Dominik Csapak [Mon, 22 Aug 2016 15:13:36 +0000 (17:13 +0200)]
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>
8 years agoreorganize node items
Dominik Csapak [Mon, 22 Aug 2016 15:13:35 +0000 (17:13 +0200)]
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>
8 years agoreorganize datacenter items
Dominik Csapak [Mon, 22 Aug 2016 15:13:34 +0000 (17:13 +0200)]
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>
8 years agouse a treelist instead of tabs in configpanel
Dominik Csapak [Mon, 22 Aug 2016 15:13:33 +0000 (17:13 +0200)]
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>
8 years agoupdate descriptions, error messages
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:24 +0000 (16:27 +0200)]
update descriptions, error messages

8 years agoaplinfo: add generated trustedkeys.gpg
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:23 +0000 (16:27 +0200)]
aplinfo: add generated trustedkeys.gpg

8 years agoaplinfo: use warnings
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:22 +0000 (16:27 +0200)]
aplinfo: use warnings

8 years agoaplinfo: update format spec with SHA512
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:21 +0000 (16:27 +0200)]
aplinfo: update format spec with SHA512

8 years agoaplinfo: improve checksum handling
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:20 +0000 (16:27 +0200)]
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.

8 years agoaplinfo: remove leftover cruft
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:19 +0000 (16:27 +0200)]
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.

8 years agoaplinfo: improve signature verification
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:18 +0000 (16:27 +0200)]
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.

8 years agoaplinfo: replace system() with run_command/rename
Fabian Grünbichler [Tue, 23 Aug 2016 14:27:17 +0000 (16:27 +0200)]
aplinfo: replace system() with run_command/rename

8 years agorefer to manual in lxc wizard
Dominik Csapak [Fri, 12 Aug 2016 12:57:27 +0000 (14:57 +0200)]
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>
8 years agobump version to 4.2-18
Wolfgang Bumiller [Fri, 19 Aug 2016 12:57:35 +0000 (14:57 +0200)]
bump version to 4.2-18

8 years agolxc: wizard: ssh key
Wolfgang Bumiller [Wed, 10 Aug 2016 10:13:19 +0000 (12:13 +0200)]
lxc: wizard: ssh key

8 years agovzdump: set task mode early to fix a warning
Wolfgang Bumiller [Thu, 18 Aug 2016 07:35:00 +0000 (09:35 +0200)]
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.

8 years agoClear sensitive content when logging out fixes #1060
Emmanuel Kasper [Thu, 18 Aug 2016 12:33:41 +0000 (14:33 +0200)]
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)

8 years agodelete old lxc/qemu statusview classes
Dominik Csapak [Fri, 19 Aug 2016 08:47:53 +0000 (10:47 +0200)]
delete old lxc/qemu statusview classes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agomake lxc/qemu use new statusview
Dominik Csapak [Fri, 19 Aug 2016 08:47:52 +0000 (10:47 +0200)]
make lxc/qemu use new statusview

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agomake node StatusView use new version
Dominik Csapak [Fri, 19 Aug 2016 08:47:51 +0000 (10:47 +0200)]
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>
8 years agoinclude new statusview classes in makefile
Dominik Csapak [Fri, 19 Aug 2016 08:47:50 +0000 (10:47 +0200)]
include new statusview classes in makefile

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agoadd GuestStatusView and TemplateStatusView
Dominik Csapak [Fri, 19 Aug 2016 08:47:49 +0000 (10:47 +0200)]
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>
8 years agoadd new StatusView component
Dominik Csapak [Fri, 19 Aug 2016 08:47:48 +0000 (10:47 +0200)]
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>
8 years agoadd new infoWidget component
Dominik Csapak [Fri, 19 Aug 2016 08:47:47 +0000 (10:47 +0200)]
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>
8 years agoDo not use a hardcoded Certificate Authority for https repositories
Emmanuel Kasper [Wed, 13 Jul 2016 10:17:03 +0000 (12:17 +0200)]
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)

8 years agoonly use exact match in pveRealmSelector
Dominik Csapak [Wed, 20 Jul 2016 13:33:37 +0000 (15:33 +0200)]
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>
8 years agomake the lxc wizard select the current node by default
Dominik Csapak [Thu, 4 Aug 2016 09:33:47 +0000 (11:33 +0200)]
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>
8 years agoRemove obsolete make variable for ExtJS4
Emmanuel Kasper [Thu, 4 Aug 2016 07:46:10 +0000 (09:46 +0200)]
Remove obsolete make variable for ExtJS4

8 years agoadd novnc-pve to pveversion -v
Dominik Csapak [Thu, 11 Aug 2016 08:15:01 +0000 (10:15 +0200)]
add novnc-pve to pveversion -v

it was missing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agodon't save password and double lines in pvesh history
Dominik Csapak [Wed, 3 Aug 2016 09:09:45 +0000 (11:09 +0200)]
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>
8 years agoavoid IE compatibility mode
Dietmar Maurer [Wed, 3 Aug 2016 08:59:45 +0000 (10:59 +0200)]
avoid IE compatibility mode

8 years agofix influxdb field assignment and allow non integer field
Dominik Csapak [Tue, 2 Aug 2016 10:40:18 +0000 (12:40 +0200)]
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>
8 years agofix lint error
Dominik Csapak [Tue, 2 Aug 2016 09:12:59 +0000 (11:12 +0200)]
fix lint error

no traling commas

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agocloses #195 : hide disallowed commands in tree
Emmanuel Kasper [Mon, 1 Aug 2016 14:24:36 +0000 (16:24 +0200)]
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.

8 years agoAdd mac prefix to the datacenter options
Wolfgang Bumiller [Fri, 15 Jul 2016 08:34:37 +0000 (10:34 +0200)]
Add mac prefix to the datacenter options

8 years agoprevent KRDB and Monitor(s) being localized
Emmanuel Kasper [Tue, 12 Jul 2016 10:14:01 +0000 (12:14 +0200)]
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

8 years agoopen vm console on doubleclick in tree
Dominik Csapak [Thu, 21 Jul 2016 09:45:12 +0000 (11:45 +0200)]
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>
8 years agoSet VirtIO drivers as default when using the Qemu Wizard and the OS Type is Linux
Emmanuel Kasper [Thu, 21 Jul 2016 09:10:46 +0000 (11:10 +0200)]
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.

8 years agoUSe PVE.qemu.OSDefaults statics to get defaults for NIC and Storage Controller
Emmanuel Kasper [Thu, 21 Jul 2016 09:10:45 +0000 (11:10 +0200)]
USe PVE.qemu.OSDefaults statics to get defaults for NIC and Storage Controller

8 years agoAdd PVE.qemu.OSDefaults class to hold OS-dependant wizard defaults
Emmanuel Kasper [Thu, 21 Jul 2016 09:10:44 +0000 (11:10 +0200)]
Add PVE.qemu.OSDefaults class to hold OS-dependant wizard defaults

8 years agoRename Wizard Component aliases using camelCase
Emmanuel Kasper [Thu, 21 Jul 2016 09:10:43 +0000 (11:10 +0200)]
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.

8 years agochange default proxy test to noneText
Dominik Csapak [Mon, 18 Jul 2016 07:37:18 +0000 (09:37 +0200)]
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>
8 years agoprevent infinite loop in edit window
Dominik Csapak [Fri, 15 Jul 2016 13:54:07 +0000 (15:54 +0200)]
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>
8 years agoadd HostList validator and check monhosts with it
Dominik Csapak [Tue, 12 Jul 2016 12:41:28 +0000 (14:41 +0200)]
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>
8 years agorefactor DnsName regex
Dominik Csapak [Tue, 12 Jul 2016 12:41:27 +0000 (14:41 +0200)]
refactor DnsName regex

we will need this again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agogive comment in bridgeselector more space
Dominik Csapak [Mon, 11 Jul 2016 12:17:44 +0000 (14:17 +0200)]
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>
8 years agobump version to 4.2-17
Wolfgang Bumiller [Mon, 11 Jul 2016 11:11:11 +0000 (13:11 +0200)]
bump version to 4.2-17

8 years agovzdump: add newline in mail text
Fabian Grünbichler [Thu, 7 Jul 2016 09:00:53 +0000 (11:00 +0200)]
vzdump: add newline in mail text

for consistency with html version and better readability

8 years agoFix #1048: vzdump: include job-* hook logs in email
Wolfgang Bumiller [Thu, 7 Jul 2016 08:22:25 +0000 (10:22 +0200)]
Fix #1048: vzdump: include job-* hook logs in email

8 years agovzdump: safer cp call
Wolfgang Bumiller [Thu, 7 Jul 2016 08:22:24 +0000 (10:22 +0200)]
vzdump: safer cp call

8 years agofix undefined value warning in resources api call
Wolfgang Bumiller [Tue, 5 Jul 2016 12:45:35 +0000 (14:45 +0200)]
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.

8 years agofix surviving update store
Dominik Csapak [Mon, 4 Jul 2016 11:16:10 +0000 (13:16 +0200)]
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>
8 years agoreload lxc resources also on activate
Dominik Csapak [Tue, 5 Jul 2016 15:06:57 +0000 (17:06 +0200)]
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>
8 years agofire activate event for lazyitems in tabpanels
Dominik Csapak [Tue, 5 Jul 2016 15:06:56 +0000 (17:06 +0200)]
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>