]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
6 years agoceph: disable OSD unit in destroyosd
Fabian Grünbichler [Tue, 10 Oct 2017 09:54:54 +0000 (11:54 +0200)]
ceph: disable OSD unit in destroyosd

while OSDs units should only be runtime enable and disappear on reboots,
this serves as an additional safeguard to ensure no leftover units can
exist.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoceph: correctly parse 'pg dump' output
Fabian Grünbichler [Tue, 10 Oct 2017 10:03:35 +0000 (12:03 +0200)]
ceph: correctly parse 'pg dump' output

Reported-By: Waschbüsch IT-Services GmbH <service@waschbuesch.it>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agofix #1516: fix mouse-scrolling of overflowhandlers in firefox
Dominik Csapak [Wed, 4 Oct 2017 08:04:27 +0000 (10:04 +0200)]
fix #1516: fix mouse-scrolling of overflowhandlers in firefox

this is a workaround for scrolling in toolbars, etc. in firefox with the
mouse

while the result is not very "pretty", it maintains the old behaviour
for all other browsers and makes it work in firefox

we can drop this when we update to a new extjs release

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agodoc: spice-example-sh: support special characters in passwords
Wolfgang Bumiller [Mon, 25 Sep 2017 08:56:03 +0000 (10:56 +0200)]
doc: spice-example-sh: support special characters in passwords

6 years agodoc: spice-example-sh: fix ticket/csrf extraction
Wolfgang Bumiller [Mon, 25 Sep 2017 08:56:02 +0000 (10:56 +0200)]
doc: spice-example-sh: fix ticket/csrf extraction

We extract them from the json data by first deleting all
quotes, then deleting everything up to their entries, then
everything after the next comma. If the entry is at the end
there's no comma, instead there are closing braces, so we
need to strip away these as well.

6 years agodoc: spice-example-sh: add quotes everywhere
Wolfgang Bumiller [Mon, 25 Sep 2017 08:56:01 +0000 (10:56 +0200)]
doc: spice-example-sh: add quotes everywhere

6 years agobuild: reformat debian/control
Fabian Grünbichler [Wed, 4 Oct 2017 09:05:32 +0000 (11:05 +0200)]
build: reformat debian/control

using wrap-and-sort -abt

6 years agofix #1510: do not scroll back to focus when view gets refreshed
Dominik Csapak [Fri, 29 Sep 2017 10:51:17 +0000 (12:51 +0200)]
fix #1510: do not scroll back to focus when view gets refreshed

this adds a workaround, so that we restore the scroll position
when we restore the focus

with the flag 'jumpToFocus', we can enable the old behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoPVE/API2/Subscription.pm - use new PVE::Subcription class
Dietmar Maurer [Tue, 3 Oct 2017 10:54:29 +0000 (12:54 +0200)]
PVE/API2/Subscription.pm - use new PVE::Subcription class

6 years agoSubscription.js - use enableTextSelection instead of 'selectable' feature
Dietmar Maurer [Wed, 27 Sep 2017 15:21:00 +0000 (17:21 +0200)]
Subscription.js - use enableTextSelection instead of 'selectable' feature

The 'selectable' feature does not work anymore.

6 years agoClean up unnecessary code.
Wolfgang Link [Tue, 19 Sep 2017 10:01:15 +0000 (12:01 +0200)]
Clean up unnecessary code.

The jobid is already parsed by the file parser.

6 years agoremove obsolete Posix use clause
Thomas Lamprecht [Mon, 25 Sep 2017 12:39:43 +0000 (14:39 +0200)]
remove obsolete Posix use clause

besides the cleanup purpose this fixes an actual problem, perls POSIX
module has the following caveat:

`Everything is exported by default (with a handful of exceptions).
This is an unfortunate backwards compatibility feature and its use is
strongly discouraged. You should either prevent the exporting (by
saying "use POSIX ();", as usual) and then use fully qualified names
(e.g.  "POSIX::SEEK_END"), or give an explicit import list. If you do
neither and opt for the default (as in "use POSIX;"), you will import
hundreds and hundreds of symbols into your namespace.'

see `perldoc POSIX`

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowindow.Wizard: increase default size
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:27 +0000 (14:20 +0200)]
window.Wizard: increase default size

The current size was choosen with the older, more compact, classic
theme. The Crisp theme, now in use, has a bit more spaces and bigger
font sizes to adapt to the increased pixel density of current
displays.
Increase the size a bit (~13%) but try to keep the aspect ratio.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoPVE.qemu.OSTypeEdit: declare static
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:26 +0000 (14:20 +0200)]
PVE.qemu.OSTypeEdit: declare static

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowizard: merge CD/DVD and OS panels
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:25 +0000 (14:20 +0200)]
wizard: merge CD/DVD and OS panels

We had a single column for the CD/DVD panel, fill the second column
with the now in size reduced OS type selector, as ISO selection and
OS type selection are tied together.

Reduces steps needed for creating a VM.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoOSType edit: switch to combobox
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:24 +0000 (14:20 +0200)]
OSType edit: switch to combobox

Move from the radiogroup to two comboboxes, where the base OS and
then a specific Version can be choosen.

Avoids multiple occurences of strings like "Microsoft Windows" and
saves a lot of space - which will be used to merge this panel with
the ISO selector panel in the create wizard.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agokvm_ostype: move to store-like format
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:23 +0000 (14:20 +0200)]
kvm_ostype: move to store-like format

move from the key => value format to one where all versions from a
base OS type can be directly used as data for a store.

We will rely on this in the next patch to allow a easy transition to
combobox UI for the OS type selector.

We also avoid having the base type multiple times.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agorefactor OSDefaults, OSTypeEdit: add and use getDefaults
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:22 +0000 (14:20 +0200)]
refactor OSDefaults, OSTypeEdit: add and use getDefaults

encapuslation wise it makes sense to have a helper which assembles a
os specific setting object in the OSDefaults class, where those
settings are defined.

Else we always need to check if the current OSType on the user side
of this class, which is against encapsulation.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: reuse ResourceStores default handling for guest description
Thomas Lamprecht [Thu, 21 Sep 2017 09:03:26 +0000 (11:03 +0200)]
ui: reuse ResourceStores default handling for guest description

First, there was an additional space between "'" and ")" which lead
me to this.
I could never trigger the case where vmname is undefined, and saw
that we have a almost same default handling in data/ResourceStore.js

So, just use that one instead here - it misses the single-quotes
inside the parentheses, but as there are already said parentheses
this is visually still very OK, IMO.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse log method from base VZDump::Plugin
Thomas Lamprecht [Wed, 13 Sep 2017 08:30:15 +0000 (10:30 +0200)]
use log method from base VZDump::Plugin

we copied our log method over there to resolve a cyclic dependency,
now use it here to reduce code duplication.
As we are below pve-guest-common in the dpendency hierachy we may use
it, but it does not may (or at least should) use us.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoVM.Snapshot.Rollback privilege added
Matthias Urban [Wed, 13 Sep 2017 10:30:34 +0000 (12:30 +0200)]
VM.Snapshot.Rollback privilege added

VM.Snapshot.Rollback privilege added

Signed-off-by: Matthias Urban <matthias.urban@pure-systems.com>
6 years agovzdump/pigz: use ProcFSTools for core count, not sysconf
Thomas Lamprecht [Wed, 13 Sep 2017 09:10:57 +0000 (11:10 +0200)]
vzdump/pigz: use ProcFSTools for core count, not sysconf

A "sysconf(84)" is not really descripitve. There is no POSIX const
entry for _SC_NPROCESSORS_ONLN (number of processors online) as its
not standard but an adoption of glibc.
Better just use our proven ProcFSTool's cpuinfo method for getting
the desired information.

This is kept only for backwards compatibillity as we guaranteed that
we use #cpus/2 if 'pigz' is set to 1, else I would have removed this
alltogether and just directly passed 'pigz' to the command...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 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

6 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.

6 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.

6 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

6 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.

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

6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>