2960 Commits

Author SHA1 Message Date
Dietmar Maurer
8008a53855 bump version to 4.4-6 2017-01-12 14:24:13 +01:00
Dietmar Maurer
fd9b476f67 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>
2017-01-12 13:07:00 +01:00
Dietmar Maurer
8a37d2c9c2 add setup_environment hooks to CLIHandler classes
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 13:07:00 +01:00
Emmanuel Kasper
3656c0b9f3 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)
2017-01-12 12:26:07 +01:00
Fabian Grünbichler
2d4ef92c06 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>
2017-01-12 11:55:54 +01:00
Dietmar Maurer
06edb1ff6e HTTPServer.pm: improve baseuri matching
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:19 +01:00
Dietmar Maurer
e25fafd667 remove obsolete PVE::REST class
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:19 +01:00
Dietmar Maurer
29fe0f97a9 bin/Makefile: export PERLLIB=.. so that doc generator works correctly
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:19 +01:00
Dietmar Maurer
26432e4241 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>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
fcd11f33a3 PVE/Service/pveproxy.pm: avoid using PVE::REST
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
c519ed2c40 HTTPServer.pm: add missing 'use' statements
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
c1deace216 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>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
372fb803e5 HTTPServer.pm: allow to set baseuri when creating the class
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
72cbb6ad32 HTTPServer.pm: add auth_handler
copied from PVE::REST (slightly adopted)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:18 +01:00
Dietmar Maurer
ce54c9c867 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>
2017-01-12 11:53:18 +01:00
Emmanuel Kasper
6119dede3e 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.
2017-01-12 10:56:02 +01:00
Emmanuel Kasper
a2e81f0d67 Do not show a Clone Mode selection Window for non-templates clones
As Non-templates clones are always a full clone.
2017-01-12 10:48:29 +01:00
Emmanuel Kasper
6218a68556 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.
2017-01-12 10:41:47 +01:00
Emmanuel Kasper
d512583fbb 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.
2017-01-12 10:41:36 +01:00
Emmanuel Kasper
5e29e8894f 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.
2017-01-12 10:40:22 +01:00
Emmanuel Kasper
f45d3c319b Use correct parameter for GuestIDSelector 2017-01-12 10:38:01 +01:00
Emmanuel Kasper
e00281491c Better naming for kv1 comb box, document the two private functions 2017-01-12 10:37:50 +01:00
Dominik Csapak
477c5e718e 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>
2017-01-11 11:58:02 +01:00
Dietmar Maurer
833fc26e5d update po files
remove duplicates (see previous commit)
2017-01-11 11:01:37 +01:00
Dominik Csapak
7c8a41f670 update gettexts to avoid duplicates in po file
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-11 10:57:55 +01:00
Dietmar Maurer
c7eb5a9ea3 remove obsolete inline documentation 2017-01-11 10:54:47 +01:00
Dominik Csapak
86a545b4dc 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>
2017-01-10 15:42:12 +01:00
Dominik Csapak
9bace1ceab remove unnecessary emptyText
we already set it statically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 15:39:15 +01:00
Dominik Csapak
ebc18ada69 correct and insert german translations
this patch adds missing and corrects wrong translations for german

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 15:38:52 +01:00
Dominik Csapak
103131ad30 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>
2017-01-10 13:03:04 +01:00
Dominik Csapak
e040efeb1d 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>
2017-01-10 13:02:17 +01:00
Dietmar Maurer
f48e4e8758 update translation files 2017-01-10 12:18:42 +01:00
Dominik Csapak
f0f0680299 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>
2017-01-10 12:14:26 +01:00
Dominik Csapak
6fbae489ae 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>
2017-01-10 12:14:12 +01:00
Dominik Csapak
5e2110fe94 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>
2017-01-10 08:21:30 +01:00
Dominik Csapak
cd371b8b61 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>
2017-01-10 08:18:35 +01:00
Dominik Csapak
61dd98d348 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>
2017-01-10 08:14:41 +01:00
Emmanuel Kasper
7085408bae Reload the grid list of backups after the backup task completion
This allows visual feedback for first time users doing a backup.
2017-01-05 16:17:32 +01:00
Dominik Csapak
f6b31faf9c 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>
2017-01-05 15:59:44 +01:00
Dominik Csapak
1d5b91a42f 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>
2017-01-05 15:58:41 +01:00
Dominik Csapak
42ab04aacb 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>
2017-01-05 15:57:11 +01:00
Dominik Csapak
8085dbca5c 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>
2017-01-05 15:55:59 +01:00
Thomas Lamprecht
180873313f 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>
2017-01-05 15:52:23 +01:00
Dominik Csapak
d398b82539 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>
2017-01-04 10:50:38 +01:00
Dietmar Maurer
7fdb3e699d remove vznet.conf
leftover from openvz - not used anymore...
2017-01-04 10:43:15 +01:00
Emmanuel Kasper
75a0115329 Reload the Ceph OSDTree afer adding an OSD 2017-01-03 18:19:50 +01:00
Emmanuel Kasper
1593a4972c Hide the Edit window when we start a background task
We closed the Edit window too early, so listeners set to
the 'close' event would reload the underlying grid before the action
successfully completed on the server side.
2017-01-03 18:19:25 +01:00
Fabian Grünbichler
21d2f6e84a fix #1230: add blocksize for ZFSPoolPlugin
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-01-03 12:56:33 +01:00
Dietmar Maurer
adf51e2b02 Clone.js: add onlineHelp 2017-01-03 12:30:48 +01:00
Emmanuel Kasper
7e7cdb0716 HA: Add a warning/info message for HA setups < 3 votes fix: #1228 2017-01-03 11:10:06 +01:00