Commit Graph

2833 Commits

Author SHA1 Message Date
Emmanuel Kasper
20fdfefad4 Do not internationalize 'Pools' when used in Ceph Context
This is a Ceph domain term and should not be translated like OSD, ...
Galician had "Virtual Groups" for Pools, which does not apply for
Ceph Context.
Also most languages were using 'Pools' anyway.
2017-06-02 10:10:23 +02:00
Dominik Csapak
5cad62a636 remove "read-only" option from container root disk
with root-only enabled, you cannot start the conainer anymore,
so we remove it there entirely

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-02 09:34:58 +02:00
Dominik Csapak
f360ab33e3 fix #1317: check wizard form also on validitychange
with the commit
    40342aa6c4
we introduced a validator on the guestidselector, but did not
notice that the wizard checks the validity on the field change event,
but the selector gets valid/invalid in an api callback(so a little later)

with this patch, we now validate the field correctly with validate()
and also listen on the validitychange event to catch it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit c5dc0be54ca75a11af86e7bbf1590407157c11b1)
2017-03-27 08:34:14 +02:00
Dominik Csapak
a6a6dedeef fix #1307: dont use language dependent separator in gui
by default, extjs submits the language dependent decimal separator,
e.g. ',' for german and '.' for english

but we always want '.'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 5c660b6d1302a5fbb3dcf477cf8b5adc9f798530)
2017-03-21 13:58:23 +01:00
Wolfgang Bumiller
1d9bdf9dc6 update make upload target 2017-03-13 14:22:49 +01:00
Wolfgang Bumiller
32e103770b bump version to 4.4-13 2017-03-13 14:20:14 +01:00
Fabian Grünbichler
2bde88fb3f fix ceph.service for Ceph Jewel >= 10.2.6
having our ceph.service pulled in by ceph.target does not
work anymore, because "systemctl start ceph.target" hangs
forever on ceph-common upgrades. multi-user.target seems to
work as well, and we are ordered after pve-cluster anyway.

only replace the old ceph.service if it is an exact match.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-03-13 14:20:14 +01:00
Wolfgang Bumiller
ea82d08cfa buildsys: depend on lsb-base 2017-03-13 14:18:21 +01:00
Wolfgang Bumiller
c27e8e4905 buildsys: make job safety 2017-03-13 14:18:21 +01:00
Wolfgang Bumiller
16a264ce0c remove space in service file 2017-03-13 14:18:21 +01:00
Dominik Csapak
0c8d740228 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
40342aa6c4 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
7c1150766d 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
0272ef3caa 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
7471035d71 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
df643fc39f 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
8b8a4583ba 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
96d654dc13 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
184825e190 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
0074809382 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
245e567e62 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
e890b92d67 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
b0d4b407d8 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
f536f691ab ZFSEdit.js: correctly set 'nowritecache' on zfs plugin 2017-03-08 06:39:26 +01:00
Dominik Csapak
a182235ab2 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
7553d76065 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
f5c1dde5f4 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
b72cdbb752 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
b9628aa501 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
d5e771ce51 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
67cb91e4d7 Indentation fix 2017-02-28 11:33:51 +01:00
Thomas Lamprecht
09f19204be 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
f4f9e66296 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
c8fc7a4eee 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
4e2b6cc8ee 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
0057ea5c88 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
3a2402368f 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
245859bd83 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
4092576b1b 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
3f6336553c 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
b0f820ab9f PVE/API2/Tasks.pm: corretly return true after loading 2017-01-31 08:13:17 +01:00
Fabian Grünbichler
7965e09fbc bump version to 4.4-12 2017-01-27 10:56:21 +01:00
Wolfgang Bumiller
f70fc9ace9 REST/RPCEnvironment's check_worker is a method now 2017-01-27 10:39:02 +01:00
Wolfgang Bumiller
804e97f9ec spiceproxy: import PVE::SafeSyslog 2017-01-26 12:59:57 +01:00
Dietmar Maurer
a7157188f2 bump version to 4.4-11 2017-01-26 09:23:19 +01:00
Dietmar Maurer
9556b395b0 depend on libjs-extjs 2017-01-25 18:29:17 +01:00
Dietmar Maurer
87d50de749 delete extjs source files 2017-01-25 18:23:07 +01:00
Fabian Grünbichler
9a91a41cea bump version to 4.4-10 2017-01-25 09:38:53 +01:00
Fabian Grünbichler
8dccd400fd move VZDump base Plugin
moved to pve-common-guest
2017-01-25 09:35:39 +01:00
Dominik Csapak
e49da95bfe 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