]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
5 years agoui: ceph installer: set initial tab depending on current state
Tim Marx [Mon, 1 Apr 2019 11:31:24 +0000 (13:31 +0200)]
ui: ceph installer: set initial tab depending on current state

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agoui: ct/vm: add tooltip to hibernate and stop button
Thomas Lamprecht [Sat, 30 Mar 2019 14:21:12 +0000 (15:21 +0100)]
ui: ct/vm: add tooltip to hibernate and stop button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agogui: show Resume button if suspended
Dominik Csapak [Fri, 29 Mar 2019 09:44:36 +0000 (10:44 +0100)]
gui: show Resume button if suspended

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: add Hibernate/Pause to CmdMenu/Shutdown Menu
Dominik Csapak [Fri, 29 Mar 2019 09:44:35 +0000 (10:44 +0100)]
gui: add Hibernate/Pause to CmdMenu/Shutdown Menu

and have it in order of impact on the guest
(pause, hibernate, poweroff, stop)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: CmdMenu: rename suspend to paus
Dominik Csapak [Fri, 29 Mar 2019 09:44:34 +0000 (10:44 +0100)]
gui: CmdMenu: rename suspend to paus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: CmdMenu: hide the start and suspend button conditionally
Dominik Csapak [Fri, 29 Mar 2019 09:44:33 +0000 (10:44 +0100)]
gui: CmdMenu: hide the start and suspend button conditionally

only to disable them wastes space for no reason and might confuse users

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofixup trailing whitespaces
Thomas Lamprecht [Fri, 29 Mar 2019 12:12:11 +0000 (13:12 +0100)]
fixup trailing whitespaces

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: ceph install: remove advanced option pg_bits
Tim Marx [Fri, 29 Mar 2019 11:42:44 +0000 (12:42 +0100)]
ui: ceph install: remove advanced option pg_bits

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agoui: ceph: differentiate between install & configure only
Tim Marx [Fri, 29 Mar 2019 11:42:43 +0000 (12:42 +0100)]
ui: ceph: differentiate between install & configure only

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agofollowup: remove unnecessary references
Thomas Lamprecht [Thu, 28 Mar 2019 16:53:28 +0000 (17:53 +0100)]
followup: remove unnecessary references

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix schema error: do not submit efidisk checkbox value
Thomas Lamprecht [Thu, 28 Mar 2019 16:51:47 +0000 (17:51 +0100)]
fix schema error: do not submit efidisk checkbox value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agogui: qemu/HardwareView: add machine to HardwareView
Dominik Csapak [Thu, 28 Mar 2019 15:25:11 +0000 (16:25 +0100)]
gui: qemu/HardwareView: add machine to HardwareView

so the user can edit this via the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: qemu/HardwareView: move scsihw and bios to HardwareView
Dominik Csapak [Thu, 28 Mar 2019 15:25:10 +0000 (16:25 +0100)]
gui: qemu/HardwareView: move scsihw and bios to HardwareView

it is guest hardware and not really an option, and we have it now
in the wizard, so it makes sense to have it here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: qemu/HardwareView: remove Keyboard setting
Dominik Csapak [Thu, 28 Mar 2019 15:25:09 +0000 (16:25 +0100)]
gui: qemu/HardwareView: remove Keyboard setting

this is deprecated and should not be necessary anymore, since
qemu and novnc can handle this better if no keyboard layout is set

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: qemu/HardwareView: add space between groups
Dominik Csapak [Thu, 28 Mar 2019 15:25:08 +0000 (16:25 +0100)]
gui: qemu/HardwareView: add space between groups

so that we can add items between them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: add system panel to the vm creation wizard
Dominik Csapak [Thu, 28 Mar 2019 15:25:07 +0000 (16:25 +0100)]
gui: add system panel to the vm creation wizard

for this we have to adapt the scsiController logic slightly, so that
the ostype change sets the viewmodel, which in turn changes the
bound fields (one one the system tab, and the displayfield on the hd tab)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: add qemu/SystemEdit
Dominik Csapak [Thu, 28 Mar 2019 15:25:06 +0000 (16:25 +0100)]
gui: add qemu/SystemEdit

contains the inputpanel for the coming system tab in the vm creation
wizard, where the user can configure the vm system hardware like
the scsi controller, display, etc.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: DiskStorageSelector: implement disabling
Dominik Csapak [Thu, 28 Mar 2019 15:25:05 +0000 (16:25 +0100)]
gui: DiskStorageSelector: implement disabling

this patch implements disabling for the DiskStorageSelector, which
resets the storage and triggers a validity change

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: qemu/HardwareView: prepare Hardwareview for font-awesome icons
Dominik Csapak [Thu, 28 Mar 2019 15:25:04 +0000 (16:25 +0100)]
gui: qemu/HardwareView: prepare Hardwareview for font-awesome icons

we want to be able to use fontawesome icons directly instead of having
to use extracted png in css classes

this patch makes it possible to use 'iconCls' with the font-awesome icon name

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoceph install/config: add hint for additional monitors
Thomas Lamprecht [Thu, 28 Mar 2019 16:00:32 +0000 (17:00 +0100)]
ceph install/config: add hint for additional monitors

this info was already here in the heading once, add it as pve-hint
styled display field at the bottom.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoceph install/config: remove node displayfield
Thomas Lamprecht [Thu, 28 Mar 2019 15:59:00 +0000 (16:59 +0100)]
ceph install/config: remove node displayfield

does not brings real value here, one sees the selected node also
through the blur, and it shouldn't matter at this point, the cluster
config is for all nodes (using ceph) and the monitor has its own node
selector anyway, so do not cloud user interface to much.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofixup: ceph: do not scream at user with html headings
Thomas Lamprecht [Thu, 28 Mar 2019 15:56:52 +0000 (16:56 +0100)]
fixup: ceph: do not scream at user with html headings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: ceph installer: mask configuration if not needed & add monitor
Tim Marx [Thu, 28 Mar 2019 11:16:04 +0000 (12:16 +0100)]
ui: ceph installer: mask configuration if not needed & add monitor

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agofixup: remove allowBlank and ensure interworking of size is correct
Thomas Lamprecht [Thu, 28 Mar 2019 15:16:03 +0000 (16:16 +0100)]
fixup: remove allowBlank and ensure interworking of size is correct

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: ceph installer: make replicas & minreplicas fields dependent
Tim Marx [Thu, 28 Mar 2019 11:16:03 +0000 (12:16 +0100)]
ui: ceph installer: make replicas & minreplicas fields dependent

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agoui: ceph installer: adapt wording of further instructions
Tim Marx [Thu, 28 Mar 2019 11:16:05 +0000 (12:16 +0100)]
ui: ceph installer: adapt wording of further instructions

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agoapi: ceph: ensure calls get proxied to correct node
Tim Marx [Thu, 28 Mar 2019 11:16:06 +0000 (12:16 +0100)]
api: ceph: ensure calls get proxied to correct node

 If calls aren't proxied to the selected node, which seems legit in
 some cases, this will cause some misleading errors while ceph is
 not installed on that node. Therefor the calls should now always get
 proxied.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agoadd 'pvs' to pvereport
Oguz Bektas [Thu, 28 Mar 2019 13:02:20 +0000 (14:02 +0100)]
add 'pvs' to pvereport

get information about physical volumes

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
5 years agopveceph install: be a bit more verbose
Thomas Lamprecht [Thu, 28 Mar 2019 12:23:42 +0000 (13:23 +0100)]
pveceph install: be a bit more verbose

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd tooltips to the tree
Dominik Csapak [Tue, 26 Mar 2019 07:11:25 +0000 (08:11 +0100)]
add tooltips to the tree

to give the user better feedback about the various icons (play, pause,
warning, error, etc) add a tooltip to the tree elements which
contain that information

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agouse localhost instead of 127.0.0.1 to listen with spiceterm
Dominik Csapak [Mon, 25 Mar 2019 11:53:43 +0000 (12:53 +0100)]
use localhost instead of 127.0.0.1 to listen with spiceterm

that is the name we use to connect from spiceproxy and can be either
ipv4 or ipv6

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoapi/ceph: allow default value for service start/stop
Thomas Lamprecht [Mon, 25 Mar 2019 12:33:05 +0000 (13:33 +0100)]
api/ceph: allow default value for service start/stop

it's a bit strange that one cannot pass the default value explicitly,
helpfull when calling this API path through the CLI envrionment,
which currently cannot have optional fixed-positioned default values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoallow deletion of mac prefix
Dominik Csapak [Fri, 22 Mar 2019 12:49:52 +0000 (13:49 +0100)]
allow deletion of mac prefix

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: show lock in status bar of vms/cts
Dominik Csapak [Thu, 21 Mar 2019 09:55:20 +0000 (10:55 +0100)]
gui: show lock in status bar of vms/cts

also add 'tbarSpacing' parameter to ConfigPanel, that controls
the spacing after the title

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoui: ceph install: do not translate replicas
Thomas Lamprecht [Wed, 20 Mar 2019 09:42:22 +0000 (10:42 +0100)]
ui: ceph install: do not translate replicas

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofollowup: move to advanced column
Thomas Lamprecht [Wed, 20 Mar 2019 08:58:02 +0000 (09:58 +0100)]
followup: move to advanced column

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix: # 2123 Logging of user defined firewall rules
Christian Ebner [Tue, 19 Mar 2019 16:16:22 +0000 (17:16 +0100)]
fix: # 2123 Logging of user defined firewall rules

This patch relies on the corresponding patch to pve-firewall, adding the user
defined log levels for firewall rules.

By this, the user can select a per-rule log level for self defined rules. These
are independent of the global log level, which is defined in the firewall options.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agoapi/apt: remove unused variable
Thomas Lamprecht [Tue, 19 Mar 2019 09:47:36 +0000 (10:47 +0100)]
api/apt: remove unused variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agod/control: bump libpve-access-control version dependency
Thomas Lamprecht [Mon, 18 Mar 2019 11:25:26 +0000 (12:25 +0100)]
d/control: bump libpve-access-control version dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopvestatd: rotate auth keys if necessary
Fabian Grünbichler [Wed, 13 Mar 2019 14:01:34 +0000 (15:01 +0100)]
pvestatd: rotate auth keys if necessary

as a fallback to ensure rotation even if no logins happen on a given
cluster.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agocheck for ceph inited at status api
Tim Marx [Fri, 15 Mar 2019 09:52:02 +0000 (10:52 +0100)]
check for ceph inited at status api

As this is now the default behavior in all other ceph api endpoints,
I adapted the status api correspondingly.

We also pass our ceph configuration file directly when connecting to
RADOS, so a /etc/ceph/ceph.conf isn't necessarily required to
indicate a fully setup and enabled PVE-ceph environment.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #2132: gui: set vcpu default maxValue to 1
Dominik Csapak [Fri, 15 Mar 2019 09:59:10 +0000 (10:59 +0100)]
fix #2132: gui: set vcpu default maxValue to 1

else one can set it to higher values if the vm has one socket with one core

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agopvereport: ensure IPv6 and IPv4 route info is included
Thomas Lamprecht [Wed, 13 Mar 2019 13:59:35 +0000 (14:59 +0100)]
pvereport: ensure IPv6 and IPv4 route info is included

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reported-by: Mira Limbeck <m.limbeck@proxmox.com>
5 years agopvereport: add cluster resources node information
Thomas Lamprecht [Fri, 8 Mar 2019 09:20:56 +0000 (10:20 +0100)]
pvereport: add cluster resources node information

gives a good overview over the cluster, which nodes are online,
memory/cpu load, uptime...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopvereport: add ip route information
Thomas Lamprecht [Fri, 8 Mar 2019 09:19:42 +0000 (10:19 +0100)]
pvereport: add ip route information

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd host firewall config to pvereport
Tim Marx [Wed, 13 Mar 2019 12:15:02 +0000 (13:15 +0100)]
add host firewall config to pvereport

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years ago1145 Warn if datacenter firewall is disabled
Christian Ebner [Wed, 13 Mar 2019 08:57:31 +0000 (09:57 +0100)]
1145 Warn if datacenter firewall is disabled

This warns the user that the datacenter firewall is disabled when editing the
host or the VM/CT firewall status.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agobump version to 5.3-12
Thomas Lamprecht [Tue, 12 Mar 2019 11:38:04 +0000 (12:38 +0100)]
bump version to 5.3-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: ceph install: fixup configuration network fields
Thomas Lamprecht [Tue, 12 Mar 2019 10:45:27 +0000 (11:45 +0100)]
ui: ceph install: fixup configuration network fields

It's not only 'IPv4/CIDR' but 'IP/CIDR', IPv6 works too so generalize
this.
Also make the cluster network emptytext a bit more expressive.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadapt ceph installer texts
Tim Marx [Tue, 12 Mar 2019 08:53:21 +0000 (09:53 +0100)]
adapt ceph installer texts

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agoui: ceph install: fixup gettext string
Thomas Lamprecht [Tue, 12 Mar 2019 08:53:07 +0000 (09:53 +0100)]
ui: ceph install: fixup gettext string

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoRemove typo from vzdump.conf
Herman van Rink [Mon, 11 Mar 2019 10:20:59 +0000 (11:20 +0100)]
Remove typo from vzdump.conf

5 years agoadded basic ability to install ceph via gui
Tim Marx [Wed, 6 Mar 2019 11:29:40 +0000 (12:29 +0100)]
added basic ability to install ceph via gui

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd cmd parameter & rework query string creation
Tim Marx [Wed, 6 Mar 2019 11:29:39 +0000 (12:29 +0100)]
add cmd parameter & rework query string creation

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadded new parameter to pass a command to the newly opened terminal
Tim Marx [Wed, 6 Mar 2019 11:29:38 +0000 (12:29 +0100)]
added new parameter to pass a command to the newly opened terminal

Ext.urlEncode is deprecated, use Ext.Object.toQueryString instead

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofix #2122: use correct format in help text of timefield
Dominik Csapak [Wed, 6 Mar 2019 08:59:23 +0000 (09:59 +0100)]
fix #2122: use correct format in help text of timefield

this is shown on mouseover and read by textreaders

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd subscription panel on dc summary
Dominik Csapak [Fri, 1 Mar 2019 13:27:49 +0000 (14:27 +0100)]
add subscription panel on dc summary

So that the users have a good and fast feedback about ther
support and subscripttion status, especially if they have
mistakenly different levels of susbscriptions in their cluster.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd pveceph install to shell api
Tim Marx [Wed, 27 Feb 2019 14:01:20 +0000 (15:01 +0100)]
add pveceph install to shell api

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofollowup: fix whitespace error
Thomas Lamprecht [Thu, 28 Feb 2019 12:05:46 +0000 (13:05 +0100)]
followup: fix whitespace error

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agodeprecate old upgrade property
Tim Marx [Wed, 27 Feb 2019 14:01:19 +0000 (15:01 +0100)]
deprecate old upgrade property

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agoapi/nodes: fix variable name style: s/cmdMapper/shell_cmd_map/
Thomas Lamprecht [Thu, 28 Feb 2019 12:04:10 +0000 (13:04 +0100)]
api/nodes: fix variable name style: s/cmdMapper/shell_cmd_map/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agounified the classification of the passed command for all shell apis
Tim Marx [Wed, 27 Feb 2019 14:01:16 +0000 (15:01 +0100)]
unified the classification of the passed command for all shell apis

As discussed on the pve-devel list [0] I extracted the identical chunks from each
shell api into one function as basis for future changes.

[0] https://pve.proxmox.com/pipermail/pve-devel/2019-January/035387.html

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agotrailing whitespace fix in Nodes
Thomas Lamprecht [Wed, 27 Feb 2019 12:39:32 +0000 (13:39 +0100)]
trailing whitespace fix in Nodes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoremove read_proxy_conf from PVE::API2Tools
Stoiko Ivanov [Fri, 22 Feb 2019 18:52:05 +0000 (19:52 +0100)]
remove read_proxy_conf from PVE::API2Tools

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agopveproxy, spiceproxy: new read_proxy_conf location
Stoiko Ivanov [Fri, 22 Feb 2019 18:52:04 +0000 (19:52 +0100)]
pveproxy, spiceproxy: new read_proxy_conf location

read_proxy_conf was moved to the new PVE::ApiServer::Utils so that it
can be reused by other apiservers (e.g., PMG one). Use that one, so
that we can remove it here later

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoremove default values from pveproxy ssl config
Stoiko Ivanov [Fri, 22 Feb 2019 18:52:03 +0000 (19:52 +0100)]
remove default values from pveproxy ssl config

they are in PVE::APIServer::AnyEvent

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agod/control: bump libpve-http-server-perl version dependency
Thomas Lamprecht [Tue, 26 Feb 2019 06:21:43 +0000 (07:21 +0100)]
d/control: bump libpve-http-server-perl version dependency

In preperance for the next two commits, which use the (moved)
PVE::ApiServer::Utils module and rely on the fact that
pve-http-server now set some ssl defaults itself.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix popup behaviour in firefox with touchscreens on desktop
Dominik Csapak [Thu, 21 Feb 2019 10:34:25 +0000 (11:34 +0100)]
fix popup behaviour in firefox with touchscreens on desktop

when the popup blocker is active, nw is undefined and nw.focus() throws an
error and the touchend event is not finished, causing extjs to retry the
touchevent and click handler, which tries to open a popup which gets blocked
here, and so on

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoui: qemu/cddrive: increase width for better ux
Thomas Lamprecht [Thu, 21 Feb 2019 10:14:16 +0000 (11:14 +0100)]
ui: qemu/cddrive: increase width for better ux

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 5.3-11
Thomas Lamprecht [Wed, 20 Feb 2019 18:40:06 +0000 (19:40 +0100)]
bump version to 5.3-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #2108: ceph: 'osd pools set' cannot accept integers anymore
Thomas Lamprecht [Wed, 20 Feb 2019 18:22:01 +0000 (19:22 +0100)]
fix #2108: ceph: 'osd pools set' cannot accept integers anymore

The new luminous release 12.2.11 cherry-picked a commit[0] which
remove some legacy fallback when parsing a pool set command.
As of now only strings (which itself can then be a string, int or
float) may be passed as a value, while older also accepted an int
directly.

So ensure that all of our "osd pool set" commands pass strings, which
means that 'min_size' and 'size' must be converted to strings before
executing the command.

Without this one cannot create a CephFS over the WebUI anymore as the
create pools fails. Interestingly, the normal create pools over WebUI
still worked, as it has those two parameters exposed in the creation
formular, and thus sents them as string to the backend, while the
cephfs API does not exposes those two values at all but sets them
directly to integers. Funny stuff. CLI invocations also had the same
issue, depending on the fact if size and min_size could and got
passed (then it worked) or where omited (then it did not worked).

[0]: https://github.com/ceph/ceph/commit/c838a0096d98d461f83c79c3acdc0ee69464e473

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 5.3-10
Thomas Lamprecht [Wed, 20 Feb 2019 11:29:34 +0000 (12:29 +0100)]
bump version to 5.3-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agod/control: bump version dependency to pve-doc-generator
Thomas Lamprecht [Wed, 20 Feb 2019 11:29:21 +0000 (12:29 +0100)]
d/control: bump version dependency to pve-doc-generator

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoFix 1891 Generate zsh tab completion scripts for cli tools
Christian Ebner [Wed, 20 Feb 2019 11:02:02 +0000 (12:02 +0100)]
Fix 1891 Generate zsh tab completion scripts for cli tools

This patch builds the  zsh tab completion scripts for the cli tools of
pve-manager.
In order for it to work, the latest version of pve-common and pve-docs
including the corresponding patches have to be installed on the build
system.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agopveproxy: honor_cipher_order by default
Stoiko Ivanov [Tue, 19 Feb 2019 18:18:44 +0000 (19:18 +0100)]
pveproxy: honor_cipher_order by default

change the default from client preference to server preference, but leave it
configurable.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agopveproxy: add configurable COMPRESSION
Stoiko Ivanov [Tue, 19 Feb 2019 18:18:43 +0000 (19:18 +0100)]
pveproxy: add configurable COMPRESSION

disabling http compression is considered good practice and certain TLS-testing
scripts/sites lower the security rating if it's enabled.

compression is still on by default for the potential speed/performance gain.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agopveproxy: add configurable HONOR_CIPHER_ORDER
Stoiko Ivanov [Tue, 19 Feb 2019 18:18:42 +0000 (19:18 +0100)]
pveproxy: add configurable HONOR_CIPHER_ORDER

fix #2069 (the report includes rationale and also information on test-cases).

Tested by:
* running testssl.sh [0]
* enabling this setting (our default cipherlist prefers AES256,
  chromium on stretch AES128)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agofix typo in comment (ssl-config)
Stoiko Ivanov [Fri, 15 Feb 2019 11:36:01 +0000 (12:36 +0100)]
fix typo in comment (ssl-config)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agoadd symbol for suspended guests
Oguz Bektas [Tue, 19 Feb 2019 11:00:35 +0000 (12:00 +0100)]
add symbol for suspended guests

use the same symbol as 'paused' guests to avoid confusion.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
5 years agojslint fixes
Dominik Csapak [Tue, 19 Feb 2019 11:00:50 +0000 (12:00 +0100)]
jslint fixes

type confusion: value is int and string
let is not recognized by our jslint version yet, so
use var for now

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoBulkAction.js: fixup indentation
Dominik Csapak [Tue, 19 Feb 2019 11:01:15 +0000 (12:01 +0100)]
BulkAction.js: fixup indentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd lxc restart warning to bulk migration screen
Oguz Bektas [Mon, 18 Feb 2019 12:40:27 +0000 (13:40 +0100)]
add lxc restart warning to bulk migration screen

only show warning in migration window and when a running lxc container
is chosen

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Co-Authored by: Dominik Csapak <d.csapak@proxmox.com>

5 years agofix #1769: restart mode for bulk lxc migration
Oguz Bektas [Mon, 18 Feb 2019 12:40:26 +0000 (13:40 +0100)]
fix #1769: restart mode for bulk lxc migration

online mode doesn't work, and causes bulk migration of
running lxc containers to fail.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
5 years agounprivileged:true by default in restore window
Oguz Bektas [Tue, 12 Feb 2019 14:02:08 +0000 (15:02 +0100)]
unprivileged:true by default in restore window

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
5 years agounprivileged:true by default in ct creation
Oguz Bektas [Tue, 12 Feb 2019 14:02:07 +0000 (15:02 +0100)]
unprivileged:true by default in ct creation

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
5 years agofix #2096: enable resume in context menu for guest triggered sleep
Oguz Bektas [Mon, 18 Feb 2019 14:52:05 +0000 (15:52 +0100)]
fix #2096: enable resume in context menu for guest triggered sleep

We act correctly for an outside triggered suspend, but if the guest
suspends itself from inside (e.g., systemctl suspend,
`echo "standby" > /sys/power/state` or windows sleep) it has another
state (suspended vs. paused), so handled that also

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
5 years agominor typo fix and code cleanups
Thomas Lamprecht [Fri, 8 Feb 2019 14:25:35 +0000 (15:25 +0100)]
minor typo fix and code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoapi osd/destroy: use ProcFSTools to iterate mounts
Alwin Antreich [Thu, 7 Feb 2019 15:29:42 +0000 (16:29 +0100)]
api osd/destroy: use ProcFSTools to iterate mounts

Instead of opening proc/mounts through IO::File directly for parsing,
the patch uses ProcFSTools. This way it also takes care of eventual
decoding.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
5 years agofollouwp: code cleanup
Thomas Lamprecht [Fri, 8 Feb 2019 14:25:03 +0000 (15:25 +0100)]
follouwp: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoFix #2051: preserve DB/WAL disk on destroy
Alwin Antreich [Thu, 7 Feb 2019 15:29:41 +0000 (16:29 +0100)]
Fix #2051: preserve DB/WAL disk on destroy

When destroying an OSD over API or CLI, e.g. by executing:

'pveceph osd destroy <num> --cleanup'

all disks associated with the OSD got wiped with dd, which included
any shared and by others still in use ones, e.g., separate disks with
DB/WAL.

The patch changes 'wipe_disks' to wipe the partition instead of the
whole disk.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agogui: show Storage Content with Datastore.AllocateSpace/Audit
Dominik Csapak [Wed, 6 Feb 2019 08:14:12 +0000 (09:14 +0100)]
gui: show Storage Content with Datastore.AllocateSpace/Audit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 5.3-9
Thomas Lamprecht [Fri, 1 Feb 2019 12:40:39 +0000 (13:40 +0100)]
bump version to 5.3-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofixup: s/Filter: /Search/ which is already translated
Thomas Lamprecht [Fri, 1 Feb 2019 08:28:29 +0000 (09:28 +0100)]
fixup: s/Filter: /Search/ which is already translated

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoFix #1831: Add filter to CT template/appliances download window
Christian Ebner [Thu, 31 Jan 2019 16:29:44 +0000 (17:29 +0100)]
Fix #1831: Add filter to CT template/appliances download window

This adds the posibility to filter CT template/appliances by package as well as
description in the CT template/appliances download window.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agopveperf: print errno on die if sensible
Thomas Lamprecht [Thu, 31 Jan 2019 12:49:45 +0000 (13:49 +0100)]
pveperf: print errno on die if sensible

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoremove various outdated or moved dependencies
Thomas Lamprecht [Wed, 30 Jan 2019 16:56:02 +0000 (17:56 +0100)]
remove various outdated or moved dependencies

some http/ssl based ones where for the now separate http-server,
while they got added there, they did not get removed here.

Some are not needed in manager, e.g., liblinux-inotify2-perl which is
used in pve-common

Some others are simply outdated, e.g. libauthen-pam-perl or
libhttp-daemon-perl

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoremove unused libxml-parser-perl dependency
Thomas Lamprecht [Wed, 30 Jan 2019 16:42:12 +0000 (17:42 +0100)]
remove unused libxml-parser-perl dependency

over from the time where corosync was still bnased on XML configs
(pre PVE 4.0). This was not used, and XML::Parser is not Export
based, so it does not pushes some methods into the using modules
namespace

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopveperf: use fsync syscall from PVE::Tools
Thomas Lamprecht [Wed, 30 Jan 2019 16:20:50 +0000 (17:20 +0100)]
pveperf: use fsync syscall from PVE::Tools

allows to drop the libfile-sync-perl dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoshow hookscript in gui
Dominik Csapak [Tue, 29 Jan 2019 15:28:46 +0000 (16:28 +0100)]
show hookscript in gui

only viewing, no editing
and show it only when it is set

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd snippets content type to the gui
Dominik Csapak [Tue, 29 Jan 2019 15:28:45 +0000 (16:28 +0100)]
add snippets content type to the gui

we only show that a storage can store snippets, but for now
we do not allow to set or upload them via the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>