Commit Graph

2862 Commits

Author SHA1 Message Date
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
Emmanuel Kasper
0a3cf3d482 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
a3b8efb45c Add new renderer function for toggling enabled/disabled options 2017-01-24 08:53:39 +01:00
Emmanuel Kasper
8f8ec25d24 Remove technical terms from content to be translated 2017-01-23 11:51:05 +01:00
Dietmar Maurer
0f31ba296c bump version to 4.4-9 2017-01-19 09:23:16 +01:00
Dietmar Maurer
989f3c7ead use new PVE::Storage::check_volume_access() 2017-01-18 17:30:40 +01:00
Dietmar Maurer
8a9bf7771e pvestatd.pm: corretly use new RPCEnvironment
Call $rpcenv->active_workers()
2017-01-18 17:28:59 +01:00
Dietmar Maurer
c5bd68e84f pveproxy: do not expose /pve2/js/ (no longer required) 2017-01-18 12:59:21 +01:00
Emmanuel Kasper
7e3e04e6fd Remove redundant helper for login window
the information is already provided by the label, the helper does not add
meaningfull information here.
2017-01-18 10:23:06 +01:00
Emmanuel Kasper
2ce6111f53 Do not try to translate domain specific terms
No one is translating DHCP in his/her own language.
2017-01-18 10:20:27 +01:00
Emmanuel Kasper
ec99b1c367 Remove duplicate strings 2017-01-18 10:19:43 +01:00
Dietmar Maurer
5c5e751c74 remove reference to PVE.ConsoleWorkspace
We already removed that code (unused).
2017-01-17 08:04:45 +01:00
Dietmar Maurer
5ed88bcc5e bump version to 4.4-8 2017-01-16 18:43:06 +01:00
Dietmar Maurer
e9e284c26a PVE/HTTPServer: do not return cookie_name from auth_handler
This is no longer required.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
70473e51d4 HTTPServer.pm: rewrite rest_handler (simplify code)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
b84415d325 remove base_handler_class - directly use PVE::API2 instead
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
a2e669fe2c HTTPServer.pm: call rpcenv->init_request earlier.
Because we access file from /etc/pve/ in auth_handler.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
9d3f059fd9 HTTPServer.pm: call $rpcenv-init() when necessary.
This code was removed from the generic server, so we need
to add it here. cleanup follows ...

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
a9de2d443b pveproxy.pm: set title to 'Proxmox VE API'
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:34 +01:00
Dietmar Maurer
e4e84ee023 remove www/bootstrap completely (now in pve-http-server)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:33 +01:00
Dietmar Maurer
e469770953 pveproxy.pm: use PVE::APIServer::AnyEvent::add_dirs()
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:33 +01:00
Dietmar Maurer
b996e6c0ec use new libpve-http-server-perl package
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-16 11:54:33 +01:00