2877 Commits

Author SHA1 Message Date
Wolfgang Bumiller
8d676c8af5 buildsys: make job safety 2017-03-13 14:18:21 +01:00
Wolfgang Bumiller
17dc8f77f2 remove space in service file 2017-03-13 14:18:21 +01:00
Dominik Csapak
b29450929b fix diffstore issue with clusterlog
extjs cannot "convert" and id from other fields, so the ids in the
diffstore and the realstore are different and we re-add every element on
every update

to mitigate this, we generate the id (which is "uid:hostname") in the
backend, and simply use it in the frontend

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-10 11:09:46 +01:00
Dominik Csapak
f4dffc882a use validator for GuestIDSelector and optimize labels
instead of using markInvalid, use a validator, which also marks the
field dirty and marks the form correctly invalid.

also optimize the label/error message assignments

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:55:31 +01:00
Dominik Csapak
09101cdd74 show nodeselector errors only if a node is selected
otherwise we get the error:

'Node seems to be offline'

if we do not have a node selected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:53:58 +01:00
Dominik Csapak
bde1efbf66 check earlier if the logview is destroyed
because extjs 6.2 handles destroying of components differently (namely
asynchronous), we have to check earlier if the view is destroyed, else
we get a 'cannot access ~ of undefined' error

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:44:43 +01:00
Dominik Csapak
f7cd934701 make the ha node priority field explicitly not a form field
in extjs 6.2 form fields in widgetcolumns get parsed in a form
which is not what we want here, because we have a hidden field, which
gets generated on a change

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:44:23 +01:00
Dominik Csapak
d19ffc1bb0 remove unneeded applyEmptyText
this was not needed and does not work with extjs 6.2

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:43:13 +01:00
Dominik Csapak
cabd2d51b8 fix #306: add email address field to backup now window
to send the backup log when clicking the backup now button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:39:53 +01:00
Dominik Csapak
534b84fac6 remove unneeded *Index.pm files
they are not used anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:34:48 +01:00
Dominik Csapak
33fe20bc81 use Template::Toolkit instead of [ExtJs|Touch|NoVnc]Index.pm
this makes it easier to change the html if needed and seperates
it from the perl code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:34:30 +01:00
Dominik Csapak
9c1c2c2ea4 add the index.html.tpl files for the default ui and touch
they are mostly copied from ExtJSIndex.pm and TouchIndex.pm, and
they are prepared with the Template::Toolkit syntax

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:34:07 +01:00
Dominik Csapak
f5dd78fa09 specify basedirs instead of hardcoding them several times
using a hash with the directories makes it easier to reuse them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:33:19 +01:00
Dominik Csapak
0ee2503015 use login instead of bash
since bash does not play well with utf8 encoded input,
eg. pressing ALTGR + M on an english intl keyboard layout int novnc
does not enter the mu symbol but makes bash think you pressed alt+5,
we should use login without authorization when logging in as root

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:28:27 +01:00
Dominik Csapak
ef4c3b7585 keep locale for vncshell and spiceshell
use the new keeplocale parameter from run_command and do not delete the
LANG and LANGUAGE variable for the vncshell

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:26:44 +01:00
Dietmar Maurer
3471c612f3 ZFSEdit.js: correctly set 'nowritecache' on zfs plugin 2017-03-08 06:39:26 +01:00
Dominik Csapak
f130ed30e3 fix #1299: sort pools in poolselector by default
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-03 12:23:31 +01:00
Dominik Csapak
be72273a79 add css fix for chrome >=56
with chrome/chromium version 56, they changed the way how they calculate
height of text in input fields (now it is correct according to the
standard) but extjs up to 6.2.1 has a fix for this in css

this patch reverses the fix in extjs and can be reverted when they
remove the fix upstream

the bug	(EXTJS-23628) and the fix are described here:
https://www.sencha.com/forum/showthread.php?335045

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-03 12:22:38 +01:00
Thomas Lamprecht
3ed893650e migrateall: use get_filtered_vmlist
instead of using get_start_stop_list in a rather hacky way use the
new get_filtered_vmlist method and adapt the loop, as now only one
level is required.

most changes  are just an indent shift left as we lost an unnecessary
loop level

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-03-02 10:45:14 +01:00
Thomas Lamprecht
67b6592ffe refactor get_start_stop_list
we used get_start_stop_list for assembling a list of VMIDs for
stopall, startall and migrateall.

While get_start_stop_list did already some filtering we did some
more in the specific startall and stopall calls.
Add a new private helper which does all the filtering and just
assemble the startup order in the get_start_stop_list method.

Move the template and ha managed filtering in the new
get_filtered_vmlist method, this allows us to remove the filtering
from the API calls them self and we do not load the vms config twice
(it was cached, but nonetheless unnecessary)

get_filtered_vmlist is also intended to be used by migrateall in a
next patch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-03-02 10:43:37 +01:00
Emmanuel Kasper
84ca437eda Do not translate IT terms which should be used 'as is' in every language
for 'Initialize GPT' we use the alternate 'Initialize Disk with GPT' string
which was already existing
2017-03-02 10:39:41 +01:00
Emmanuel Kasper
9af71828d4 Rename 'create' to 'isCreate' in pveWindowEdit and subclasses
This fixes around 20 jslint type confusion warnings.
Also reduce the scope and document jslint warnings along the way.
No functional changes.
2017-03-02 10:36:35 +01:00
Emmanuel Kasper
88ab01e8f7 Indentation fix 2017-02-28 11:33:51 +01:00
Thomas Lamprecht
6a5e3abccf InfluxDB plugins: send nodename when updating CT/VM status
This allows filtering by node in InfluxDB queries, so the statistics
of all virtual guests on a specific nodes can be queried.

While for InfluxDB this is only a tag which does changes where the
data is stored, Graphite - our other status plugin - has no such
mechanics available. If we would add it to the object hierarchy,
e.g.: "qemu.$vmid.$nodename" a migration of a VM would result in two
different datasets.
So avoid breaking setups and omit it for Graphite for now.

Suggested-by: Daniel1108 <danielgallegosanchez@gmail.com>
CC: Daniel1108 <danielgallegosanchez@gmail.com>

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-02-28 11:28:10 +01:00
Emmanuel Kasper
44219130f1 Make explicit the meaning of an empty storage field
By default when no target storage is selected in the clone panel, the clone
will use the same storage*s* as the source.

This was not obvious to guess that from the panel.
2017-02-28 11:20:30 +01:00
Emmanuel Kasper
becc1eacc8 Add a clone button in the VM toolbar
Up to now the Migrate function had a first class button in the toolbar,
but the Clone function didn't.
With this button the toolbar still fit correctly in a smaller
1280 pixel wide display.
2017-02-22 13:54:36 +01:00
Emmanuel Kasper
4a2619b79c Move the snapshot API test to a static function
This will allow code reuse in a following patch.

No functional change.
2017-02-22 13:54:36 +01:00
Emmanuel Kasper
a2fe84326a Fix handling of failed API call verifyFeature()
This call can for instance fails when a source VM has references
to non existing storages.
2017-02-22 13:54:35 +01:00
Thomas Lamprecht
6b66d4a237 pveperf: remove outated POD replaced by pve-docs
Remove the POD content and the overwriting makefile rule
'pveperf.1.pod' so that the rule from pve-doc-generator.mk matches

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-02-15 11:10:27 +01:00
Emmanuel Kasper
a72fb04e28 Use ip from iproute2 package instead of net-tools
iproute2 is a direct depency from pve-qemu-kvm and should
be always available

use -statistics so we get the RX/TX traffic sum like ifconfig
use -details to get extra info like current vlan_protocol
2017-02-08 10:00:55 +01:00
Emmanuel Kasper
aaa89d0b88 Fix #1266: use a renderer when displaying Unix timestamps.
The timestamp is displayed read only in a large window, and not sortable,
hence we use the human readable renderer.
2017-02-01 10:09:58 +01:00
Emmanuel Kasper
2c71601b9b Add a new renderer for displaying dates in a human readable way
render_timestamp returns a Date as
"2017-01-31 16:17:33"
which is good for computers and column sorting but unfit
for human consumption

the new renderer added by this patch renders a Date as
"Tuesday 31 January 2017 16:18:08"

Day-month-year order is the most used ordering
in the world and also commonly used in the USA for
official documents.
source:
https://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_States
https://en.wikipedia.org/wiki/Date_format_by_country
2017-02-01 10:09:38 +01:00
Dietmar Maurer
a57d51eda7 PVE/API2/Tasks.pm: corretly return true after loading 2017-01-31 08:13:17 +01:00
Fabian Grünbichler
e71b7a7433 bump version to 4.4-12 2017-01-27 10:56:21 +01:00
Wolfgang Bumiller
7f6acea521 REST/RPCEnvironment's check_worker is a method now 2017-01-27 10:39:02 +01:00
Wolfgang Bumiller
9df2fb8410 spiceproxy: import PVE::SafeSyslog 2017-01-26 12:59:57 +01:00
Dietmar Maurer
6d3cd6782a bump version to 4.4-11 2017-01-26 09:23:19 +01:00
Dietmar Maurer
dd8a24be86 depend on libjs-extjs 2017-01-25 18:29:17 +01:00
Dietmar Maurer
305d30101a delete extjs source files 2017-01-25 18:23:07 +01:00
Fabian Grünbichler
4f7b96bcdd bump version to 4.4-10 2017-01-25 09:38:53 +01:00
Fabian Grünbichler
47d1bbf224 move VZDump base Plugin
moved to pve-common-guest
2017-01-25 09:35:39 +01:00
Dominik Csapak
b0853f8e37 do no translate ha states
because they have a special meaning, do not translate them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-24 09:00:09 +01:00
Emmanuel Kasper
3a0dcbb9d9 Use the enabled/disabled toggler to render grid options
Allows getting rid of multiple "Enable foobar" gettext strings in
LXC and Firewall option panels.
2017-01-24 08:54:58 +01:00
Emmanuel Kasper
be677c2e3c Add new renderer function for toggling enabled/disabled options 2017-01-24 08:53:39 +01:00
Emmanuel Kasper
a99be93b9d Remove technical terms from content to be translated 2017-01-23 11:51:05 +01:00
Dietmar Maurer
8935d2cb5c bump version to 4.4-9 2017-01-19 09:23:16 +01:00
Dietmar Maurer
484d1baa1e use new PVE::Storage::check_volume_access() 2017-01-18 17:30:40 +01:00
Dietmar Maurer
a5c040d3a3 pvestatd.pm: corretly use new RPCEnvironment
Call $rpcenv->active_workers()
2017-01-18 17:28:59 +01:00
Dietmar Maurer
bf3875e38e pveproxy: do not expose /pve2/js/ (no longer required) 2017-01-18 12:59:21 +01:00
Dietmar Maurer
ad96e61729 update .po file 2017-01-18 10:23:38 +01:00