]> git.proxmox.com Git - pve-manager-legacy.git/log
pve-manager-legacy.git
7 years agouse login instead of bash
Dominik Csapak [Tue, 28 Feb 2017 11:06:45 +0000 (12:06 +0100)]
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>
7 years agokeep locale for vncshell and spiceshell
Dominik Csapak [Tue, 28 Feb 2017 11:22:56 +0000 (12:22 +0100)]
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>
7 years agoZFSEdit.js: correctly set 'nowritecache' on zfs plugin
Dietmar Maurer [Wed, 8 Mar 2017 05:39:26 +0000 (06:39 +0100)]
ZFSEdit.js: correctly set 'nowritecache' on zfs plugin

7 years agofix #1299: sort pools in poolselector by default
Dominik Csapak [Fri, 3 Mar 2017 11:20:32 +0000 (12:20 +0100)]
fix #1299: sort pools in poolselector by default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd css fix for chrome >=56
Dominik Csapak [Fri, 3 Mar 2017 09:17:25 +0000 (10:17 +0100)]
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>
7 years agomigrateall: use get_filtered_vmlist
Thomas Lamprecht [Fri, 24 Feb 2017 09:47:03 +0000 (10:47 +0100)]
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>
7 years agorefactor get_start_stop_list
Thomas Lamprecht [Fri, 24 Feb 2017 09:47:02 +0000 (10:47 +0100)]
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>
7 years agoDo not translate IT terms which should be used 'as is' in every language
Emmanuel Kasper [Wed, 1 Mar 2017 10:34:07 +0000 (11:34 +0100)]
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

7 years agoRename 'create' to 'isCreate' in pveWindowEdit and subclasses
Emmanuel Kasper [Tue, 28 Feb 2017 13:26:49 +0000 (14:26 +0100)]
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.

7 years agoIndentation fix
Emmanuel Kasper [Wed, 8 Feb 2017 14:13:19 +0000 (15:13 +0100)]
Indentation fix

7 years agoInfluxDB plugins: send nodename when updating CT/VM status
Thomas Lamprecht [Thu, 23 Feb 2017 08:32:30 +0000 (09:32 +0100)]
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>
7 years agoMake explicit the meaning of an empty storage field
Emmanuel Kasper [Wed, 8 Feb 2017 14:05:09 +0000 (15:05 +0100)]
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.

7 years agoAdd a clone button in the VM toolbar
Emmanuel Kasper [Mon, 6 Feb 2017 18:03:27 +0000 (19:03 +0100)]
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.

7 years agoMove the snapshot API test to a static function
Emmanuel Kasper [Mon, 6 Feb 2017 18:03:26 +0000 (19:03 +0100)]
Move the snapshot API test to a static function

This will allow code reuse in a following patch.

No functional change.

7 years agoFix handling of failed API call verifyFeature()
Emmanuel Kasper [Mon, 6 Feb 2017 18:03:25 +0000 (19:03 +0100)]
Fix handling of failed API call verifyFeature()

This call can for instance fails when a source VM has references
to non existing storages.

7 years agopveperf: remove outated POD replaced by pve-docs
Thomas Lamprecht [Fri, 10 Feb 2017 19:53:55 +0000 (20:53 +0100)]
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>
7 years agoUse ip from iproute2 package instead of net-tools
Emmanuel Kasper [Mon, 6 Feb 2017 14:37:23 +0000 (15:37 +0100)]
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

7 years agoFix #1266: use a renderer when displaying Unix timestamps.
Emmanuel Kasper [Tue, 31 Jan 2017 15:48:50 +0000 (16:48 +0100)]
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.

7 years agoAdd a new renderer for displaying dates in a human readable way
Emmanuel Kasper [Tue, 31 Jan 2017 15:48:49 +0000 (16:48 +0100)]
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

7 years agoPVE/API2/Tasks.pm: corretly return true after loading
Dietmar Maurer [Tue, 31 Jan 2017 07:13:17 +0000 (08:13 +0100)]
PVE/API2/Tasks.pm: corretly return true after loading

7 years agobump version to 4.4-12
Fabian Grünbichler [Fri, 27 Jan 2017 09:56:21 +0000 (10:56 +0100)]
bump version to 4.4-12

7 years agoREST/RPCEnvironment's check_worker is a method now
Wolfgang Bumiller [Thu, 26 Jan 2017 10:13:21 +0000 (11:13 +0100)]
REST/RPCEnvironment's check_worker is a method now

7 years agospiceproxy: import PVE::SafeSyslog
Wolfgang Bumiller [Thu, 26 Jan 2017 11:59:31 +0000 (12:59 +0100)]
spiceproxy: import PVE::SafeSyslog

7 years agobump version to 4.4-11
Dietmar Maurer [Thu, 26 Jan 2017 08:23:19 +0000 (09:23 +0100)]
bump version to 4.4-11

7 years agodepend on libjs-extjs
Dietmar Maurer [Wed, 25 Jan 2017 17:24:51 +0000 (18:24 +0100)]
depend on libjs-extjs

7 years agodelete extjs source files
Dietmar Maurer [Wed, 25 Jan 2017 17:23:07 +0000 (18:23 +0100)]
delete extjs source files

7 years agobump version to 4.4-10
Fabian Grünbichler [Wed, 25 Jan 2017 08:38:49 +0000 (09:38 +0100)]
bump version to 4.4-10

7 years agomove VZDump base Plugin
Fabian Grünbichler [Wed, 25 Jan 2017 08:35:35 +0000 (09:35 +0100)]
move VZDump base Plugin

moved to pve-common-guest

7 years agodo no translate ha states
Dominik Csapak [Mon, 23 Jan 2017 13:32:25 +0000 (14:32 +0100)]
do no translate ha states

because they have a special meaning, do not translate them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoUse the enabled/disabled toggler to render grid options
Emmanuel Kasper [Mon, 23 Jan 2017 14:24:33 +0000 (15:24 +0100)]
Use the enabled/disabled toggler to render grid options

Allows getting rid of multiple "Enable foobar" gettext strings in
LXC and Firewall option panels.

7 years agoAdd new renderer function for toggling enabled/disabled options
Emmanuel Kasper [Mon, 23 Jan 2017 14:24:32 +0000 (15:24 +0100)]
Add new renderer function for toggling enabled/disabled options

7 years agoRemove technical terms from content to be translated
Emmanuel Kasper [Wed, 18 Jan 2017 16:03:32 +0000 (17:03 +0100)]
Remove technical terms from content to be translated

7 years agobump version to 4.4-9
Dietmar Maurer [Thu, 19 Jan 2017 08:23:16 +0000 (09:23 +0100)]
bump version to 4.4-9

7 years agouse new PVE::Storage::check_volume_access()
Dietmar Maurer [Wed, 18 Jan 2017 16:30:40 +0000 (17:30 +0100)]
use new PVE::Storage::check_volume_access()

7 years agopvestatd.pm: corretly use new RPCEnvironment
Dietmar Maurer [Wed, 18 Jan 2017 16:28:59 +0000 (17:28 +0100)]
pvestatd.pm: corretly use new RPCEnvironment

Call $rpcenv->active_workers()

7 years agopveproxy: do not expose /pve2/js/ (no longer required)
Dietmar Maurer [Wed, 18 Jan 2017 11:59:21 +0000 (12:59 +0100)]
pveproxy: do not expose /pve2/js/ (no longer required)

7 years agoupdate .po file
Dietmar Maurer [Wed, 18 Jan 2017 09:23:38 +0000 (10:23 +0100)]
update .po file

7 years agoRemove redundant helper for login window
Emmanuel Kasper [Wed, 18 Jan 2017 08:46:05 +0000 (09:46 +0100)]
Remove redundant helper for login window

the information is already provided by the label, the helper does not add
meaningfull information here.

7 years agoDo not try to translate domain specific terms
Emmanuel Kasper [Wed, 18 Jan 2017 08:46:04 +0000 (09:46 +0100)]
Do not try to translate domain specific terms

No one is translating DHCP in his/her own language.

7 years agoRemove duplicate strings
Emmanuel Kasper [Wed, 18 Jan 2017 08:46:03 +0000 (09:46 +0100)]
Remove duplicate strings

7 years agoremove reference to PVE.ConsoleWorkspace
Dietmar Maurer [Tue, 17 Jan 2017 07:04:45 +0000 (08:04 +0100)]
remove reference to PVE.ConsoleWorkspace

We already removed that code (unused).

7 years agobump version to 4.4-8
Dietmar Maurer [Mon, 16 Jan 2017 17:43:06 +0000 (18:43 +0100)]
bump version to 4.4-8

7 years agoPVE/HTTPServer: do not return cookie_name from auth_handler
Dietmar Maurer [Mon, 16 Jan 2017 09:59:39 +0000 (10:59 +0100)]
PVE/HTTPServer: do not return cookie_name from auth_handler

This is no longer required.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: rewrite rest_handler (simplify code)
Dietmar Maurer [Mon, 16 Jan 2017 09:59:38 +0000 (10:59 +0100)]
HTTPServer.pm: rewrite rest_handler (simplify code)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoremove base_handler_class - directly use PVE::API2 instead
Dietmar Maurer [Mon, 16 Jan 2017 09:59:37 +0000 (10:59 +0100)]
remove base_handler_class - directly use PVE::API2 instead

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: call rpcenv->init_request earlier.
Dietmar Maurer [Mon, 16 Jan 2017 09:59:36 +0000 (10:59 +0100)]
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>
7 years agoHTTPServer.pm: call $rpcenv-init() when necessary.
Dietmar Maurer [Mon, 16 Jan 2017 09:59:35 +0000 (10:59 +0100)]
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>
7 years agopveproxy.pm: set title to 'Proxmox VE API'
Dietmar Maurer [Mon, 16 Jan 2017 09:59:34 +0000 (10:59 +0100)]
pveproxy.pm: set title to 'Proxmox VE API'

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoremove www/bootstrap completely (now in pve-http-server)
Dietmar Maurer [Mon, 16 Jan 2017 09:59:33 +0000 (10:59 +0100)]
remove www/bootstrap completely (now in pve-http-server)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agopveproxy.pm: use PVE::APIServer::AnyEvent::add_dirs()
Dietmar Maurer [Mon, 16 Jan 2017 09:59:32 +0000 (10:59 +0100)]
pveproxy.pm: use PVE::APIServer::AnyEvent::add_dirs()

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agouse new libpve-http-server-perl package
Dietmar Maurer [Mon, 16 Jan 2017 09:59:31 +0000 (10:59 +0100)]
use new libpve-http-server-perl package

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agobump version to 4.4-7
Fabian Grünbichler [Fri, 13 Jan 2017 10:01:33 +0000 (11:01 +0100)]
bump version to 4.4-7

7 years agofix CSRF token generation
Fabian Grünbichler [Fri, 13 Jan 2017 09:52:27 +0000 (10:52 +0100)]
fix CSRF token generation

this broke with the recent refactoring

7 years agoDisable autoSelect of target storage
Emmanuel Kasper [Thu, 12 Jan 2017 13:31:52 +0000 (14:31 +0100)]
Disable autoSelect of target storage

autoSelect: true  was surreptitiously commited with the refactoring
of 3656c0b9f3742f952b1684f3b6ea9f519d8cd5bd
( Use component references via lookupReference() )

7 years agobump version to 4.4-6
Dietmar Maurer [Thu, 12 Jan 2017 13:24:13 +0000 (14:24 +0100)]
bump version to 4.4-6

7 years agoHTTPServer.pm: factor out code which refers to PVE::Cluster
Dietmar Maurer [Thu, 12 Jan 2017 11:14:53 +0000 (12:14 +0100)]
HTTPServer.pm: factor out code which refers to PVE::Cluster

This will make it easier to move HTTPServer to a separate package.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoadd setup_environment hooks to CLIHandler classes
Dietmar Maurer [Thu, 12 Jan 2017 11:33:31 +0000 (12:33 +0100)]
add setup_environment hooks to CLIHandler classes

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoUse component references via lookupReference()
Emmanuel Kasper [Thu, 12 Jan 2017 11:17:29 +0000 (12:17 +0100)]
Use component references via lookupReference()

This allows to add the components in each column in the order they
appear in the Clone Window.
References from child components are kept in an object in the parent
component so it should be the same performance-wise (contrary to to Ext.ComponentQuery
which is doing DOM parsing)

7 years agoHTTPServer.pm: make split_abs_uri() private
Fabian Grünbichler [Thu, 12 Jan 2017 09:38:12 +0000 (10:38 +0100)]
HTTPServer.pm: make split_abs_uri() private

and rename baseuri to base_uri to be consistent

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoHTTPServer.pm: improve baseuri matching
Dietmar Maurer [Tue, 10 Jan 2017 16:06:07 +0000 (17:06 +0100)]
HTTPServer.pm: improve baseuri matching

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoremove obsolete PVE::REST class
Dietmar Maurer [Tue, 10 Jan 2017 16:06:06 +0000 (17:06 +0100)]
remove obsolete PVE::REST class

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agobin/Makefile: export PERLLIB=.. so that doc generator works correctly
Dietmar Maurer [Tue, 10 Jan 2017 16:06:05 +0000 (17:06 +0100)]
bin/Makefile: export PERLLIB=.. so that doc generator works correctly

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoPVE/API2/Formatter/HTML.pm: avoid use of PVE::REST
Dietmar Maurer [Tue, 10 Jan 2017 16:06:04 +0000 (17:06 +0100)]
PVE/API2/Formatter/HTML.pm: avoid use of PVE::REST

Instead, pass the HTTP server as last argument to the page formater,
so that we can call $server->create_auth_cookie().

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoPVE/Service/pveproxy.pm: avoid using PVE::REST
Dietmar Maurer [Tue, 10 Jan 2017 16:06:03 +0000 (17:06 +0100)]
PVE/Service/pveproxy.pm: avoid using PVE::REST

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add missing 'use' statements
Dietmar Maurer [Tue, 10 Jan 2017 16:06:02 +0000 (17:06 +0100)]
HTTPServer.pm: add missing 'use' statements

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add rest_handler method
Dietmar Maurer [Tue, 10 Jan 2017 16:06:01 +0000 (17:06 +0100)]
HTTPServer.pm: add rest_handler method

copied from PVE::REST. We do not need that class anymore.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: allow to set baseuri when creating the class
Dietmar Maurer [Tue, 10 Jan 2017 16:06:00 +0000 (17:06 +0100)]
HTTPServer.pm: allow to set baseuri when creating the class

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add auth_handler
Dietmar Maurer [Tue, 10 Jan 2017 16:05:59 +0000 (17:05 +0100)]
HTTPServer.pm: add auth_handler

copied from PVE::REST (slightly adopted)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add cookie handling methods
Dietmar Maurer [Tue, 10 Jan 2017 16:05:58 +0000 (17:05 +0100)]
HTTPServer.pm: add cookie handling methods

Copied from PVE::REST (I want to get rid of this PVE::REST class).

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoUse qcow2 as default disk format for clones fix: #1144
Emmanuel Kasper [Thu, 12 Jan 2017 09:14:01 +0000 (10:14 +0100)]
Use qcow2 as default disk format for clones fix: #1144

When using a file based storage, qcow2 has more features as raw,
this is why we recommend it for clones, similarly to when adding
new disk images.

7 years agoDo not show a Clone Mode selection Window for non-templates clones
Emmanuel Kasper [Thu, 12 Jan 2017 09:14:00 +0000 (10:14 +0100)]
Do not show a Clone Mode selection Window for non-templates clones

As Non-templates clones are always a full clone.

7 years agoGroup the Pool selector combobox to the VM properties
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:58 +0000 (10:13 +0100)]
Group the Pool selector combobox to the VM properties

The pool membership relates here to the VM membership, not
the storage membership, so it makes sense to move it closer
to the VM ID / VM name form fields.

7 years agoMake the Snapshot selector an optional parameter in the Clone Window
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:57 +0000 (10:13 +0100)]
Make the Snapshot selector an optional parameter in the Clone Window

The snapshot selector was known to confuse first time pve users.
Some wondered that they had no snapshot called 'current' in their
snapshot trees, and other thought that snapshots would be included
in the copied image.

So before displaying the Clone Window, do an API call to verify
if the source VM has snapshots.

7 years agoDisable the submit button based on whole form validity
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:56 +0000 (10:13 +0100)]
Disable the submit button based on whole form validity

Until now we disabled the submit button, based on
the feature API call where we tested if the selected VM, and its snapshot
can be used as the source of a clone.

This had the following problems:
 * the feature test for copy clone / linked clone always returned true,
 since the passed paramaters were already filtered before user input
 (ie we only allowed a linked clone to be selected if the source VM is
 a template, or a snasphot to be selected if existed on source VM)
 * the guest ID input field was not validated

With the current patch, the validation is now made on each of the form
fields. verifyFeature() is still used to populate a list of valid nodes
passed to the Node Selector.

7 years agoUse correct parameter for GuestIDSelector
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:55 +0000 (10:13 +0100)]
Use correct parameter for GuestIDSelector

7 years agoBetter naming for kv1 comb box, document the two private functions
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:54 +0000 (10:13 +0100)]
Better naming for kv1 comb box, document the two private functions

7 years agoadd sort to jsgettext.pl
Dominik Csapak [Wed, 11 Jan 2017 10:38:19 +0000 (11:38 +0100)]
add sort to jsgettext.pl

the output from find may not be stable (depending on the filesystem),
and is surely not the same on two different systems,
so for consistency in the po files, we sort the output from find with
sort

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoupdate po files
Dietmar Maurer [Wed, 11 Jan 2017 10:01:37 +0000 (11:01 +0100)]
update po files

remove duplicates (see previous commit)

7 years agoupdate gettexts to avoid duplicates in po file
Dominik Csapak [Wed, 11 Jan 2017 09:20:00 +0000 (10:20 +0100)]
update gettexts to avoid duplicates in po file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove obsolete inline documentation
Dietmar Maurer [Wed, 11 Jan 2017 09:54:47 +0000 (10:54 +0100)]
remove obsolete inline documentation

7 years agoadd type column to storage content view
Dominik Csapak [Tue, 10 Jan 2017 14:17:04 +0000 (15:17 +0100)]
add type column to storage content view

and move the grouping feature in the class definition while changing
the text to a generic one

this allows us to group by all columns and still have meaningful
grouping headers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove unnecessary emptyText
Dominik Csapak [Tue, 10 Jan 2017 14:17:03 +0000 (15:17 +0100)]
remove unnecessary emptyText

we already set it statically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agocorrect and insert german translations
Dominik Csapak [Tue, 10 Jan 2017 14:17:02 +0000 (15:17 +0100)]
correct and insert german translations

this patch adds missing and corrects wrong translations for german

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agocheck general health for ceph monitors, not only time
Dominik Csapak [Tue, 10 Jan 2017 11:17:13 +0000 (12:17 +0100)]
check general health for ceph monitors, not only time

we did not check the healthservices array for the monitor widget,
this patch does that, and takes the worst health state

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1247: disregard timecheck for one monitor
Dominik Csapak [Tue, 10 Jan 2017 11:17:12 +0000 (12:17 +0100)]
fix #1247: disregard timecheck for one monitor

if we only have one monitor, set the timecheck to HEALTH_OK
(since we get none)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoupdate translation files
Dietmar Maurer [Tue, 10 Jan 2017 11:18:42 +0000 (12:18 +0100)]
update translation files

7 years agofix jslint errors
Dominik Csapak [Tue, 10 Jan 2017 09:40:17 +0000 (10:40 +0100)]
fix jslint errors

since the value at the top is now directly a string,
we need the jslint confusion at the number and not for the
string at the bottom anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix gettext strings
Dominik Csapak [Tue, 10 Jan 2017 09:40:16 +0000 (10:40 +0100)]
fix gettext strings

we expect a gettext on a single line and to not contain any
variable/logic, so we remove the long text from it altogether (since we
do not want to translate that at the moment), and we rearrange the code
so that gettext only contains strings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agodisable submit button in migrate window when not valid
Dominik Csapak [Mon, 9 Jan 2017 14:40:07 +0000 (15:40 +0100)]
disable submit button in migrate window when not valid

when the form is not valid (e.g. an offline or no host selected),
disable the submit button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoshow only relevant vms in bulk action window
Dominik Csapak [Mon, 9 Jan 2017 13:52:57 +0000 (14:52 +0100)]
show only relevant vms in bulk action window

this adds a default filter for bulk start and stop, so that only the
relevant vms are visible (stopped and started respectively)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake filtered columns in grid more prominent
Dominik Csapak [Mon, 9 Jan 2017 13:52:56 +0000 (14:52 +0100)]
make filtered columns in grid more prominent

this makes the column header not only italic but also bold, so that one
can more easily see that the column is filtered

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoReload the grid list of backups after the backup task completion
Emmanuel Kasper [Thu, 5 Jan 2017 14:33:37 +0000 (15:33 +0100)]
Reload the grid list of backups after the backup task completion

This allows visual feedback for first time users doing a backup.

7 years agochange Start/Stop/Migrate all to Bulk actions
Dominik Csapak [Thu, 5 Jan 2017 11:25:03 +0000 (12:25 +0100)]
change Start/Stop/Migrate all to Bulk actions

this uses the new vmselector and the new vmid filter in the backend
to allow starting/stopping/migrating selected vms instead of all

by default all vms are selected to have the same default behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd vmselector form field
Dominik Csapak [Thu, 5 Jan 2017 11:25:02 +0000 (12:25 +0100)]
add vmselector form field

this is a form field which is a grid for selecting vms

if nodename is given, it will filter the vms only to the given node

you can filter the grid with the column header, and only the selected
and visible items are in the value of the field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd BulkAction window class
Dominik Csapak [Thu, 5 Jan 2017 11:25:01 +0000 (12:25 +0100)]
add BulkAction window class

this is mostly copied from MigrateAll.js, but a more generic way,
to allow startall and stopall to also use it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd vmid filter to (start/stop/migrate)all
Dominik Csapak [Thu, 5 Jan 2017 11:25:00 +0000 (12:25 +0100)]
add vmid filter to (start/stop/migrate)all

this is a simple filter which allows us to limit the actions to specific
vmids

this makes it much simpler to start/stop/migrate a range of vms

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoha: re-add node to service status
Thomas Lamprecht [Thu, 5 Jan 2017 11:23:52 +0000 (12:23 +0100)]
ha: re-add node to service status

On the old HA status we saw where a service was located currently,
this information was lost when we merged the resource and the status
tab.
Add this information again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoremove not needed vnc code
Dominik Csapak [Thu, 22 Dec 2016 14:09:11 +0000 (15:09 +0100)]
remove not needed vnc code

since we access novnc always with the NoVncIndex.pm and never in extjs
itself, we can delete this code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove vznet.conf
Dietmar Maurer [Wed, 4 Jan 2017 09:43:15 +0000 (10:43 +0100)]
remove vznet.conf

leftover from openvz - not used anymore...

7 years agoReload the Ceph OSDTree afer adding an OSD
Emmanuel Kasper [Tue, 3 Jan 2017 14:39:49 +0000 (15:39 +0100)]
Reload the Ceph OSDTree afer adding an OSD