]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
7 years agoTurn the offline/online checkbox of the Migrate Windows into a displayfield
Emmanuel Kasper [Thu, 24 Aug 2017 09:45:20 +0000 (11:45 +0200)]
Turn the offline/online checkbox of the Migrate Windows into a displayfield

This checkbox had not effect whatsoever:
 * if the VM was online and offline was selected, the migration would fail
 with the message that the --online flag is needed for running VMs
 * if the the VM was offline and online was selected, the migration would
 happen offline anyway

7 years agoRework Migrate Window with declarative synthax
Emmanuel Kasper [Thu, 24 Aug 2017 09:45:19 +0000 (11:45 +0200)]
Rework Migrate Window with declarative synthax

Also group all qemu vs LXC tests in a single place.

7 years agoAllow to set the onlineHelp via a config Object
Emmanuel Kasper [Thu, 24 Aug 2017 09:45:18 +0000 (11:45 +0200)]
Allow to set the onlineHelp via a config Object

For cases when we need to set the online help block id of a modal window after the help
button has been configured.

7 years agobump version to 5.0-32
Wolfgang Bumiller [Tue, 12 Sep 2017 11:55:49 +0000 (13:55 +0200)]
bump version to 5.0-32

7 years agoDisallow quotas for unprivileged containers
Philip Abernethy [Mon, 11 Sep 2017 15:42:35 +0000 (17:42 +0200)]
Disallow quotas for unprivileged containers

Disables the quota checkbox for unprivileged containers in the creation
wizard, as well as when editing or adding mountpoints.

7 years agoWhitespace and typo fix
Philip Abernethy [Mon, 11 Sep 2017 15:42:34 +0000 (17:42 +0200)]
Whitespace and typo fix

7 years agoinit: shorter pve-guests.service Description
Wolfgang Bumiller [Mon, 11 Sep 2017 13:53:41 +0000 (15:53 +0200)]
init: shorter pve-guests.service Description

7 years agorename pve-manager.service to pve-guests
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:30 +0000 (16:31 +0200)]
rename pve-manager.service to pve-guests

the name 'pve-manager' collides with our pve-manager package name,
which - from the user point of view - provides mainly the API and
WebUI.
An user could thus think that restarting 'pve-manager' would restart
the WebUIs server, which is relatable.
But, the pve-manager.service does not controls the WebUI or its
server but is responsible for starting all guest with 'onboot=1' in
their config on system boot and to stop all remaining running guests
on system shutdown.

Thus rename it to pve-guests and adapt its description. This may not
seem as ideal name at first glance, but its better than the current
option. Further it leads to log messages like:
 > Starting PVE guests (Service providing start-on-boot and stop-all-on-shutdown)
 > [...]
 > Started PVE guests (Service providing start-on-boot and stop-all-on-shutdown)
 > [...]
 > Stopping PVE guests (Service providing start-on-boot and stop-all-on-shutdown)

which makes it clearer what happens, or what this service is for.

Alias the new service to the old pve-manager.service for legacy
reasons. While our services do not depend on it an user could have
made an own service which used pve-manager.service as synchronisation
point.

Linitian then complains about init.d/pve-manager not having a related
systemd service file. Instead of renmaning it just drop it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopve-manager.service: move open-iscsi ordering to pve-storage.target
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:29 +0000 (16:31 +0200)]
pve-manager.service: move open-iscsi ordering to pve-storage.target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopve-manager.service: allow logging STDERR and STDOUT
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:28 +0000 (16:31 +0200)]
pve-manager.service: allow logging STDERR and STDOUT

The API calls are not to chatty but may give helpfull hints about
what gets tried to be done.

This may help an Admin to figure out which guest delays his host
shutdown.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopve-manager.service: refuse manual start/stop
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:27 +0000 (16:31 +0200)]
pve-manager.service: refuse manual start/stop

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopve-manager.service: do not allow stop to timeout
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:26 +0000 (16:31 +0200)]
pve-manager.service: do not allow stop to timeout

This services is responsible for bringing up 'onboot' marked guests
on host power-on and stop _all_ guests gracefully on host shutdown
(be it reboot, shutdow, halt, ..)

It's type is set to 'oneshot', which implies a TimeoutStartSec of
'infinity', by default. With Jessies Version of Systemd the
TimeoutStopSec defaulted to TimeoutStartSec, if not set – so also
'infinity'.
But, Debian Stretchs Version of Systemd makes TimeoutStopSec defaults
to 'DefaultTimeoutStopSec' if it was not set, which is by default 90
seconds – much less than infinity.

This may cause non-gracefull shutdowns of guests, as after the 90
seconds systemd sends a SIGKILL to the pvesh 'stopall' process.
This may end in a bad guest state then. But besides that it can also
lead to a hanging shutdown in some cirumstancesm, as some guest still
operated on storages, so systemd-shutdown - the binary which gets
exec'ed by systemd to become the new PID 1 cannot finish its
sync/umount/shutdown procedure. It has a watchdog armed on sync, if
that triggers you may even get a fully shut down system.
Else it can possibly hang forever, at least until the power plug gets
pulled or similar actions are taken.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoshow 'RBD' instead of 'RBD (external)' on storage summary
Dominik Csapak [Thu, 7 Sep 2017 10:48:28 +0000 (12:48 +0200)]
show 'RBD' instead of 'RBD (external)' on storage summary

we cannot differentiate between external and pve-managed there,
so we just want to show 'RBD'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agodrop unnecessary check for 'local'
Dominik Csapak [Tue, 5 Sep 2017 14:23:50 +0000 (16:23 +0200)]
drop unnecessary check for 'local'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake bluestore the default choice when creating osds
Dominik Csapak [Tue, 5 Sep 2017 14:23:49 +0000 (16:23 +0200)]
make bluestore the default choice when creating osds

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd new "RBD (PVE)" storage choice
Dominik Csapak [Tue, 5 Sep 2017 14:23:48 +0000 (16:23 +0200)]
add new "RBD (PVE)" storage choice

this is for adding a pve managed ceph rbd storage, so that the user
just has to select the pool, and does not need to write the monitor
hosts and copy the keyring

the old "RBD" is renamed to "RBD (external)"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd CephPoolSelector
Dominik Csapak [Tue, 5 Sep 2017 14:23:47 +0000 (16:23 +0200)]
add CephPoolSelector

this allows us to give the user a list of pve managed ceph pools

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoceph: do not automatically use wal if only journal is given
Dominik Csapak [Tue, 5 Sep 2017 14:23:46 +0000 (16:23 +0200)]
ceph: do not automatically use wal if only journal is given

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agorename 'Remove' ceph pool button to 'Destroy'
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:48 +0000 (14:59 +0200)]
rename 'Remove' ceph pool button to 'Destroy'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoenable showProgress for create/destroy pool
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:47 +0000 (14:59 +0200)]
enable showProgress for create/destroy pool

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoadd showProgress to SafeDestroy
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:46 +0000 (14:59 +0200)]
add showProgress to SafeDestroy

modeled after the mechanism used in window/Edit.js

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoadd remove_storages parameter to the pool destruction
Dominik Csapak [Tue, 5 Sep 2017 12:59:45 +0000 (14:59 +0200)]
add remove_storages parameter to the pool destruction

automatically remove the pveceph managed storages when deleting the
pool on the gui

this is ok because we cannot delete the pool anyway when we have images
on it, and recreating them when creating a pool is now trivial

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd add storages checkbox to ceph pool creation
Dominik Csapak [Tue, 5 Sep 2017 12:59:44 +0000 (14:59 +0200)]
add add storages checkbox to ceph pool creation

to be able to automatically generate the ceph storages when creating a
pool

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoadd a params object to the safedestroy window
Dominik Csapak [Tue, 5 Sep 2017 12:59:43 +0000 (14:59 +0200)]
add a params object to the safedestroy window

we sometimes want to give the api call a parameter,
with this, we don't have to encode it into the url
everytime ourselves, but just give a 'params' object

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd task description for cephcreatepool
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:42 +0000 (14:59 +0200)]
add task description for cephcreatepool

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph/destroypool: move image check into worker
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:41 +0000 (14:59 +0200)]
ceph/destroypool: move image check into worker

vdisk_list can potentially take very long, and we don't want
the API request to time out.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph: make create/destroypool API paths async
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:40 +0000 (14:59 +0200)]
ceph: make create/destroypool API paths async

in order to get task log entries and easily accessible
task/error logs.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph/destroypool: refactor to use get_storages
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:39 +0000 (14:59 +0200)]
ceph/destroypool: refactor to use get_storages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph/destroypool: optionally remove storages
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:38 +0000 (14:59 +0200)]
ceph/destroypool: optionally remove storages

only storages which don't have the 'monhost' option set are removed

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph/createpool: optionally add storages
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:37 +0000 (14:59 +0200)]
ceph/createpool: optionally add storages

introduce new API parameter 'add_storages'. if set, one
storage each is configured using the created pool:
- for containers using KRBD
- for VMs using librbd

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph: create/destroypool: shorten variable name
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:36 +0000 (14:59 +0200)]
ceph: create/destroypool: shorten variable name

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph: add get_storages helper
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:35 +0000 (14:59 +0200)]
ceph: add get_storages helper

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoceph: add add_storage helper
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:34 +0000 (14:59 +0200)]
ceph: add add_storage helper

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agobump version to 5.0-31
Fabian Grünbichler [Fri, 1 Sep 2017 09:59:58 +0000 (11:59 +0200)]
bump version to 5.0-31

7 years agodisable discard for non-scsi disks
Thomas Lamprecht [Tue, 29 Aug 2017 10:08:30 +0000 (12:08 +0200)]
disable discard for non-scsi disks

Adapted from: Dominik Csapak <d.csapak@proxmox.com> version

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agocreate: clear iothread on disable
Thomas Lamprecht [Tue, 29 Aug 2017 10:08:29 +0000 (12:08 +0200)]
create: clear iothread on disable

A user may set the `iothread` option and then change the bus type to
something which does not support it (sata, ide), while we disable
it the previously set value remains, which is confusing.
An user could think he coulkd trick the Wizard into using iothreads
for SATA/IDE but we just ignore the value in this case.

Set iothread to false in the case it gets disabled.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoChange the SCSI controller type when editing a harddisk only when creating a VM.
Emmanuel Kasper [Tue, 29 Aug 2017 10:08:28 +0000 (12:08 +0200)]
Change the SCSI controller type when editing a harddisk only when creating a VM.

If not, the following could happen:
 * user has a VM with two disks attached to a LSI controller
 * adding a third disk, he notices the iothread option, and clicks it
 * the scsihw type for all disks is changed now to virtio-scsi-single
 * on next cold restart, STOP 0x0000007B INACCESSABLE_BOOT_DEVICE for a Windows VM

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoremove unused variables
Thomas Lamprecht [Tue, 29 Aug 2017 10:08:27 +0000 (12:08 +0200)]
remove unused variables

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoHDEdit: push more items in the same call
Thomas Lamprecht [Tue, 29 Aug 2017 10:08:26 +0000 (12:08 +0200)]
HDEdit: push more items in the same call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agodisk/controllerselector: adapt flex
Thomas Lamprecht [Tue, 29 Aug 2017 10:08:25 +0000 (12:08 +0200)]
disk/controllerselector: adapt flex

The bus tye selector gets now 2/3 of the space and the bus number
spinner gets 1/3.

It looked a bit strange with both of them getting half of the space,
as on a lot of GUIs the spinner get less space (its just a number
(max 13) vs a wider text).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoCreateWizard: remove title from confirm tabpanel
Thomas Lamprecht [Tue, 29 Aug 2017 10:08:24 +0000 (12:08 +0200)]
CreateWizard: remove title from confirm tabpanel

It isn't needed as its obvious that the table below show the
configuration. It just takes away space.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agohide migrate in contextmenu when no cluster or no rights
Dominik Csapak [Tue, 29 Aug 2017 09:41:19 +0000 (11:41 +0200)]
hide migrate in contextmenu when no cluster or no rights

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agohide migrate button in lxc for non cluster setups
Dominik Csapak [Tue, 29 Aug 2017 09:41:18 +0000 (11:41 +0200)]
hide migrate button in lxc for non cluster setups

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agohide not usable buttons for qemu
Dominik Csapak [Tue, 29 Aug 2017 09:41:17 +0000 (11:41 +0200)]
hide not usable buttons for qemu

this hides not usuable buttons for qemu
e.g. start/shutdown for templates
migrate for non-cluster setups

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopveceph/init: improve version check error message
Fabian Grünbichler [Fri, 25 Aug 2017 12:16:09 +0000 (14:16 +0200)]
pveceph/init: improve version check error message

7 years agoimplement checks for ceph version & binaries
Alwin Antreich [Thu, 24 Aug 2017 12:45:57 +0000 (14:45 +0200)]
implement checks for ceph version & binaries

add version check to ceph init to require luminous or higher and
fix #1481: check existence of ceph binaries before use

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
7 years agoceph dashboard: better format the warning detail window
Dominik Csapak [Fri, 25 Aug 2017 08:23:29 +0000 (10:23 +0200)]
ceph dashboard: better format the warning detail window

this adds the summary as first line,
and the long warning message as monospaced text (like on the console)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoceph dashboard: add missing summary/message access level
Dominik Csapak [Fri, 25 Aug 2017 08:23:28 +0000 (10:23 +0200)]
ceph dashboard: add missing summary/message access level

in luminous, the output of the status/health has changed (again),
so we have to access the correct properties

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoqemu/create: use 'virtio-scsi-single' if 'iothread' is set
Thomas Lamprecht [Mon, 21 Aug 2017 07:20:54 +0000 (09:20 +0200)]
qemu/create: use 'virtio-scsi-single' if 'iothread' is set

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reported-by: Nils <gismo3303@gmail.com>
7 years agoqemu/HDEdit: whitespace cleanup
Thomas Lamprecht [Mon, 21 Aug 2017 07:20:53 +0000 (09:20 +0200)]
qemu/HDEdit: whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agofix nodeselector when no element in the tree is selected
Dominik Csapak [Fri, 18 Aug 2017 07:04:53 +0000 (09:04 +0200)]
fix nodeselector when no element in the tree is selected

it can happen that nothing in the tree is selected,
then PVE.curSelectedNode is undefined, generating an exception there.
so we check if this is available

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake the ceph warning window modal
Dominik Csapak [Wed, 9 Aug 2017 09:42:55 +0000 (11:42 +0200)]
make the ceph warning window modal

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix ceph gui icons
Dominik Csapak [Wed, 9 Aug 2017 09:42:54 +0000 (11:42 +0200)]
fix ceph gui icons

this adds a new css class for fontawesome which we need under certain
circumstances (it is copied from fontawesome minus a font-size:inherited)

and it changes the icons in the osd tree from x-fa to fa
(which is the correct one there)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoceph: add application parameter to createpool
Dominik Csapak [Wed, 9 Aug 2017 09:42:53 +0000 (11:42 +0200)]
ceph: add application parameter to createpool

and use 'rbd' by default, since we cannot create a cephfs or
rgw from the gui currently

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoceph: make size 3/min 2 default with createpool
Dominik Csapak [Wed, 9 Aug 2017 09:42:52 +0000 (11:42 +0200)]
ceph: make size 3/min 2 default with createpool

in the gui this is already the default, so make it also the default
in the backend (also 2/1 is really bad as a default)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobuild: ensure REPOID has a length of 8
Fabian Grünbichler [Wed, 9 Aug 2017 09:42:32 +0000 (11:42 +0200)]
build: ensure REPOID has a length of 8

because unlike the git-rev-parse man page says, the default
length is actually calculated based on the number of packed
objects in the clone of the repository.

we don't want this to depend on the build environment and
how the repository was cloned there, so fix a length of 8
for now.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agobump version to 5.0-30
Fabian Grünbichler [Tue, 8 Aug 2017 09:08:24 +0000 (11:08 +0200)]
bump version to 5.0-30

7 years agoadd information about bluestore in the gui disklist
Dominik Csapak [Fri, 4 Aug 2017 14:32:49 +0000 (16:32 +0200)]
add information about bluestore in the gui disklist

this adds if an osd uses bluestore in the disklist,
and shows if a disk is used for osd journal/db/wal

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix jslint error
Dominik Csapak [Fri, 4 Aug 2017 14:28:51 +0000 (16:28 +0200)]
fix jslint error

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoshow bluestore info in the osd tree
Dominik Csapak [Fri, 4 Aug 2017 14:28:50 +0000 (16:28 +0200)]
show bluestore info in the osd tree

namely the osd type (filestore/bluestore), bluestore device,
db device and wal device

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd bluestore information to osd api call
Dominik Csapak [Fri, 4 Aug 2017 14:28:49 +0000 (16:28 +0200)]
add bluestore information to osd api call

this adds information about bluestore (which devices and if
bluestore/filestore) to show in the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 5.0-29
Wolfgang Bumiller [Mon, 31 Jul 2017 13:47:17 +0000 (15:47 +0200)]
bump version to 5.0-29

7 years agoceph: ensure mgr starts after pve-cluster
Fabian Grünbichler [Mon, 31 Jul 2017 09:33:16 +0000 (11:33 +0200)]
ceph: ensure mgr starts after pve-cluster

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agobump version to 5.0-28
Fabian Grünbichler [Mon, 31 Jul 2017 13:31:33 +0000 (15:31 +0200)]
bump version to 5.0-28

7 years agoalso mention manager in create monitor title
Dominik Csapak [Mon, 31 Jul 2017 13:15:33 +0000 (15:15 +0200)]
also mention manager in create monitor title

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoindentation and jslint fix
Dominik Csapak [Mon, 31 Jul 2017 13:15:32 +0000 (15:15 +0200)]
indentation and jslint fix

indentation was wrong on those lines, and js lint complains about
alias not being an array later, so make thoses lines not an array

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd a bluestore checkbox to the create osd window
Dominik Csapak [Mon, 31 Jul 2017 13:15:31 +0000 (15:15 +0200)]
add a bluestore checkbox to the create osd window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse better icons in the ceph osd tree view
Dominik Csapak [Mon, 31 Jul 2017 13:15:30 +0000 (15:15 +0200)]
use better icons in the ceph osd tree view

this uses the same icons for hosts/osds as in the resource tree,
and also uses the same arrow style

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoreload the pool grid correctly
Dominik Csapak [Mon, 31 Jul 2017 13:15:29 +0000 (15:15 +0200)]
reload the pool grid correctly

whenever a window is closed (creation, deletion) we want to reload the
pool grid, for not having to wait on the next refresh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoalso get the crush rule name in the ceph pool list
Dominik Csapak [Mon, 31 Jul 2017 13:15:28 +0000 (15:15 +0200)]
also get the crush rule name in the ceph pool list

we get the names in the backend, and give them as an additional field
in the api call, and use it in the grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1465: use a combobox for the crush rule instead of the id
Dominik Csapak [Mon, 31 Jul 2017 13:15:27 +0000 (15:15 +0200)]
fix #1465: use a combobox for the crush rule instead of the id

this patch does a few things

1. we introduce a new api call /nodes/nodename/ceph/rules
   which gets us a list of crush rules

2. we introduce a new CephRuleSelector which is a simple combobox
   with the data from the api call ceph/rules

3. we use this in the create pool window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake crush rules working again
Dominik Csapak [Mon, 31 Jul 2017 13:15:26 +0000 (15:15 +0200)]
make crush rules working again

since ceph 12.1.1 the (deprecated) parameter 'crush_ruleset' is removed
and replaced with 'crush_rule' while changing this, change from
integer to string so that we can later use the names of the rules
instead of the id

(for now there seems to be a bug that you can only use the name and
not the id)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd osd device class to osd tree
Dominik Csapak [Mon, 31 Jul 2017 13:15:25 +0000 (15:15 +0200)]
add osd device class to osd tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agocorrectly remove partitions for ceph bluestore osds
Dominik Csapak [Mon, 31 Jul 2017 13:15:24 +0000 (15:15 +0200)]
correctly remove partitions for ceph bluestore osds

we now have to remove 5 types of partitions:

data/metadata
journal
block
block.db
block.wal

this patch fixes the detection of block/block.db/block.wal
generalizes it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoenable using a device for bluestore block db/wal
Dominik Csapak [Mon, 31 Jul 2017 13:15:23 +0000 (15:15 +0200)]
enable using a device for bluestore block db/wal

we reuse the 'journal_dev' parameter for bluestores block.db
and add a new parameter 'wal_dev' for bluestores write ahead log

if only journal_dev is given, use it for both db and wal

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix creating the first ceph monitor
Dominik Csapak [Thu, 27 Jul 2017 13:02:41 +0000 (15:02 +0200)]
fix creating the first ceph monitor

we cannot use a rados connection before having at least one monitor,
so we have to move it down

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 5.0-27
Wolfgang Bumiller [Wed, 26 Jul 2017 14:52:18 +0000 (16:52 +0200)]
bump version to 5.0-27

7 years agoadd missing '-' to service name pattern
Dominik Csapak [Wed, 26 Jul 2017 14:46:16 +0000 (16:46 +0200)]
add missing '-' to service name pattern

since ids can contain '-', we have to include them in the pattern
for the service names

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd missing changelog entry
Wolfgang Bumiller [Wed, 26 Jul 2017 14:51:06 +0000 (16:51 +0200)]
add missing changelog entry

7 years agobump version to 5.0-26
Wolfgang Bumiller [Wed, 26 Jul 2017 13:40:29 +0000 (15:40 +0200)]
bump version to 5.0-26

7 years agodc/Backup: do not focus node selector on window focus
Thomas Lamprecht [Tue, 25 Jul 2017 14:27:00 +0000 (16:27 +0200)]
dc/Backup: do not focus node selector on window focus

Do not focus anything here in the case he backup window gains focus
again. Else, if we click outside of the window the nodefield gets
always focused again - even if another field was focused previously.
This is a bit confusing, rather have no field focused at all -
especially as a blank value will be often used here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoComboGrid: open picker also when focusing an editable field
Thomas Lamprecht [Tue, 25 Jul 2017 14:26:59 +0000 (16:26 +0200)]
ComboGrid: open picker also when focusing an editable field

ComboBoxes provided by UI frameworks normally show their selection
possibilities once focused, ExtJS does this too but not on editable
(and thus filterable) input fields. Add a logic which allows this too
and streamlines the behavior of ComboGrid/Box like components.

To avoid a glitch, where clicking the "picker trigger" (the down
arrow which normally toggles the selection picker) would first focus
the element - thus expanding it - and only then causing a toggle
which collapses it again, we overwrite the 'Ext.form.trigger.Trigger'
onMouseDown so that we can skip a expansion on this event.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoFileStore: make editable to allow filtering
Thomas Lamprecht [Tue, 25 Jul 2017 14:26:58 +0000 (16:26 +0200)]
FileStore: make editable to allow filtering

Making this ComboGrid based component editable allows implicit
filtering the backing store.
This is quite helpful on file selection, as for example the ISO file
selector from the create wizard is.
Clear the filter (and its displayed value) on store selection change,
as there the filter becomes void - at least this is a simple and easy
solution without glitches.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoComboGrid: improve setting 'editable' default value
Thomas Lamprecht [Tue, 25 Jul 2017 14:26:57 +0000 (16:26 +0200)]
ComboGrid: improve setting 'editable' default value

This allows child classes to use another default, the initialConfig
didn't allowed that.
This is also the ExtJS like way to set defaults.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoFileSelector: adapt combogrid total and column width
Thomas Lamprecht [Tue, 25 Jul 2017 14:26:56 +0000 (16:26 +0200)]
FileSelector: adapt combogrid total and column width

By default the "Size" column ellipsed a lot entries, which is just
annoying. Adapt it so that all sizes can be viewed comfortably.

Further increase the total width of this combogrid, a lot less could
be seen there since theme change from the 4.X era.
Use an new empirical found out good  working value.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agowhitespace cleanup
Dominik Csapak [Wed, 26 Jul 2017 09:11:53 +0000 (11:11 +0200)]
whitespace cleanup

and intendation fix

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agopveceph: add createmgr/destroymgr commands
Dominik Csapak [Wed, 26 Jul 2017 09:11:52 +0000 (11:11 +0200)]
pveceph: add createmgr/destroymgr commands

this patch adds the create-/destroymgr commands to the api and pveceph,
so that advanced users can split monitor and manager daemons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agopveceph: create mgr with mon, use nodename for id
Dominik Csapak [Wed, 26 Jul 2017 09:11:51 +0000 (11:11 +0200)]
pveceph: create mgr with mon, use nodename for id

we now want to add a ceph-mgr daemon to every node where a ceph-mon
daemon runs, as per ceph documentation recommendation, because in
luminous the mgr daemons will not be automatically created/started
with a monitor anymore

we also give the createmon an optional id parameter, so that one
can set a custom id, and make the creation/removal of the manager
optional but the default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoImprove a bit the esthetics of the User Settings window
Emmanuel Kasper [Thu, 6 Jul 2017 12:01:31 +0000 (14:01 +0200)]
Improve a bit the esthetics of the User Settings window

 * group the action buttons on the left, to distinguish them from the modal
 'close' button
 * display the action buttons as grey instead of blue, to be consistent
 with the rest of the GUI

7 years agoRename the pve-help-button to pve-inline-button
Emmanuel Kasper [Thu, 6 Jul 2017 12:01:30 +0000 (14:01 +0200)]
Rename the pve-help-button to pve-inline-button

This will allow reuse of the class for other inlined buttons

7 years agoClose #1268: Show migration start server and migration end server
Emmanuel Kasper [Thu, 6 Jul 2017 12:01:29 +0000 (14:01 +0200)]
Close #1268: Show migration start server and migration end server

7 years agoDo not display the abbreviated commit SHA-1 in the workspace version string
Emmanuel Kasper [Thu, 6 Jul 2017 12:01:28 +0000 (14:01 +0200)]
Do not display the abbreviated commit SHA-1 in the workspace version string

This string is ugly and unfit for human consumption for 99% of our users.
The same information is available in a number of place in the GUI via Node
Summary, Package Versions, Subscription (Report)

7 years agobump version to 5.0-25
Wolfgang Bumiller [Mon, 24 Jul 2017 14:17:16 +0000 (16:17 +0200)]
bump version to 5.0-25

7 years agoadapt the health message list to luminous
Dominik Csapak [Thu, 20 Jul 2017 14:16:14 +0000 (16:16 +0200)]
adapt the health message list to luminous

they restructured the json structure, so we have to adapt to it.
additionally, we now have a 'detail' property for the messages
which we show on a click of the 'info' button in the new actioncolumn

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadapt ceph status detail to luminous and make it more robust
Dominik Csapak [Thu, 20 Jul 2017 14:16:13 +0000 (16:16 +0200)]
adapt ceph status detail to luminous and make it more robust

they restructured the json interface
(e.g. they removed the timechecks from ceph status)

so we have to generate those differently

also make the whole thing more robust to changes,
as in do not bail out if one thing is missing, but check the needed
data only when we need it and omit that part

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agorename 'monitors' to 'states' in pg list
Dominik Csapak [Thu, 20 Jul 2017 14:16:12 +0000 (16:16 +0200)]
rename 'monitors' to 'states' in pg list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadapt render_ceph_health for luminous
Dominik Csapak [Thu, 20 Jul 2017 14:16:11 +0000 (16:16 +0200)]
adapt render_ceph_health for luminous

it is using 'status' instead of 'overall_health' now

also only give the health object now

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd health detail to ceph status api call
Dominik Csapak [Thu, 20 Jul 2017 14:16:10 +0000 (16:16 +0200)]
add health detail to ceph status api call

with ceph 12.1.1 luminous, ceph has reorganized its json
interface of the ceph status and ceph health call

so to get everything we need, we have to also get
the ceph health detail information into our
status call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoceph: end ceph.list with a newline
Wolfgang Bumiller [Mon, 3 Jul 2017 09:10:01 +0000 (11:10 +0200)]
ceph: end ceph.list with a newline

7 years agobump version to 5.0-24
Wolfgang Bumiller [Wed, 19 Jul 2017 10:49:31 +0000 (12:49 +0200)]
bump version to 5.0-24