]>
git.proxmox.com Git - pve-manager-legacy.git/log
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
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.
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
Dietmar Maurer [Tue, 31 Jan 2017 07:13:17 +0000 (08:13 +0100)]
PVE/API2/Tasks.pm: corretly return true after loading
Fabian Grünbichler [Fri, 27 Jan 2017 09:56:21 +0000 (10:56 +0100)]
bump version to 4.4-12
Wolfgang Bumiller [Thu, 26 Jan 2017 10:13:21 +0000 (11:13 +0100)]
REST/RPCEnvironment's check_worker is a method now
Wolfgang Bumiller [Thu, 26 Jan 2017 11:59:31 +0000 (12:59 +0100)]
spiceproxy: import PVE::SafeSyslog
Dietmar Maurer [Thu, 26 Jan 2017 08:23:19 +0000 (09:23 +0100)]
bump version to 4.4-11
Dietmar Maurer [Wed, 25 Jan 2017 17:24:51 +0000 (18:24 +0100)]
depend on libjs-extjs
Dietmar Maurer [Wed, 25 Jan 2017 17:23:07 +0000 (18:23 +0100)]
delete extjs source files
Fabian Grünbichler [Wed, 25 Jan 2017 08:38:49 +0000 (09:38 +0100)]
bump version to 4.4-10
Fabian Grünbichler [Wed, 25 Jan 2017 08:35:35 +0000 (09:35 +0100)]
move VZDump base Plugin
moved to pve-common-guest
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>
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.
Emmanuel Kasper [Mon, 23 Jan 2017 14:24:32 +0000 (15:24 +0100)]
Add new renderer function for toggling enabled/disabled options
Emmanuel Kasper [Wed, 18 Jan 2017 16:03:32 +0000 (17:03 +0100)]
Remove technical terms from content to be translated
Dietmar Maurer [Thu, 19 Jan 2017 08:23:16 +0000 (09:23 +0100)]
bump version to 4.4-9
Dietmar Maurer [Wed, 18 Jan 2017 16:30:40 +0000 (17:30 +0100)]
use new PVE::Storage::check_volume_access()
Dietmar Maurer [Wed, 18 Jan 2017 16:28:59 +0000 (17:28 +0100)]
pvestatd.pm: corretly use new RPCEnvironment
Call $rpcenv->active_workers()
Dietmar Maurer [Wed, 18 Jan 2017 11:59:21 +0000 (12:59 +0100)]
pveproxy: do not expose /pve2/js/ (no longer required)
Dietmar Maurer [Wed, 18 Jan 2017 09:23:38 +0000 (10:23 +0100)]
update .po file
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.
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.
Emmanuel Kasper [Wed, 18 Jan 2017 08:46:03 +0000 (09:46 +0100)]
Remove duplicate strings
Dietmar Maurer [Tue, 17 Jan 2017 07:04:45 +0000 (08:04 +0100)]
remove reference to PVE.ConsoleWorkspace
We already removed that code (unused).
Dietmar Maurer [Mon, 16 Jan 2017 17:43:06 +0000 (18:43 +0100)]
bump version to 4.4-8
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>
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>
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>
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>
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>
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>
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>
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>
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>
Fabian Grünbichler [Fri, 13 Jan 2017 10:01:33 +0000 (11:01 +0100)]
bump version to 4.4-7
Fabian Grünbichler [Fri, 13 Jan 2017 09:52:27 +0000 (10:52 +0100)]
fix CSRF token generation
this broke with the recent refactoring
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() )
Dietmar Maurer [Thu, 12 Jan 2017 13:24:13 +0000 (14:24 +0100)]
bump version to 4.4-6
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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.
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.
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.
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.
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:55 +0000 (10:13 +0100)]
Use correct parameter for GuestIDSelector
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:54 +0000 (10:13 +0100)]
Better naming for kv1 comb box, document the two private functions
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>
Dietmar Maurer [Wed, 11 Jan 2017 10:01:37 +0000 (11:01 +0100)]
update po files
remove duplicates (see previous commit)
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>
Dietmar Maurer [Wed, 11 Jan 2017 09:54:47 +0000 (10:54 +0100)]
remove obsolete inline documentation
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>
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>
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>
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>
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>
Dietmar Maurer [Tue, 10 Jan 2017 11:18:42 +0000 (12:18 +0100)]
update translation files
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>
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>
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>
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>
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>
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.
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>
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>
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>
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>
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>
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>
Dietmar Maurer [Wed, 4 Jan 2017 09:43:15 +0000 (10:43 +0100)]
remove vznet.conf
leftover from openvz - not used anymore...
Emmanuel Kasper [Tue, 3 Jan 2017 14:39:49 +0000 (15:39 +0100)]
Reload the Ceph OSDTree afer adding an OSD
Emmanuel Kasper [Tue, 3 Jan 2017 14:39:48 +0000 (15:39 +0100)]
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.
Fabian Grünbichler [Tue, 3 Jan 2017 11:23:35 +0000 (12:23 +0100)]
fix #1230: add blocksize for ZFSPoolPlugin
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Dietmar Maurer [Tue, 3 Jan 2017 11:30:48 +0000 (12:30 +0100)]
Clone.js: add onlineHelp
Emmanuel Kasper [Thu, 29 Dec 2016 11:04:18 +0000 (12:04 +0100)]
HA: Add a warning/info message for HA setups < 3 votes fix: #1228
Emmanuel Kasper [Wed, 21 Dec 2016 15:49:08 +0000 (16:49 +0100)]
Fix a race conditon provoking the error no such file '/pve-storage-content'
(NB: the error was only displayed intermittently in the browser console)
The reload call could try a store reload before the store has
a defined url.
The call here is useless since the initial display of
the storage selector compoment will call setStorage() to pass an url
to the store and load it.
Also remove the test on me.store.proxy.url since it was not working
(ExtJS autodefined an URL based on the model name)
Emmanuel Kasper [Thu, 22 Dec 2016 11:15:23 +0000 (12:15 +0100)]
Replace nested ternary operators with if/else statements
Dietmar Maurer [Wed, 28 Dec 2016 11:06:27 +0000 (12:06 +0100)]
perftest2.pl: use -k (keepalive) to show max performance
Dietmar Maurer [Wed, 28 Dec 2016 10:41:35 +0000 (11:41 +0100)]
remove PVE::API2Client class and related examples
We now have all API client code in an extra package:
https://git.proxmox.com/?p=pve-apiclient.git;a=summary
Dietmar Maurer [Wed, 28 Dec 2016 10:34:01 +0000 (11:34 +0100)]
code cleanup
Dietmar Maurer [Tue, 27 Dec 2016 10:29:45 +0000 (11:29 +0100)]
bump version to 4.4-5
Dietmar Maurer [Tue, 27 Dec 2016 08:40:29 +0000 (09:40 +0100)]
add unpriviledged flag to container restore window.
Dietmar Maurer [Thu, 22 Dec 2016 11:28:28 +0000 (12:28 +0100)]
bump version to 4.4
Wolfgang Link [Mon, 19 Dec 2016 11:41:27 +0000 (12:41 +0100)]
Change remove partition order.
If we remove first the journal the data partition will automatically mounted
and can't destroy the partition.
This is trigger by the udev ceph rule.
Wolfgang Link [Mon, 19 Dec 2016 11:41:26 +0000 (12:41 +0100)]
Fix parsing block device.
Get the partition num and block device from sysfs.
This ensure different block device types will work.
Dietmar Maurer [Thu, 22 Dec 2016 11:02:41 +0000 (12:02 +0100)]
bump version to 4.4-3
Wolfgang Link [Wed, 21 Dec 2016 14:56:16 +0000 (15:56 +0100)]
Enable service for ceph monitor.
We do not use the ceph.service what normally start ceph-mon,
so we have to ensure ceph-mon is enabled.