]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
4 years ago5to6: improve some log messages
Fabian Grünbichler [Wed, 3 Jul 2019 13:28:36 +0000 (15:28 +0200)]
5to6: improve some log messages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years ago5to6: followup sheepdog message
Thomas Lamprecht [Thu, 4 Jul 2019 07:35:59 +0000 (09:35 +0200)]
5to6: followup sheepdog message

do not suggest that we ever supported it as first class storage, it
was always just a experimental support and upstream is
EOL/unmaintained now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: add check for configured Sheepdog storages
Fabian Grünbichler [Wed, 3 Jul 2019 13:28:35 +0000 (15:28 +0200)]
5to6: add check for configured Sheepdog storages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agofollowup: do not use string comparision for integers
Thomas Lamprecht [Wed, 3 Jul 2019 13:32:02 +0000 (15:32 +0200)]
followup: do not use string comparision for integers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: ceph: automatically create manager after the first monitor
Tim Marx [Wed, 3 Jul 2019 12:40:10 +0000 (14:40 +0200)]
api: ceph: automatically create manager after the first monitor

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoceph: init: fix undef var access
Fabian Grünbichler [Wed, 3 Jul 2019 13:10:02 +0000 (15:10 +0200)]
ceph: init: fix undef var access

Fixes: d851d63ecc8cfb20880d611c904fdc2ff83ae3e2
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years ago5to6: improve ceph warning on non OK state
Thomas Lamprecht [Wed, 3 Jul 2019 11:14:05 +0000 (13:14 +0200)]
5to6: improve ceph warning on non OK state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoceph: init: only handle keyring if auth is cephx
Dominik Csapak [Wed, 3 Jul 2019 07:45:35 +0000 (09:45 +0200)]
ceph: init: only handle keyring if auth is cephx

if auth is 'none' there is no client keyring, so do not generate it and
do not write it into the config

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: ceph: fix syslog resize
Dominik Csapak [Tue, 2 Jul 2019 11:06:25 +0000 (13:06 +0200)]
gui: ceph: fix syslog resize

makes the logview inside resize with the window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agopve5to6: be a bit more verbose for misc. checks
Thomas Lamprecht [Tue, 2 Jul 2019 10:09:34 +0000 (12:09 +0200)]
pve5to6: be a bit more verbose for misc. checks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: followup: improve coding style and outputs a bit
Thomas Lamprecht [Tue, 2 Jul 2019 09:56:41 +0000 (11:56 +0200)]
pve5to6: followup: improve coding style and outputs a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: list vms with active vmx/svm flag
Dominik Csapak [Mon, 1 Jul 2019 14:42:49 +0000 (16:42 +0200)]
pve5to6: list vms with active vmx/svm flag

list all vms with either max/host cputype or vmx/svm explicitely set
(this can only happen in the args)

give a general message if none is found at the moment (and do not warn)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: ceph pools: fix pool % used display
Dominik Csapak [Tue, 2 Jul 2019 07:44:43 +0000 (09:44 +0200)]
gui: ceph pools: fix pool % used display

nautilus uses values from 0 to 1 instead of 0 to 100

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoapi: subscription: return https backed link
Thomas Lamprecht [Mon, 1 Jul 2019 13:00:27 +0000 (15:00 +0200)]
api: subscription: return https backed link

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.0-0+4
Thomas Lamprecht [Fri, 28 Jun 2019 18:41:04 +0000 (20:41 +0200)]
bump version to 6.0-0+4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/control: update version dependency of proxmox-widget-toolkit
Thomas Lamprecht [Fri, 28 Jun 2019 18:32:18 +0000 (20:32 +0200)]
d/control: update version dependency of proxmox-widget-toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: backup pool: enforce VM.Backup permissions on pool also on create
Thomas Lamprecht [Fri, 28 Jun 2019 18:04:04 +0000 (20:04 +0200)]
api: backup pool: enforce VM.Backup permissions on pool also on create

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi2tools: refactor get_resource_pool_guest_members and declare missing use
Thomas Lamprecht [Fri, 28 Jun 2019 17:46:44 +0000 (19:46 +0200)]
api2tools: refactor get_resource_pool_guest_members and declare missing use

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: backup pool: enforce VM.Backup permissions on pool
Thomas Lamprecht [Fri, 28 Jun 2019 17:29:46 +0000 (19:29 +0200)]
api: backup pool: enforce VM.Backup permissions on pool

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: pool backup: adapt labels a bit
Thomas Lamprecht [Fri, 28 Jun 2019 17:20:24 +0000 (19:20 +0200)]
ui: pool backup: adapt labels a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #1278 gui: backup: add backup mode pool
Tim Marx [Wed, 19 Jun 2019 10:08:38 +0000 (12:08 +0200)]
fix #1278 gui: backup: add backup mode pool

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agofix #1278 api: add pool backup option
Tim Marx [Wed, 19 Jun 2019 10:08:37 +0000 (12:08 +0200)]
fix #1278 api: add pool backup option

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agowhitespace cleanup
Tim Marx [Wed, 19 Jun 2019 10:08:36 +0000 (12:08 +0200)]
whitespace cleanup

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoui: migrate: add storage and size information to preconditions
Tim Marx [Fri, 28 Jun 2019 13:13:46 +0000 (15:13 +0200)]
ui: migrate: add storage and size information to preconditions

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agoceph: disallow ipv4 in new cluster when ipv6 is enabled
Dominik Csapak [Wed, 26 Jun 2019 11:16:25 +0000 (13:16 +0200)]
ceph: disallow ipv4 in new cluster when ipv6 is enabled

ms_bind_ipv4 is default true and osds look for both
ipv6 and ipv4 addresses in cluster network/public network

since we only allow for one network each (which must be either
ipv4 or ipv6) we disallow ipv4 if ipv6 is detected

this fixes not starting osds on an ipv6 enabled, newly-setup cluster

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon create: fix not starting monitor if no public_addr is in conf
Dominik Csapak [Fri, 28 Jun 2019 11:22:27 +0000 (13:22 +0200)]
ceph: mon create: fix not starting monitor if no public_addr is in conf

when there is no 'public_network' in the config, the monitor
can only find an ip if it is given explicitly, either via commandline
(not possible with systemd) or via the ceph.conf

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agosilent some lintian warnings
Thomas Lamprecht [Fri, 28 Jun 2019 08:31:14 +0000 (10:31 +0200)]
silent some lintian warnings

"privacy-breach-generic" is  a false positive here (lintian bug
907957)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/maintscript: really remove the old apt hook for kernel
Thomas Lamprecht [Fri, 28 Jun 2019 08:27:39 +0000 (10:27 +0200)]
d/maintscript: really remove the old apt hook for kernel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: fixup: fully remove pve-apt-hook mentionings
Thomas Lamprecht [Fri, 28 Jun 2019 08:30:03 +0000 (10:30 +0200)]
buildsys: fixup: fully remove pve-apt-hook mentionings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoconfig: remove pve-apt.conf
Stoiko Ivanov [Thu, 27 Jun 2019 18:27:58 +0000 (20:27 +0200)]
config: remove pve-apt.conf

Instead of marking all pve-kernel-.* packages as NeverAutoRemove we compile
a list of specific versions to keep.
This functionality is added in the proxmox-ve package (along with the config
for booting kernels with systemd-boot).

4 years ago5to6: get_pkg: cache version list
Thomas Lamprecht [Fri, 28 Jun 2019 06:42:19 +0000 (08:42 +0200)]
5to6: get_pkg: cache version list

this is a short running script, so the version list can be re-used,
the chance that there where updates in between are slim and racy
anyway. IF getting the versions did not succeeded, we still retry on
every call though, simpler and ensures a warning is printed in the
caller check vicinity.

Makes script noticeable faster.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: followup kernel version checks, make compatible with PVE 5
Thomas Lamprecht [Fri, 28 Jun 2019 06:34:40 +0000 (08:34 +0200)]
5to6: followup kernel version checks, make compatible with PVE 5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: add check for scanned simple OSDs
Fabian Grünbichler [Thu, 27 Jun 2019 19:02:03 +0000 (21:02 +0200)]
5to6: add check for scanned simple OSDs

only as a warning, since this will also trigger a Ceph health warning
and is easily recoverable.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years ago5to6: add check for running kernel version
Fabian Grünbichler [Thu, 27 Jun 2019 19:02:02 +0000 (21:02 +0200)]
5to6: add check for running kernel version

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoui: ceph wizard: drop local setAllowBlank overwrite
Thomas Lamprecht [Thu, 27 Jun 2019 19:52:07 +0000 (21:52 +0200)]
ui: ceph wizard: drop local setAllowBlank overwrite

all our combogrids now have this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: cluster: use new network selector
Thomas Lamprecht [Thu, 27 Jun 2019 19:51:46 +0000 (21:51 +0200)]
ui: cluster: use new network selector

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: vm migrate: rename icon to severity and uses renderer
Thomas Lamprecht [Thu, 27 Jun 2019 19:12:01 +0000 (21:12 +0200)]
ui: vm migrate: rename icon to severity and uses renderer

and some other minor style changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: improve is-node-IP active check
Thomas Lamprecht [Thu, 27 Jun 2019 17:30:42 +0000 (19:30 +0200)]
pve5to6: improve is-node-IP active check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: add total count in summary
Thomas Lamprecht [Thu, 27 Jun 2019 17:23:05 +0000 (19:23 +0200)]
pve5to6: add total count in summary

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: align summary counters
Thomas Lamprecht [Thu, 27 Jun 2019 17:21:45 +0000 (19:21 +0200)]
pve5to6: align summary counters

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: list packages with updates in new line
Thomas Lamprecht [Thu, 27 Jun 2019 17:15:37 +0000 (19:15 +0200)]
pve5to6: list packages with updates in new line

with two spaces indentation, like apt does

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: versions: detect if already upgraded
Thomas Lamprecht [Thu, 27 Jun 2019 17:15:15 +0000 (19:15 +0200)]
pve5to6: versions: detect if already upgraded

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: add and use print_header
Thomas Lamprecht [Thu, 27 Jun 2019 16:41:05 +0000 (18:41 +0200)]
pve5to6: add and use print_header

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: make this a simple CLI command
Thomas Lamprecht [Thu, 27 Jun 2019 15:39:59 +0000 (17:39 +0200)]
pve5to6: make this a simple CLI command

with this it's enough to call `pve5to6`, no (sub)command needed

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agomove check_kvm_nested call to check_misc
Mira Limbeck [Thu, 27 Jun 2019 13:45:36 +0000 (15:45 +0200)]
move check_kvm_nested call to check_misc

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
4 years agopve5to6: add IP check to misc
Mira Limbeck [Thu, 27 Jun 2019 13:45:35 +0000 (15:45 +0200)]
pve5to6: add IP check to misc

Adds the same check we run in pve-cluster before joining a node to make
sure the hostname resolves to a configured IP.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
4 years agoRevert "d/control: fix mail-transport-agent-dependency-does-not-specify-default-mta"
Thomas Lamprecht [Wed, 26 Jun 2019 16:21:52 +0000 (18:21 +0200)]
Revert "d/control: fix mail-transport-agent-dependency-does-not-specify-default-mta"

This reverts commit 1cda58da007f1e372de81573c1cfddb2e5a01afa.
As else Debian installations always get exim as default MTA, just
lets keep postfix for now

4 years agopve5to6: add check for nested kvm
Dominik Csapak [Wed, 26 Jun 2019 10:34:55 +0000 (12:34 +0200)]
pve5to6: add check for nested kvm

this warns the user that he cannot live migrate VMs with svm/vmx to PVE6 when
the nested parameter of the kvm module is on

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years ago5to6 add color support
Fabian Grünbichler [Wed, 26 Jun 2019 12:21:25 +0000 (14:21 +0200)]
5to6 add color support

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years ago5to6: fix ssh config check
Fabian Grünbichler [Wed, 26 Jun 2019 12:21:24 +0000 (14:21 +0200)]
5to6: fix ssh config check

in case the config file does not exist at all.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agouse https links to our sites
Thomas Lamprecht [Wed, 26 Jun 2019 12:33:56 +0000 (14:33 +0200)]
use https links to our sites

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupdate sources.list to buster
Thomas Lamprecht [Wed, 26 Jun 2019 09:17:01 +0000 (11:17 +0200)]
update sources.list to buster

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoswitch over default console viewer to xterm.js
Thomas Lamprecht [Tue, 25 Jun 2019 15:10:31 +0000 (17:10 +0200)]
switch over default console viewer to xterm.js

at least where possible, this affects mostly the node shell button.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.0-0+3
Thomas Lamprecht [Tue, 25 Jun 2019 10:39:24 +0000 (12:39 +0200)]
bump version to 6.0-0+3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: cluster: initial work to switch ringX to linkX params
Thomas Lamprecht [Tue, 25 Jun 2019 10:31:56 +0000 (12:31 +0200)]
gui: cluster: initial work to switch ringX to linkX params

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobackup jobs: Aquire lock before modifying vzdump.cron
Christian Ebner [Mon, 24 Jun 2019 15:26:26 +0000 (17:26 +0200)]
backup jobs: Aquire lock before modifying vzdump.cron

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agoui: workspace: cope better with upgrade related false positive 401 HTTP codes
Thomas Lamprecht [Mon, 24 Jun 2019 12:52:05 +0000 (14:52 +0200)]
ui: workspace: cope better with upgrade related false positive 401 HTTP codes

While we nowadays can work much better with package upgrades relating
the cluster stack it still happens that a pve-cluster upgrade can
produce a false-positive 401 (auth failure) code for a currently
valid ticket, e.g., because a pmxcfs lock was requested but the
pmxcfs was currently not mounted due an upgrade triggered restart.

A frequent case for a few false positive 401 is also a cluster
creation, especially if not done over the web GUI.

Thus add a counter, which gets set to 0 on each successful login or
ticket renewal and gets increased on each 401 error. Only show the
logged out window if we get five or more 401 responses. While 5 may
sound a bit much one needs to remember that we always have quite a
few API call in flight (resource update store, stores from current
panel ...) and thus, if one got really auth denied it will still show
quite fast (1 to 5 seconds, depending on which panel is currently
opened). Further, the backend naturally does not allows to do
anything during this time, this has no security implications
whatsoever.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: avoid Use of uninitialized value $osd_flags in pattern match
Thomas Lamprecht [Tue, 25 Jun 2019 08:04:59 +0000 (10:04 +0200)]
pve5to6: avoid Use of uninitialized value $osd_flags in pattern match

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6 will never be a POD based man page, fake it for now
Thomas Lamprecht [Tue, 25 Jun 2019 07:09:24 +0000 (09:09 +0200)]
pve5to6 will never be a POD based man page, fake it for now

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowups: pve5to6
Thomas Lamprecht [Tue, 25 Jun 2019 07:04:07 +0000 (09:04 +0200)]
followups: pve5to6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupgrade checklist
Fabian Grünbichler [Mon, 24 Jun 2019 11:56:40 +0000 (13:56 +0200)]
upgrade checklist

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoCeph: add get_cluster_versions helper
Fabian Grünbichler [Mon, 24 Jun 2019 11:56:39 +0000 (13:56 +0200)]
Ceph: add get_cluster_versions helper

to make 'ceph versions' and 'ceph XX versions' accessible.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agobin/make: fix pod2man generation
Thomas Lamprecht [Tue, 25 Jun 2019 07:03:33 +0000 (09:03 +0200)]
bin/make: fix pod2man generation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: HW Raid note: move to bottom and fixup link
Thomas Lamprecht [Fri, 21 Jun 2019 13:27:31 +0000 (15:27 +0200)]
followup: HW Raid note: move to bottom and fixup link

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: add raid warnings for ceph and zfs
Dominik Csapak [Fri, 21 Jun 2019 10:03:50 +0000 (12:03 +0200)]
gui: add raid warnings for ceph and zfs

Wording is from the installer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: ensure /etc/ceph belongs to ceph
Thomas Lamprecht [Wed, 19 Jun 2019 15:00:21 +0000 (17:00 +0200)]
ceph: ensure /etc/ceph belongs to ceph

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: ceph mon: add missing perl use statement for Cephconfig
Thomas Lamprecht [Wed, 19 Jun 2019 14:59:26 +0000 (16:59 +0200)]
api: ceph mon: add missing perl use statement for Cephconfig

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoceph: mon destroy: do not stop monitor ourselves
Dominik Csapak [Wed, 19 Jun 2019 11:45:54 +0000 (13:45 +0200)]
ceph: mon destroy: do not stop monitor ourselves

a 'mon remove' does this already for us, so do not stop it
this lead to a race where we could stop the next to the last monitor
before it was removed from the cluster, leading to a state
where two monitor were needed for quorum, but only one did exist

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon destroy: remove from mon_host
Dominik Csapak [Wed, 19 Jun 2019 11:45:53 +0000 (13:45 +0200)]
ceph: mon destroy: remove from mon_host

we need to remove an ip, ip:port or a ipvector from monhost
so use multiple regex search and replaces for this

this looks not really nice, but due to the strange format
of the line (e.g. ',' is a seperator inside and outside of a vector,
also ipv6 adresses may be surrounded with [] but so are vectors),
i found no better way

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon destroy: add cfs lock
Dominik Csapak [Wed, 19 Jun 2019 11:45:52 +0000 (13:45 +0200)]
ceph: mon destroy: add cfs lock

so that multiple users cannot remove a monitor simultaniously

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon destroy: refactor removal assertions
Dominik Csapak [Wed, 19 Jun 2019 11:45:51 +0000 (13:45 +0200)]
ceph: mon destroy: refactor removal assertions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon create: lock monitor creation
Dominik Csapak [Wed, 19 Jun 2019 11:45:50 +0000 (13:45 +0200)]
ceph: mon create: lock monitor creation

otherwise it is possible that multiple users create monitors at the same
time, resulting in a wrong ceph.conf and probably worse

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon create: add to mon_host with msgr2
Dominik Csapak [Wed, 19 Jun 2019 11:45:49 +0000 (13:45 +0200)]
ceph: mon create: add to mon_host with msgr2

in nautilus, the default msgr protocol is v2, but it has to be
explicitely given to monmaptool, also we don't want to use the
monitor sections anymore so only update mon_host

ceph can cope with mixed mon_host and monitor sections, so this is
not a problem

also the ceph-create-keys part is not necessary anymore since
this is done by the monitor itself now

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon create: refactor mon assertions
Dominik Csapak [Wed, 19 Jun 2019 11:45:48 +0000 (13:45 +0200)]
ceph: mon create: refactor mon assertions

by using our new 'get_services_info'

this already checks for nautilus+ style 'mon_host' key in the ceph.conf
for the ip address

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: ostypes: include 5.x in Linux series and reword to range
Thomas Lamprecht [Tue, 28 May 2019 11:17:18 +0000 (13:17 +0200)]
gui: ostypes: include 5.x in Linux series and reword to range

Make clear thet the 5.x is also supported and reword a bit as
"5.X/4.X/3.X/2.6" is a bit hard to read, so use "5.X - 2.6"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoceph: setup symlinks: ensure global ceph config directory exists
Thomas Lamprecht [Tue, 18 Jun 2019 15:15:03 +0000 (17:15 +0200)]
ceph: setup symlinks: ensure global ceph config directory exists

normally this gets created on package installation, but could be
deleted, e.g., by a debug purge. As it costs nothing to create just
do a mkdir on it, which does not fails if it already exists..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoceph: mon create: refactor and improve auth key creation
Dominik Csapak [Tue, 18 Jun 2019 13:42:52 +0000 (15:42 +0200)]
ceph: mon create: refactor and improve auth key creation

it makes no sense to have the mon key inside the client.admin.keyring
also the order and operations did not make much sense

also create the client admin keyring when creating the config

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon create: detect pubnet via config database
Dominik Csapak [Tue, 18 Jun 2019 13:42:50 +0000 (15:42 +0200)]
ceph: mon create: detect pubnet via config database

if we already have a monitor, we can try to get the public_network via
the ceph configuration database

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: mon list: make more robust
Dominik Csapak [Tue, 18 Jun 2019 13:42:49 +0000 (15:42 +0200)]
ceph: mon list: make more robust

in a case where we cannot connect to any monitor, we did not get
any info even if we have them via the pmxcfs

so get the RADOS object in an eval, and get the info we have from the
config/pmxcfs, and set the state to unknown if we cannot query via RADOS

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: services: do not create rados object in get_services_info
Dominik Csapak [Tue, 18 Jun 2019 13:42:48 +0000 (15:42 +0200)]
ceph: services: do not create rados object in get_services_info

we always gave one, and the only reason why it could be undef
is that we could not connect, so it makes no sense to try again
and add unecessary time to the api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: init: lock ceph config
Dominik Csapak [Tue, 18 Jun 2019 13:42:47 +0000 (15:42 +0200)]
ceph: init: lock ceph config

so that not multiple users can create a ceph cluster at the same time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: init: check for nautilus
Dominik Csapak [Tue, 18 Jun 2019 13:42:46 +0000 (15:42 +0200)]
ceph: init: check for nautilus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: init: update inital config for nautilus
Dominik Csapak [Tue, 18 Jun 2019 13:42:45 +0000 (15:42 +0200)]
ceph: init: update inital config for nautilus

since we do not support creating filestore osds anymore, drop
the journal size from the config

and move the keyring from global to client
this makes it possible to omit the osd keyring path
(which was the default but got overwritten from the global section)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: storage selector: adapt widths
Thomas Lamprecht [Mon, 17 Jun 2019 10:53:59 +0000 (12:53 +0200)]
ui: storage selector: adapt widths

with this one can see the avail/capacity columns in full even if we
have "xyz.ab GiB", i.e., the max length this can be.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: migrate: add source node field and rebalance field positions
Thomas Lamprecht [Mon, 17 Jun 2019 10:41:16 +0000 (12:41 +0200)]
ui: migrate: add source node field and rebalance field positions

This makes the window more symmetric, and additional has the
following small advantages:
* to the left we now have static fields only, user modifiable ones
  are all to the right (with shorter distance to the migrate "submit"
  button here)
* if one starts the migration from the tree's context menu it may not
  be really clear where the VM currently is located at, so showing
  the source node can help (especially on bigger clusters with a
  huge target node list)
* more symmetric

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: migrate: set window width to 600
Thomas Lamprecht [Mon, 17 Jun 2019 10:39:47 +0000 (12:39 +0200)]
ui: migrate: set window width to 600

700 feels a bit wide

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: migrate: refactor migrate window & add migration with local disks
Tim Marx [Fri, 14 Jun 2019 12:35:36 +0000 (14:35 +0200)]
ui: migrate: refactor migrate window & add migration with local disks

This patch depends on:
qemu-server: e1f0fbf4448b374eb9a19502aee565adb5be7ec0

This patch refactors the migrate ui to incoperate the viewmodel approach
which should help if we need to add functionality in future iterations.
Additionally it is now possible to migrate with local disks.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agowww: storage content view: fix typo in var name
Thomas Lamprecht [Sat, 15 Jun 2019 09:08:08 +0000 (11:08 +0200)]
www: storage content view: fix typo in var name

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agojs: fix some common typos found with codespell
Thomas Lamprecht [Sat, 15 Jun 2019 08:44:43 +0000 (10:44 +0200)]
js: fix some common typos found with codespell

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoperl: fix some common typos found with codespell
Thomas Lamprecht [Sat, 15 Jun 2019 08:40:20 +0000 (10:40 +0200)]
perl: fix some common typos found with codespell

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.0-0+2
Thomas Lamprecht [Fri, 14 Jun 2019 19:16:45 +0000 (21:16 +0200)]
bump version to 6.0-0+2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/control: update version dependency of pve-cluster and libpve-storage
Thomas Lamprecht [Fri, 14 Jun 2019 19:16:34 +0000 (21:16 +0200)]
d/control: update version dependency of pve-cluster and libpve-storage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocss: fixup: # is not a comment in css
Thomas Lamprecht [Fri, 14 Jun 2019 11:52:46 +0000 (13:52 +0200)]
css: fixup: # is not a comment in css

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonetwork api : reload : don't allow openswitch at all
Alexandre Derumier [Thu, 13 Jun 2019 13:49:01 +0000 (15:49 +0200)]
network api : reload : don't allow openswitch at all

ifupdown2 reload can't work with openswitch until we implement
ovs.

I don't think that too much users are mixing ovs && bridge anyway.

It's possible to use ifupdown2 with ovs for ifup/down with ifupdown script,
but config need to be changed, and I don't have tested too much.
(maybe add a conflict in ifupdown2 package with openvswitch package for now)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agonetwork api : reload : always reload
Alexandre Derumier [Thu, 13 Jun 2019 13:49:00 +0000 (15:49 +0200)]
network api : reload : always reload

reload also if interfaces.new don't exist
(for vnet or other user change in different file)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agonetwork api : reload : don't check bridge delete
Alexandre Derumier [Thu, 13 Jun 2019 13:48:59 +0000 (15:48 +0200)]
network api : reload : don't check bridge delete

we are doing it in ifupdown2 directly

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agonetwork api : reload : remove ifdown/up hack
Alexandre Derumier [Thu, 13 Jun 2019 13:48:58 +0000 (15:48 +0200)]
network api : reload : remove ifdown/up hack

This was for vxlan interfaces and fixed in ifupdown2 with my last patches.

simply reload network, and if we still have errors, we can use ifquery to check them later

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agocss: tree: add some classes for specific locks
Thomas Lamprecht [Thu, 13 Jun 2019 19:32:46 +0000 (21:32 +0200)]
css: tree: add some classes for specific locks

Add classes for suspended, suspending and migration.

They use the same symbol as in the buttons for consitency, size is a
bit smaller to fit better for the tree.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: tree: add lock information to tooltips
Thomas Lamprecht [Mon, 10 Jun 2019 17:04:10 +0000 (19:04 +0200)]
gui: tree: add lock information to tooltips

This was already proposed by Dominik[0], but it was was wished for a
faster backend backing of this[1], and as with most wishes one needs
to either be content with what's there or (try) to improve it one
self.. So with the IPCC approach proposed as backing for this I'd
like to add this again. It differs from [0] a bit, first it's rebased
as parts of the tooltip stuff got already applied[2].

I use "Config locked (<LOCK>)" as text for this, as it
1. Clarifies what the lock symbol means, which is always a good thing
   for tooltips
2. repeating the lock symbol here again would show the users three
   lock symbols at the same time if the VM was selected in the tree
   (the tree one, the VM config panel one, and this tool tip one)
   this is a bit much, so don't do it.

[0]: https://pve.proxmox.com/pipermail/pve-devel/2019-February/035829.html
[1]: https://pve.proxmox.com/pipermail/pve-devel/2019-March/035930.html
[2]: https://pve.proxmox.com/pipermail/pve-devel/2019-March/036165.html

Co-developed-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: add lock icons to css
Dominik Csapak [Wed, 27 Feb 2019 11:32:35 +0000 (12:32 +0100)]
gui: add lock icons to css

and move the warning/error icons below that so that we
get the correct icon if multiple apply

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