]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
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 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 406ac585db7fc285a63f8638a14fecdb92e28282
( 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 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 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 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

7 years agoHide the Edit window when we start a background task
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.

7 years agofix #1230: add blocksize for ZFSPoolPlugin
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>
7 years agoClone.js: add onlineHelp
Dietmar Maurer [Tue, 3 Jan 2017 11:30:48 +0000 (12:30 +0100)]
Clone.js: add onlineHelp

7 years agoHA: Add a warning/info message for HA setups < 3 votes fix: #1228
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

7 years agoFix a race conditon provoking the error no such file '/pve-storage-content'
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)

7 years agoReplace nested ternary operators with if/else statements
Emmanuel Kasper [Thu, 22 Dec 2016 11:15:23 +0000 (12:15 +0100)]
Replace nested ternary operators with if/else statements

7 years agoperftest2.pl: use -k (keepalive) to show max performance
Dietmar Maurer [Wed, 28 Dec 2016 11:06:27 +0000 (12:06 +0100)]
perftest2.pl: use -k (keepalive) to show max performance

7 years agoremove PVE::API2Client class and related examples
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

7 years agocode cleanup
Dietmar Maurer [Wed, 28 Dec 2016 10:34:01 +0000 (11:34 +0100)]
code cleanup

7 years agobump version to 4.4-5
Dietmar Maurer [Tue, 27 Dec 2016 10:29:45 +0000 (11:29 +0100)]
bump version to 4.4-5

7 years agoadd unpriviledged flag to container restore window.
Dietmar Maurer [Tue, 27 Dec 2016 08:40:29 +0000 (09:40 +0100)]
add unpriviledged flag to container restore window.

7 years agobump version to 4.4
Dietmar Maurer [Thu, 22 Dec 2016 11:28:28 +0000 (12:28 +0100)]
bump version to 4.4

7 years agoChange remove partition order.
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.

7 years agoFix parsing block device.
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.

7 years agobump version to 4.4-3
Dietmar Maurer [Thu, 22 Dec 2016 11:02:41 +0000 (12:02 +0100)]
bump version to 4.4-3

7 years agoEnable service for ceph monitor.
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.

7 years agoreplace SysV init script with our own service
Fabian Grünbichler [Wed, 21 Dec 2016 14:56:15 +0000 (15:56 +0100)]
replace SysV init script with our own service

for more information see http://tracker.ceph.com/issues/18305 .

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoSet correct permission for ceph user.
Wolfgang Link [Wed, 21 Dec 2016 14:56:14 +0000 (15:56 +0100)]
Set correct permission for ceph user.

We have to set the correct permission,
because ceph greater than infernalis use ceph as daemon user.

7 years agoadd jewel
Wolfgang Link [Wed, 21 Dec 2016 14:56:13 +0000 (15:56 +0100)]
add jewel

7 years agorename pve.conf to ceph-after-pve-cluster.conf
Dietmar Maurer [Thu, 22 Dec 2016 10:47:13 +0000 (11:47 +0100)]
rename pve.conf to ceph-after-pve-cluster.conf

7 years agoadd systemd replacement for ceph init script
Wolfgang Link [Wed, 21 Dec 2016 14:56:12 +0000 (15:56 +0100)]
add systemd replacement for ceph init script

the old sys V init script does a lot of stuff, most of which
is already replaced with the system units since jewel,
except for the OSD activation which is still done by either
udev or the old init script.

include systemd service as drop in replacement for the init
script when using jewel. the service is not enabled by
default (as this would break hammer), but needs to be copied
to /etc/systemd/system on upgrade to (manual) or install of
jewel (automatic).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agodo not hide ceph on dashboard if the api call fails
Dominik Csapak [Wed, 21 Dec 2016 10:48:46 +0000 (11:48 +0100)]
do not hide ceph on dashboard if the api call fails

with this patch, we do not hide the ceph status anymore if the api call
fails (too slow, e.g.) as long as we showed it at least one time

also, we only stop the updates if we never successfully got the status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd filter to dashboard storage graph
Dominik Csapak [Wed, 21 Dec 2016 10:45:10 +0000 (11:45 +0100)]
add filter to dashboard storage graph

with this patch, the storage graph on the dashboard only counts the
storages which are selected in the settings window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd a storage selection in the settings window
Dominik Csapak [Thu, 22 Dec 2016 08:54:06 +0000 (09:54 +0100)]
add a storage selection in the settings window

this will be used to filter the dashboard storage graph to the selected
storages, so that one can choose which storages are relevant

e.g. if you have one nfs server with multiple exports (on the same filesystem),
you only want to count it once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoload the diffstore on init
Dominik Csapak [Wed, 21 Dec 2016 10:45:08 +0000 (11:45 +0100)]
load the diffstore on init

if the rstore in the diffstore is already loaded at the time of
the instantiation, load the data instantly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd an alias to the diffstore
Dominik Csapak [Wed, 21 Dec 2016 10:45:07 +0000 (11:45 +0100)]
add an alias to the diffstore

to use it declarative like this:

store : {
    type: 'diff'
}

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.4-2
Dietmar Maurer [Wed, 21 Dec 2016 11:27:01 +0000 (12:27 +0100)]
bump version to 4.4-2

7 years agorebalance_lxc_containers: make it work with old style lxc setups
Dietmar Maurer [Wed, 21 Dec 2016 11:20:40 +0000 (12:20 +0100)]
rebalance_lxc_containers: make it work with old style lxc setups

7 years agorebalance_lxc_containers: avoid repeated warnings if rebalance fails
Dietmar Maurer [Wed, 21 Dec 2016 10:39:46 +0000 (11:39 +0100)]
rebalance_lxc_containers: avoid repeated warnings if rebalance fails

Only warn once.

7 years agorebalance_lxc_containers: fix hotplug
Dietmar Maurer [Wed, 21 Dec 2016 10:13:16 +0000 (11:13 +0100)]
rebalance_lxc_containers: fix hotplug

factor out code to modify cpusets into $modify_cpuset->()

7 years agorebalance_lxc_containers: make it work with new lxc/<ID>/ns subgroup
Dietmar Maurer [Wed, 21 Dec 2016 10:04:33 +0000 (11:04 +0100)]
rebalance_lxc_containers: make it work with new lxc/<ID>/ns subgroup