]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
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>
5 years agocleanup: api/subscription: keep variable declarations closer to use
Thomas Lamprecht [Thu, 31 Jan 2019 09:54:50 +0000 (10:54 +0100)]
cleanup: api/subscription: keep variable declarations closer to use

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoapi/subscription: fix permission check
Dominik Csapak [Thu, 31 Jan 2019 09:14:24 +0000 (10:14 +0100)]
api/subscription: fix permission check

when using 'check_permissions' directly, we have to actually use the
nodename in the path, else we check the wrong permission and one
needed to have propagating 'Sys.Audit' permissions on '/nodes' for
this to work.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agod/control: remove netcat dependency
Dominik Csapak [Wed, 30 Jan 2019 16:11:56 +0000 (17:11 +0100)]
d/control: remove netcat dependency

we do not use it anymore, history of it goes back to the initial SVN
to git import.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoAdd context menu to global search entries
Christian Ebner [Tue, 29 Jan 2019 11:41:31 +0000 (12:41 +0100)]
Add context menu to global search entries

This add a context menu to the entries of the global search field instead of
showing the browsers default one.
This allows to search and easily manage nodes, VMs and CTs similar to the
behaviour in the resource tree.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agogui: add virtio-gpu and none to combobox
Dominik Csapak [Mon, 28 Jan 2019 10:04:30 +0000 (11:04 +0100)]
gui: add virtio-gpu and none to combobox

since 'virtio' is alredy used in that file for a number,
we have to add jslint confusion

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoAdd bash completion for wakeonlan API call
Christian Ebner [Mon, 28 Jan 2019 09:19:28 +0000 (10:19 +0100)]
Add bash completion for wakeonlan API call

This adds the bash completion for the wakeonlan API call.
The bash completion returns only those nodes which are offline according to the
member status.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agoAdd context menu entry for WoL calls to nodes in GUI
Christian Ebner [Fri, 25 Jan 2019 10:32:27 +0000 (11:32 +0100)]
Add context menu entry for WoL calls to nodes in GUI

This adds a context menu entry to the cluster nodes which triggers the wake on
LAN API call for the selected node.
The entry is disabled if the node is already running or the user has no
Sys.PowerMgmt capabilities.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agoupdate shipped aplinfo index: add debian updates
Thomas Lamprecht [Thu, 24 Jan 2019 15:00:21 +0000 (16:00 +0100)]
update shipped aplinfo index: add debian updates

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate shipped aplinfo index
Thomas Lamprecht [Thu, 24 Jan 2019 10:04:43 +0000 (11:04 +0100)]
update shipped aplinfo index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopvenode: use 'UNKNOWN' if task status is missing
Fabian Grünbichler [Wed, 23 Jan 2019 13:56:35 +0000 (14:56 +0100)]
pvenode: use 'UNKNOWN' if task status is missing

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agopvenode: don't treat running tasks as failed
Fabian Grünbichler [Wed, 23 Jan 2019 13:56:34 +0000 (14:56 +0100)]
pvenode: don't treat running tasks as failed

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agotask index: fix return schema annotations
Fabian Grünbichler [Wed, 23 Jan 2019 13:56:33 +0000 (14:56 +0100)]
task index: fix return schema annotations

both task sources use PVE::Tools::upid_decode, which ensures all of the
':' delimited fields are set.

this only leaves 'status' and 'endtime' as optional, which are not set
for currently running tasks.

reorder them in the code for easier matching with their on-disk format.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agotask index: allow filtering by task type
Fabian Grünbichler [Wed, 23 Jan 2019 13:56:32 +0000 (14:56 +0100)]
task index: allow filtering by task type

convenience filter if caller is only interested in certain actions

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agotask index: allow selection of task source(s)
Fabian Grünbichler [Wed, 23 Jan 2019 13:56:31 +0000 (14:56 +0100)]
task index: allow selection of task source(s)

otherwise there is no way to find out about (all) active tasks over the
API if their UPIDs were not recorded when the initial API calls happened.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agoapi/wakeonlan: add description to return schema
Thomas Lamprecht [Tue, 22 Jan 2019 11:18:26 +0000 (12:18 +0100)]
api/wakeonlan: add description to return schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agod/control: add libpve-common-perl as build dependency
Thomas Lamprecht [Tue, 22 Jan 2019 11:13:47 +0000 (12:13 +0100)]
d/control: add libpve-common-perl as build dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agod/control: bump version dependency for libpve-common-perl
Thomas Lamprecht [Tue, 22 Jan 2019 11:12:28 +0000 (12:12 +0100)]
d/control: bump version dependency for libpve-common-perl

to ensure that the new 'mac-addr' format is available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopvenode: Return MAC address used for WoL call on success
Christian Ebner [Tue, 22 Jan 2019 10:49:22 +0000 (11:49 +0100)]
pvenode: Return MAC address used for WoL call on success

Use the new format to verify the MAC addresses.
The wakeonlan API call now returns the MAC address of the node to wake on
successful sending of the WoL packet.
pvenode finally displays this MAC address to the user as feedback.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agorefactor format_content_types
Dominik Csapak [Mon, 21 Jan 2019 08:44:37 +0000 (09:44 +0100)]
refactor format_content_types

much shorter and more generic

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agowakeonlan: we cannot wake ourself
Thomas Lamprecht [Mon, 21 Jan 2019 15:49:34 +0000 (16:49 +0100)]
wakeonlan: we cannot wake ourself

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoNodes: Check if target node even exists before sending WOL packet
Christian Ebner [Fri, 18 Jan 2019 09:12:56 +0000 (10:12 +0100)]
Nodes: Check if target node even exists before sending WOL packet

Checks if the specified target node even exists before trying to read its MAC
address from the config and sending the wake on LAN magic packet.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agofix #2058: show correct pool for external ceph clusters
Dominik Csapak [Fri, 18 Jan 2019 13:09:28 +0000 (14:09 +0100)]
fix #2058: show correct pool for external ceph clusters

instead of having two inputfields and displayfields (where only one gets the
correct value), have two inputfileds but one displayfield when we need it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agopvenode: Add CLI call interface for wake on LAN
Christian Ebner [Thu, 17 Jan 2019 14:46:46 +0000 (15:46 +0100)]
pvenode: Add CLI call interface for wake on LAN

Adds a CLI call interface to pvenode which allows to wake sleeping nodes in a
cluster via a wake on LAN packet.

pvenode wakeonlan <node>

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agoimplement basic wake on LAN functionality
Christian Ebner [Thu, 17 Jan 2019 10:01:36 +0000 (11:01 +0100)]
implement basic wake on LAN functionality

Provides the basic functionality to provide a wake on LAN feature implementation
to start nodes in a cluster from other nodes.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agoNodeConfig: support patterns in check_type
Thomas Lamprecht [Wed, 16 Jan 2019 12:40:24 +0000 (13:40 +0100)]
NodeConfig: support patterns in check_type

Add pattern support for the check_type method used by the
parse_config method. It would be much better to integrate the missing
stuff into either the JSONSchema check_prop or parse_config methods,
should be mostly the "description" assembly anyway, and if that is
not possible or to hacky it'd be still nice to have a common single
of those parser, not multiple ones (pve-container, qemu-server, ...)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoFix #1982: pvesh: check if a handler exists for path
Christian Ebner [Tue, 15 Jan 2019 09:32:47 +0000 (10:32 +0100)]
Fix #1982: pvesh: check if a handler exists for path

Checks that the handler for the API call even exists before verifying the
parameter schema. By this the reported error message is more descriptive.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
5 years agoNodeConfig: simplify description parsing
Thomas Lamprecht [Tue, 15 Jan 2019 17:34:17 +0000 (18:34 +0100)]
NodeConfig: simplify description parsing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 5.3-8
Thomas Lamprecht [Fri, 11 Jan 2019 09:24:58 +0000 (10:24 +0100)]
bump version to 5.3-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoallow 8-way NUMA systems
Thomas Lamprecht [Thu, 10 Jan 2019 13:47:13 +0000 (14:47 +0100)]
allow 8-way NUMA systems

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoceph: change check if installed to ceph mon binary
Tim Marx [Thu, 10 Jan 2019 12:54:30 +0000 (13:54 +0100)]
ceph: change check if installed to ceph mon binary

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agofix #2030: use looks_like_number for number check
Dominik Csapak [Mon, 7 Jan 2019 12:59:47 +0000 (13:59 +0100)]
fix #2030: use looks_like_number for number check

since numbers can also be in '1.e-10' format, we have to change
how we check for a number

Scalar::Util is already core and we use it in PVE::Tools, so
no new dependecy.

in case of "NaN" or "Infinity" we omit the key/value pair

else we quote like before

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofix #1997: set taskid for single-guest backups
Fabian Grünbichler [Wed, 28 Nov 2018 09:51:40 +0000 (10:51 +0100)]
fix #1997: set taskid for single-guest backups

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agobump version to 5.3-7
Thomas Lamprecht [Thu, 20 Dec 2018 09:59:35 +0000 (10:59 +0100)]
bump version to 5.3-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agod/control: bump libpve-storage-perl version dependency to 5.0-35
Thomas Lamprecht [Thu, 20 Dec 2018 09:53:50 +0000 (10:53 +0100)]
d/control: bump libpve-storage-perl version dependency to 5.0-35

to ensure that the new PVE::CephConfig module is available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoceph: move Monitor API calls to API2/Ceph/MON.pm
Dominik Csapak [Wed, 19 Dec 2018 10:24:47 +0000 (11:24 +0100)]
ceph: move Monitor API calls to API2/Ceph/MON.pm

and adapt the paths

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoceph: move MGR API calls to API2/Ceph/MGR.pm
Dominik Csapak [Wed, 19 Dec 2018 10:24:46 +0000 (11:24 +0100)]
ceph: move MGR API calls to API2/Ceph/MGR.pm

and adapt the paths

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoceph: move mgr create/destroy to Ceph::Services
Dominik Csapak [Wed, 19 Dec 2018 10:24:45 +0000 (11:24 +0100)]
ceph: move mgr create/destroy to Ceph::Services

and adapt the paths and callers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoceph: move API2::CephOSD to API2::Ceph::OSD
Dominik Csapak [Wed, 19 Dec 2018 10:24:44 +0000 (11:24 +0100)]
ceph: move API2::CephOSD to API2::Ceph::OSD

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoceph: move service_cmd and MDS related code to Services.pm
Dominik Csapak [Wed, 19 Dec 2018 10:24:43 +0000 (11:24 +0100)]
ceph: move service_cmd and MDS related code to Services.pm

Also adapts the calls to the relevant subs.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoceph: move CephTools into Ceph/Tools.pm
Dominik Csapak [Wed, 19 Dec 2018 10:24:42 +0000 (11:24 +0100)]
ceph: move CephTools into Ceph/Tools.pm

It makes more sense to have it there, especially since we want to
split out the service parts into a seperate file.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoceph: use cfs_read/write_file for ceph.conf
Dominik Csapak [Wed, 19 Dec 2018 10:24:41 +0000 (11:24 +0100)]
ceph: use cfs_read/write_file for ceph.conf

The parser is now registered, and ceph.conf is a tracked file in pmxcfs.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 5.3-6
Thomas Lamprecht [Fri, 14 Dec 2018 11:25:43 +0000 (12:25 +0100)]
bump version to 5.3-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofixup: whitespace cleanup
Thomas Lamprecht [Thu, 13 Dec 2018 09:15:46 +0000 (10:15 +0100)]
fixup: whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoceph api: added check for /etc/pve/ceph.conf to remaining/new endpoints
Tim Marx [Tue, 11 Dec 2018 10:08:56 +0000 (11:08 +0100)]
ceph api: added check for /etc/pve/ceph.conf to remaining/new endpoints

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agofix #2017: add help button to storage input panels
Dominik Csapak [Fri, 7 Dec 2018 10:33:41 +0000 (11:33 +0100)]
fix #2017: add help button to storage input panels

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoui: storage/cephfs: fix maxfiles default enable
Thomas Lamprecht [Fri, 7 Dec 2018 13:02:37 +0000 (14:02 +0100)]
ui: storage/cephfs: fix maxfiles default enable

Most other storage types do not have backup in their default content
selection when creating a new storage, so there it make sense to
initially have maxfiles disabled. But with CephFS we have default
_only_ backup as content type, so let it enabled here - as else one
must change something in the content selector to enable the field.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoFix #2019: CephFS storage misses Max Backups
Alwin Antreich [Fri, 7 Dec 2018 08:02:57 +0000 (09:02 +0100)]
Fix #2019: CephFS storage misses Max Backups

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
5 years agoui: fixup jslint warnings
Thomas Lamprecht [Fri, 7 Dec 2018 12:59:31 +0000 (13:59 +0100)]
ui: fixup jslint warnings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: lxc/features: add fuse
Wolfgang Bumiller [Tue, 4 Dec 2018 09:03:16 +0000 (10:03 +0100)]
ui: lxc/features: add fuse

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoui: lxc/features: disable nfs and cifs for unprivileged
Wolfgang Bumiller [Tue, 4 Dec 2018 09:03:15 +0000 (10:03 +0100)]
ui: lxc/features: disable nfs and cifs for unprivileged

While we can allow them via the apparmor profile, they still
won't be usable as the kernel doesn't have FS_USERNS_MOUNT
set on those.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agodo not send 'undefined' as romfile
Dominik Csapak [Wed, 5 Dec 2018 12:25:25 +0000 (13:25 +0100)]
do not send 'undefined' as romfile

when adding a pcidevice, we added 'romfile=undefined' by accident

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 5.3-5
Thomas Lamprecht [Mon, 3 Dec 2018 11:14:06 +0000 (12:14 +0100)]
bump version to 5.3-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: CephFS: fix onlineHelp buttons
Thomas Lamprecht [Fri, 30 Nov 2018 17:43:00 +0000 (18:43 +0100)]
ui: CephFS: fix onlineHelp buttons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 5.3-4
Thomas Lamprecht [Thu, 29 Nov 2018 12:02:33 +0000 (13:02 +0100)]
bump version to 5.3-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoceph: update all pg_num defaults to 128
Thomas Lamprecht [Thu, 29 Nov 2018 11:36:21 +0000 (12:36 +0100)]
ceph: update all pg_num defaults to 128

As the last patch missed a few places. see pg calc or also:
http://docs.ceph.com/docs/luminous/rados/operations/placement-groups/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoRaise the default pg_num to 128
Alwin Antreich [Wed, 28 Nov 2018 09:26:39 +0000 (10:26 +0100)]
Raise the default pg_num to 128

PGCalc and the ceph recommendation say 128 PGs for up to 5 OSDs

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
5 years agoui: cluster: require ring0_addr if joinee's ring and node addr differ
Thomas Lamprecht [Tue, 27 Nov 2018 14:22:24 +0000 (15:22 +0100)]
ui: cluster: require ring0_addr if joinee's ring and node addr differ

Pass the ring addresses from the node we use to join a cluster with
the encoded cluster info. Use it to determine if the nodes public
address (i.e., the onei t's node name resolves to) differs from it'S
ring0 address, if that's the case and the cluster was created with
PVE tooling then we know that it's highly probable that the ring0 is
on another network than the public net, so require the ring0_addrss
field in this case. If we have a false positive, it's not to bad
here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: ceph pools: we now add only one storage, so signular
Thomas Lamprecht [Wed, 28 Nov 2018 11:06:54 +0000 (12:06 +0100)]
ui: ceph pools: we now add only one storage, so signular

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd pciutils as dependency
Dominik Csapak [Wed, 28 Nov 2018 10:40:27 +0000 (11:40 +0100)]
add pciutils as dependency

the package is not big, installed by default in the installer,
makes the pci scan much prettier, and we call lspci in the pvereport

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofixup: values is not needed for iterating a list
Thomas Lamprecht [Wed, 28 Nov 2018 09:31:32 +0000 (10:31 +0100)]
fixup: values is not needed for iterating a list

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofixup: s/wipe_disk/wipe_disks/ as we can to multiple at once
Thomas Lamprecht [Wed, 28 Nov 2018 09:30:58 +0000 (10:30 +0100)]
fixup: s/wipe_disk/wipe_disks/ as we can to multiple at once

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoFactoring the wipe_disk out into CephTools
Alwin Antreich [Tue, 27 Nov 2018 15:02:56 +0000 (16:02 +0100)]
Factoring the wipe_disk out into CephTools

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
5 years agoceph: fixup s/add_storage/add-storage/
Thomas Lamprecht [Wed, 28 Nov 2018 09:01:56 +0000 (10:01 +0100)]
ceph: fixup s/add_storage/add-storage/

it's just the nicer interface and we want to go away from underscore
usage in new calls

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #1430: ceph init: allow to specify separate cluster network
Thomas Lamprecht [Tue, 27 Nov 2018 14:37:32 +0000 (15:37 +0100)]
fix #1430: ceph init: allow to specify separate cluster network

Allow to specify a separate cluster network when initializing ceph.
Ceph docs[0] imply a possibility for performance increase and
enhanced security in environments where the public network serves not
fully trusted peers, which could else provoke a DOS to the cluster
traffic[0].

Make this optional, but if passed `network` is required too.

[0]: http://docs.ceph.com/docs/luminous/rados/configuration/network-config-ref/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: cephfs: only allow CephFS creation if MDS is configured
Thomas Lamprecht [Mon, 26 Nov 2018 15:56:27 +0000 (16:56 +0100)]
ui: cephfs: only allow CephFS creation if MDS is configured

Introduce the mdsCount again, I know remember again why I had it in
v3 of my CephFS series.. Use this to disable the CephFS create button
if we have no MDS configured, as this is a requirement.
Further change the gettext for 'No XY configure' to a format string
so that it can be reused.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoapi: cephfs: reuse rados connection when polling for active MDS
Thomas Lamprecht [Mon, 26 Nov 2018 15:12:17 +0000 (16:12 +0100)]
api: cephfs: reuse rados connection when polling for active MDS

no point in recreating one, we have an active one from earlier

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopveceph: ensure ceph-fuse gets uptdated when installing ceph server
Thomas Lamprecht [Mon, 26 Nov 2018 15:11:30 +0000 (16:11 +0100)]
pveceph: ensure ceph-fuse gets uptdated when installing ceph server

as we depend on ceph-fuse elsewhere (pve-storage) this gets installed
from Debians repositories with the Ceph 10 version.
So ensure that an up to date version, from our current supported Ceph
release, gets installed when doing `pveceph install` else you may
fall into certain issues which would have been already resolved with
a newer version.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate shipped aplinfo index
Thomas Lamprecht [Mon, 26 Nov 2018 17:45:55 +0000 (18:45 +0100)]
update shipped aplinfo index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopveceph: mds destroy: fixup parameter s/id/name/
Thomas Lamprecht [Mon, 26 Nov 2018 16:07:25 +0000 (17:07 +0100)]
pveceph: mds destroy: fixup parameter s/id/name/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agois_any_mds_active: check if state is correct
Thomas Lamprecht [Mon, 26 Nov 2018 15:52:05 +0000 (16:52 +0100)]
is_any_mds_active: check if state is correct

a MDS gets transferred to the active MDS info once it got selected as
active, not once it really _is_ active, it can be there in the
'up:creating' state. So ensure that a MDS with 'u:active' could be
found

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agogui: refactor render_full_name
Dominik Csapak [Mon, 19 Nov 2018 11:51:38 +0000 (12:51 +0100)]
gui: refactor render_full_name

this also fixes a missing  htmlEncode in UserSelector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 5.1-3
Thomas Lamprecht [Fri, 23 Nov 2018 18:16:40 +0000 (19:16 +0100)]
bump version to 5.1-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoapi: cephfs: wait for MDS to become active
Thomas Lamprecht [Fri, 23 Nov 2018 17:49:46 +0000 (18:49 +0100)]
api: cephfs: wait for MDS to become active

A MDS gets only active once a FS is there, and we need an MDS active
to be able to add a storage, as the CephFS plugin does an immediate
mount check. As an MDS needs some time to get active we had a
problematic time window where this mounting could fail.

Wait for a MDS to get in active state.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>