3936 Commits

Author SHA1 Message Date
Thomas Lamprecht
b232ec631c ui: ceph install: fixup gettext string
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-12 09:53:07 +01:00
Herman van Rink
dc2326dfeb Remove typo from vzdump.conf 2019-03-11 14:11:53 +01:00
Tim Marx
e7a896827e 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>
2019-03-08 12:33:31 +01:00
Tim Marx
4ec2e5cf9b add cmd parameter & rework query string creation
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2019-03-08 12:30:11 +01:00
Tim Marx
798f377656 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>
2019-03-08 12:29:49 +01:00
Dominik Csapak
43f1b31f22 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>
2019-03-06 10:24:25 +01:00
Dominik Csapak
35efe4f1ca 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>
2019-03-05 14:25:33 +01:00
Tim Marx
0948b8a474 add pveceph install to shell api
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-28 13:21:21 +01:00
Thomas Lamprecht
e663e7fdeb followup: fix whitespace error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-28 13:05:46 +01:00
Tim Marx
d42ae6eca3 deprecate old upgrade property
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-02-28 13:04:23 +01:00
Thomas Lamprecht
aac24dfb4c api/nodes: fix variable name style: s/cmdMapper/shell_cmd_map/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-28 13:04:10 +01:00
Tim Marx
660eca0fce 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>
2019-02-28 11:32:18 +01:00
Thomas Lamprecht
dd96201865 trailing whitespace fix in Nodes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-27 13:39:32 +01:00
Stoiko Ivanov
ed2de9ae75 remove read_proxy_conf from PVE::API2Tools
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-02-26 07:32:22 +01:00
Stoiko Ivanov
3fd29055e6 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>
2019-02-26 07:32:22 +01:00
Stoiko Ivanov
56d156ac1c remove default values from pveproxy ssl config
they are in PVE::APIServer::AnyEvent

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-02-26 07:32:22 +01:00
Thomas Lamprecht
f28ca40777 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>
2019-02-26 07:23:18 +01:00
Dominik Csapak
49d8d1c682 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>
2019-02-21 11:58:14 +01:00
Thomas Lamprecht
2a4245a822 ui: qemu/cddrive: increase width for better ux
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-21 11:14:16 +01:00
Thomas Lamprecht
d4907f84eb bump version to 5.3-11
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-20 19:42:28 +01:00
Thomas Lamprecht
324649dde6 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]: c838a0096d

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-20 19:25:16 +01:00
Thomas Lamprecht
d40da507ce bump version to 5.3-10
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-20 12:29:34 +01:00
Thomas Lamprecht
e48a9e9234 d/control: bump version dependency to pve-doc-generator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-20 12:29:21 +01:00
Christian Ebner
3fa3cc5640 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>
2019-02-20 12:12:07 +01:00
Stoiko Ivanov
cc43f1450a 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>
2019-02-20 07:15:38 +01:00
Stoiko Ivanov
217ca764cb 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>
2019-02-20 07:15:38 +01:00
Stoiko Ivanov
8524b4931d 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>
2019-02-20 07:15:38 +01:00
Stoiko Ivanov
212edee6d0 fix typo in comment (ssl-config)
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-02-19 17:17:17 +01:00
Oguz Bektas
7da2acfee3 add symbol for suspended guests
use the same symbol as 'paused' guests to avoid confusion.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-02-19 14:12:06 +01:00
Dominik Csapak
a857ed265e 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>
2019-02-19 12:08:23 +01:00
Dominik Csapak
204b40a2a8 BulkAction.js: fixup indentation
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-02-19 12:08:23 +01:00
Oguz Bektas
b622db6d1b 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>
2019-02-19 11:53:15 +01:00
Oguz Bektas
c9af680ef3 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>
2019-02-19 11:53:15 +01:00
Oguz Bektas
e091b3e503 unprivileged:true by default in restore window
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-02-19 11:52:22 +01:00
Oguz Bektas
695824c9c7 unprivileged:true by default in ct creation
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-02-19 11:52:16 +01:00
Oguz Bektas
27a700291e 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>
2019-02-19 11:46:17 +01:00
Thomas Lamprecht
2275173ce5 minor typo fix and code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-08 15:26:44 +01:00
Alwin Antreich
074266c1ec 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>
2019-02-08 15:26:00 +01:00
Thomas Lamprecht
a245594b58 follouwp: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-08 15:26:00 +01:00
Alwin Antreich
6726d4f875 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>
2019-02-08 14:20:23 +01:00
Dominik Csapak
49233a2a3a gui: show Storage Content with Datastore.AllocateSpace/Audit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-02-06 11:35:13 +01:00
Thomas Lamprecht
ba817b29ef bump version to 5.3-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-01 13:40:39 +01:00
Thomas Lamprecht
a1c9740124 fixup: s/Filter: /Search/ which is already translated
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-01 09:28:29 +01:00
Christian Ebner
850441644a 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>
2019-02-01 09:03:00 +01:00
Thomas Lamprecht
f5c6df4537 pveperf: print errno on die if sensible
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-31 13:50:37 +01:00
Thomas Lamprecht
4f8f519fbb 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>
2019-01-31 12:05:01 +01:00
Thomas Lamprecht
2faa769857 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>
2019-01-31 12:02:55 +01:00
Thomas Lamprecht
8b4162f03e pveperf: use fsync syscall from PVE::Tools
allows to drop the libfile-sync-perl dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-31 11:44:15 +01:00
Dominik Csapak
ac869a6b26 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>
2019-01-31 11:05:55 +01:00
Dominik Csapak
16ce97290d 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>
2019-01-31 11:05:55 +01:00