]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
3 years agobump version to 5.4-15 stable-5
Thomas Lamprecht [Tue, 12 May 2020 15:42:57 +0000 (17:42 +0200)]
bump version to 5.4-15

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup log messages nits
Thomas Lamprecht [Tue, 12 May 2020 15:16:54 +0000 (17:16 +0200)]
followup log messages nits

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopve5to6: refactor out apt-cache package installed checks
Thomas Lamprecht [Tue, 12 May 2020 13:43:15 +0000 (15:43 +0200)]
pve5to6: refactor out apt-cache package installed checks

for potential reuse in the future and makes the real check easier to
read

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopve5to6: add check for ovmf vms with potentially broken efi disk
Dominik Csapak [Tue, 12 May 2020 10:11:10 +0000 (12:11 +0200)]
pve5to6: add check for ovmf vms with potentially broken efi disk

we wrongly mapped some efidisks into the vm, and fixed it in pve6
this potentially needs manual intervention, so warn the user about
which vms might be affected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agopve5to6: add check for stock debian kernel package
Dominik Csapak [Tue, 12 May 2020 10:11:09 +0000 (12:11 +0200)]
pve5to6: add check for stock debian kernel package

on current debian buster, stock kernel images recommend
firmware-linux-free which conflict with our pve-firmware package
which leads to apt wanting to remove promxox-ve

check for the meta package in the update check script

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: fix missing htmlEncodes
Dominik Csapak [Tue, 12 May 2020 10:11:08 +0000 (12:11 +0200)]
ui: fix missing htmlEncodes

username can include some special characters, so we have
to escape them

backport from pve6

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobump version to 5.4-14
Thomas Lamprecht [Tue, 21 Apr 2020 16:20:02 +0000 (18:20 +0200)]
bump version to 5.4-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@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>
(cherry picked from commit 2dc23b7e2ea493a4f79f7cdca7c7b635eb8c50e0)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd PVE 5.4 End-of-Life notice
Thomas Lamprecht [Tue, 29 May 2018 12:16:32 +0000 (14:16 +0200)]
add PVE 5.4 End-of-Life notice

since pve 5.4 goes out of support in July, add a notice at the top with
a link to the faq, where the EOL dates are and also the upgrade
process is described and linked in short.

Originally-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit cc9b37b8113dd3770e56d68955df714b81814c65)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.4-13
Thomas Lamprecht [Fri, 26 Jul 2019 08:15:08 +0000 (10:15 +0200)]
bump version to 5.4-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofixup building pvecfg, ensure that the package release is available
Thomas Lamprecht [Fri, 26 Jul 2019 08:14:38 +0000 (10:14 +0200)]
fixup building pvecfg, ensure that the package release is available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.4-12
Thomas Lamprecht [Thu, 25 Jul 2019 07:34:03 +0000 (09:34 +0200)]
bump version to 5.4-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Wed, 22 May 2019 19:15:47 +0000 (21:15 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit bcef9bde68a920a4d204beb8ec1d5f334f7fbb78)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoremove unused ext-pve.css
Thomas Lamprecht [Tue, 23 Jul 2019 12:27:52 +0000 (14:27 +0200)]
remove unused ext-pve.css

not used since commit 5783c7f4ddbeeddb7038f40c94908b0f3a6b5fa7 from
2016...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 194745b924d8fbda70a3bccdd9724defb7a2633d)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: cleanup cert check and make more general
Thomas Lamprecht [Tue, 23 Jul 2019 07:46:54 +0000 (09:46 +0200)]
5to6: cleanup cert check and make more general

If we need to add other types or increases the min size this makes it
easier as it's just a schematic definition.

Also just do a pass/fail on each cert, so drop the last "summary
pass".

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 6c7e4ab4e24592a8dfa5dac3f5047064e17254f2)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: cert: check certificates key size
Alwin Antreich [Mon, 22 Jul 2019 15:11:40 +0000 (17:11 +0200)]
pve5to6: cert: check certificates key size

Debian Buster raised the default security level (1 -> 2) for TLS
connections.

This moves from the 80 bit security level to the 112 bit security level
and will require 2048 bit or larger RSA and DHE keys, 224 bit or larger
ECC keys, and SHA-2.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
(cherry picked from commit 501f8505210553093243db6d279f936498e76124)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopvenode: add public key size & type to cert info
Alwin Antreich [Mon, 22 Jul 2019 15:11:39 +0000 (17:11 +0200)]
pvenode: add public key size & type to cert info

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
(cherry picked from commit ee3fd393c4721b6c68d7adb47bb498976235d82f)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: cert: add public key type & size to certs view
Alwin Antreich [Mon, 22 Jul 2019 15:11:37 +0000 (17:11 +0200)]
gui: cert: add public key type & size to certs view

by default the fields are hidden

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
(cherry picked from commit 1007cf29d984d74bd7893bc3a4e6fe2b26f50e4e)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.4-11
Thomas Lamprecht [Tue, 9 Jul 2019 07:55:31 +0000 (09:55 +0200)]
bump version to 5.4-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: show 0 for max_relocate/restart correctly
Dominik Csapak [Mon, 8 Jul 2019 12:12:37 +0000 (14:12 +0200)]
gui: show 0 for max_relocate/restart correctly

0 || '1' will always return '1'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 92b89add8d09efc864fbd03fc9aab6a1d63c5736)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2267: delete address(6) and netmas(6) with cidr(6)
Dominik Csapak [Mon, 8 Jul 2019 14:29:18 +0000 (16:29 +0200)]
fix #2267: delete address(6) and netmas(6) with cidr(6)

otherwise a user cannot delete an ip from an interface

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit b350268a1b59ed6513d5ad7b05bee3f55ca5afab)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: make corosync totem checks more verbose
Fabian Grünbichler [Mon, 8 Jul 2019 11:54:09 +0000 (13:54 +0200)]
5to6: make corosync totem checks more verbose

to avoid just printing the subheader with no results

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit c4bc94bb7b019e3c5a4518eda55883bb989146c5)

4 years ago5to6: add more corosync subheaders
Fabian Grünbichler [Mon, 8 Jul 2019 11:54:08 +0000 (13:54 +0200)]
5to6: add more corosync subheaders

to improve readability

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 5684da54dc15fb2a5bb26fdef95db67cea836a21)

4 years ago5to6: fail if a corosync node has neither ring0 nor ring1 defined
Fabian Grünbichler [Mon, 8 Jul 2019 11:54:07 +0000 (13:54 +0200)]
5to6: fail if a corosync node has neither ring0 nor ring1 defined

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit e6b956df7bb1522e0cf47e2afb3dbb609a88b750)

4 years ago5to6: reword/-structure corosync message
Fabian Grünbichler [Mon, 8 Jul 2019 11:54:06 +0000 (13:54 +0200)]
5to6: reword/-structure corosync message

and fix a typo as well

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 388a505104eae0d8c6389b247aba7eca713b03ba)

4 years ago5to6: attempt to resolve corosync rings
Fabian Grünbichler [Mon, 8 Jul 2019 11:54:05 +0000 (13:54 +0200)]
5to6: attempt to resolve corosync rings

and only fail if unable to

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(backported from commit 669211d8bbb0857275669068fcbf62560782b888)

use local copy of resolve_hostname_like_corosync instead of
pve-cluster's.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years ago5to6: add Corosync resolve helper
Fabian Grünbichler [Mon, 8 Jul 2019 11:54:04 +0000 (13:54 +0200)]
5to6: add Corosync resolve helper

copied from PVE 6.x's pve-cluster.

since Corosync 2.x has a different default value for ip_version, we
don't want to backport this for general usage in PVE::Corosync. the
check here needs the default of Corosync 3.x, since that is what we
upgrade to.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agobump version to 5.4-10
Thomas Lamprecht [Thu, 4 Jul 2019 13:35:49 +0000 (15:35 +0200)]
bump version to 5.4-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: only tell to solve problems if fails are present
Thomas Lamprecht [Thu, 4 Jul 2019 13:32:35 +0000 (15:32 +0200)]
5to6: only tell to solve problems if fails are present

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit be1072fb3bee0c15fbe67637289ab39adf64b6d7)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: improve final note on errors and/or warning a bit
Thomas Lamprecht [Thu, 4 Jul 2019 13:30:54 +0000 (15:30 +0200)]
5to6: improve final note on errors and/or warning a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit a14a5aaf678d9f5ba6235616b091684a9042cf4a)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: fiy typo: s/detailled/detailed/
Thomas Lamprecht [Thu, 4 Jul 2019 13:23:19 +0000 (15:23 +0200)]
5to6: fiy typo: s/detailled/detailed/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 71f6edacdf6f5694f10a196626b950c66665d121)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: check common services pveproxy pvedaemon pvestatd
Thomas Lamprecht [Thu, 4 Jul 2019 13:20:12 +0000 (15:20 +0200)]
5to6: check common services pveproxy pvedaemon pvestatd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 0192b0a2c2d5e2debb8e0a3e9279e73399e288ec)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: add log_systemd_unit_state and use for pve-cluster and corosync
Thomas Lamprecht [Thu, 4 Jul 2019 13:10:16 +0000 (15:10 +0200)]
5to6: add log_systemd_unit_state and use for pve-cluster and corosync

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit fa1c414e265c1fe47673c069a114cbc9199d8347)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: import run_command
Thomas Lamprecht [Thu, 4 Jul 2019 12:56:50 +0000 (14:56 +0200)]
5to6: import run_command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit a82c200a9e11033f0f696a0af6bb5e6d522ca883)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: clarify "cluster quorate" message a bit
Thomas Lamprecht [Thu, 4 Jul 2019 12:21:08 +0000 (14:21 +0200)]
5to6: clarify "cluster quorate" message a bit

As this is the state from the pmxcfs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 88d757d0c02fe62f57432a133e222a0fbd057e4e)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: fixup: really set $total_votes to 0 if not defined
Thomas Lamprecht [Thu, 4 Jul 2019 12:20:41 +0000 (14:20 +0200)]
5to6: fixup: really set $total_votes to 0 if not defined

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 176116b22ffae4993f5b3e25977ea08c6aca4dc9)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: drop detailed quorumtool output
Fabian Grünbichler [Thu, 4 Jul 2019 11:52:24 +0000 (13:52 +0200)]
5to6: drop detailed quorumtool output

since we already print most of that anyway, and it is rather long.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 3456f2fc9d3094af3a0c7bdbe7a55abfd16ff380)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: more quorum / vote checking
Fabian Grünbichler [Thu, 4 Jul 2019 11:52:23 +0000 (13:52 +0200)]
5to6: more quorum / vote checking

handle expected votes set to non-standard value, and try to adjust
calculations for qdevice setups.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit f6c6aa2b046b6b580855bab633a7ff1f94e3028a)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: quote some Ceph flags/options
Fabian Grünbichler [Thu, 4 Jul 2019 08:55:49 +0000 (10:55 +0200)]
5to6: quote some Ceph flags/options

to improve readability

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 8ac5d4a50064f8d4c0e3abd6023fd2dee46331d3)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: check for ceph global keyring config
Fabian Grünbichler [Thu, 4 Jul 2019 08:55:48 +0000 (10:55 +0200)]
5to6: check for ceph global keyring config

which causes issues after upgrading to Nautilus.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 974a1b58548eb6f63541b311166c81a46fb4dc35)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: followup: also detect ceph conf keys separated with -
Thomas Lamprecht [Thu, 4 Jul 2019 08:37:35 +0000 (10:37 +0200)]
5to6: followup: also detect ceph conf keys separated with -

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 09250673d60b34febd220944c2a904758cf91618)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: ceph mon host check: switch config check from defined to hash values exist
Thomas Lamprecht [Thu, 4 Jul 2019 08:31:06 +0000 (10:31 +0200)]
5to6: ceph mon host check: switch config check from defined to hash values exist

we can get here if a empty (or one with just comments) ceph.conf
exists

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 153d6912879b0053af54a9218e10aa57ed43fc96)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: ceph global mon host check: also detect mon-host
Thomas Lamprecht [Thu, 4 Jul 2019 08:29:58 +0000 (10:29 +0200)]
5to6: ceph global mon host check: also detect mon-host

and adapt message a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit f696b0c355d0e9400da7f10530a957ede2b4e433)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: check ipv6/ipv4 settings in ceph.conf
Dominik Csapak [Thu, 4 Jul 2019 07:35:13 +0000 (09:35 +0200)]
pve5to6: check ipv6/ipv4 settings in ceph.conf

having ipv6 enabled while not disabling ipv4 prevents
nautilus osds to start if no ipv4 network is given (because they
are trying to bind to both ip families and die if one of them
is not found)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 9e98f1fecf1c09811239b2c6183107a00b149de0)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve5to6: check ceph config for mon_host line
Dominik Csapak [Thu, 4 Jul 2019 07:35:12 +0000 (09:35 +0200)]
pve5to6: check ceph config for mon_host line

this already works on luminous, so it does not harm to add it already,
and is recommended when both msgr1 and msgr2 is activated in nautilus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 4731f493c3484d5ea95dee7978678779189ef779)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: invert check for noout for nautilus
Fabian Grünbichler [Wed, 3 Jul 2019 13:28:38 +0000 (15:28 +0200)]
5to6: invert check for noout for nautilus

mainly because it looks strange to get a warning after the upgrade is
finished and noout has been removed again

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 600a106ba0c47150c29f87561d480d4b89085d41)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: followup: still include nodename in IP check
Thomas Lamprecht [Thu, 4 Jul 2019 07:33:43 +0000 (09:33 +0200)]
5to6: followup: still include nodename in IP check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit eb7dae8bba7f57abdf16d3843ce6716786d04bf8)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years ago5to6: reuse $nodename
Fabian Grünbichler [Wed, 3 Jul 2019 13:28:37 +0000 (15:28 +0200)]
5to6: reuse $nodename

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 473a71d246492941b17d003decc8d2c1e7d5b01a)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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>
(cherry picked from commit 1760de9011fdfbc3f734c3039125d46176586545)
Signed-off-by: Thomas Lamprecht <t.lamprecht@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>
(cherry picked from commit 95c3dc246008b64cdc66e77f08a4862f531e7f0a)
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>
(cherry picked from commit 1f16530be97b27c0674d6e1d7b842844a5d20043)
Signed-off-by: Thomas Lamprecht <t.lamprecht@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 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>
(cherry picked from commit 5a7a3630d770604a0d187190a6e9e6046048eb65)
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>
(cherry picked from commit 6e41184b1a7af21523380c7cb5080462d89bbcf4)
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>
(cherry picked from commit e739e0ba6724d41f2a912796b68833ebdc8baadd)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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 agobump version to 5.4-9
Thomas Lamprecht [Thu, 27 Jun 2019 18:29:40 +0000 (20:29 +0200)]
bump version to 5.4-9

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 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 agobump version to 5.4-8
Thomas Lamprecht [Tue, 25 Jun 2019 10:52:04 +0000 (12:52 +0200)]
bump version to 5.4-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@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>
(cherry picked from commit b8b6003fde296c00ac1f798311e46bcc1a47ed65)
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>
(cherry picked from commit 09df2aac59f255dc48fbbca5c2299b89e6015663)
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>
(cherry picked from commit f72c8f8c1c7e5bd52e98da36cc5f6464b614bae2)
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>
(cherry picked from commit a5d0627800ac98cf60ade5469ba19327d5cfbdae)
Signed-off-by: Thomas Lamprecht <t.lamprecht@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>
(cherry picked from commit 5b10325d4a3bc3fa0686719bfb6b8fdb40487469)
Signed-off-by: Thomas Lamprecht <t.lamprecht@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>
(cherry picked from commit 3331257e0fbc0acbcc55df338b4ca9b1d9558eba)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.4-7
Thomas Lamprecht [Fri, 7 Jun 2019 14:50:40 +0000 (16:50 +0200)]
bump version to 5.4-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: vm: add CPU flag selector with tri-state awareness
Thomas Lamprecht [Thu, 6 Jun 2019 20:22:19 +0000 (22:22 +0200)]
gui: vm: add CPU flag selector with tri-state awareness

This allows to select the tri-state (enforce on, enforce off, default
from QEMU+CPU Model) for each CPU flag independently.

For this a grid with a widgetcolumn is used hosting tree radio
buttons for each state. They're marked '+' for enforce on, '-' for
enforce off and the default has no label, as it isn't easy to add in
such a way that it does not confuses people and does not looks
completely ugly.. But, to help people which have a hard time figuring
out what the states mean, a fake column was added showing the current
selected state's outcome in words.

For show casing the new nice interface add all currently supported
flags from out API-
It could be worth to add some selected CPU model awareness, so that
flags are only enabled if they can make sense with the selected
model. But one should be able to add this relative easily with this
as base.

The hardcoded flag lists is not ideal, we should try to generate this
in the future, but here already qemu-server is lacking and this is
rather independent of the fact and can be done later one just fine
too.

Note that this /is/ an *advanced* feature so not visible for all
directly, while I try to document in short what a flag does it surely
isn't perfect and to short to explain all nuances, they should give
enough pointers to know if it's relevant at all (amd / intel cpu) and
for what one should research

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/rules: enable parallel builds
Thomas Lamprecht [Fri, 7 Jun 2019 14:20:43 +0000 (16:20 +0200)]
d/rules: enable parallel builds

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoRevert "buildsys: use dpkg-dev makefile helpers for pkg info"
Thomas Lamprecht [Fri, 7 Jun 2019 14:22:15 +0000 (16:22 +0200)]
Revert "buildsys: use dpkg-dev makefile helpers for pkg info"

As we'd need to also cherry-pick commit
b597d23d354665ddea247c3ad54ece1b84921768 to make this correct, but
it is more or less a API breakage which we cannot backport in
stable-5 so don't do that but revert this one here, bummer.

This reverts commit 69179449a9976429d62b495e1071bb531a0ee366.

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 agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Wed, 22 May 2019 19:15:47 +0000 (21:15 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2223: fix set_button_status isCDRom
Dominik Csapak [Wed, 29 May 2019 13:36:03 +0000 (15:36 +0200)]
fix #2223: fix set_button_status isCDRom

value is not always a string (depending on the value that changed),
so we have to convert it to a string to have a 'match' function

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 177b83abb390667b22423a3dd486479a66ecc69d)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: FW log ratelimit: avoid access on possible undefined rate
Thomas Lamprecht [Thu, 16 May 2019 08:31:00 +0000 (10:31 +0200)]
ui: FW log ratelimit: avoid access on possible undefined rate

This is an optional parameter and needs to be guarded, a simple
"truthy" check is enough, as eithers it's missing or a more complex
string (i.e., it cannot be '0' or the like)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: FW log ratelimit: fix default value
Thomas Lamprecht [Thu, 16 May 2019 08:30:22 +0000 (10:30 +0200)]
ui: FW log ratelimit: fix default value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: FW options: do not draw border arount rate limit separator
Thomas Lamprecht [Thu, 16 May 2019 07:48:37 +0000 (09:48 +0200)]
ui: FW options: do not draw border arount rate limit separator

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix lint errors introduced by NFS version option patch
Thomas Lamprecht [Thu, 16 May 2019 07:35:31 +0000 (09:35 +0200)]
fix lint errors introduced by NFS version option patch

fixes commit d3abac4335ddeb691d8fc10f53b8cafbc2796925

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.4-6
Thomas Lamprecht [Wed, 15 May 2019 14:20:40 +0000 (16:20 +0200)]
bump version to 5.4-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/control: bump version dependency of libpve-access-control
Thomas Lamprecht [Wed, 15 May 2019 14:21:41 +0000 (16:21 +0200)]
d/control: bump version dependency of libpve-access-control

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi/nodes journal: fix parameter types and add minimum
Thomas Lamprecht [Wed, 15 May 2019 14:12:20 +0000 (16:12 +0200)]
api/nodes journal: fix parameter types and add minimum

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopartially revert "api/nodes journal: add and enforce parameter conflicts"
Thomas Lamprecht [Wed, 15 May 2019 14:02:09 +0000 (16:02 +0200)]
partially revert "api/nodes journal: add and enforce parameter conflicts"

This partially reverts commit f9b08743a5a2322427ebdce78eb84c990bae7e31
as we had some wrong assumptions about lastentries and the other
params, so just note conflicts in the description but let the tool
itself make the checks

This reverts commit f9b08743a5a2322427ebdce78eb84c990bae7e31.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2185: add option to change nfs version on gui
Oguz Bektas [Wed, 15 May 2019 13:21:56 +0000 (15:21 +0200)]
fix #2185: add option to change nfs version on gui

this enables us to specify an nfs version while editing/creating an nfs
mount. it used to default to vers=3 without the ability to change it in
gui. now it supports: 3, 4, 4.1 and 4.2

it should also be possible to add further options in the future (rsize,
wsize, timeo, etc.) on this screen.

Co-Authored-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agoapi/nodes journal: add and enforce parameter conflicts
Thomas Lamprecht [Wed, 15 May 2019 13:16:22 +0000 (15:16 +0200)]
api/nodes journal: add and enforce parameter conflicts

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi/nodes: add journal to index
Thomas Lamprecht [Wed, 15 May 2019 13:15:51 +0000 (15:15 +0200)]
api/nodes: add journal to index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agovzdump: allow plugins to set guest resume time
Thomas Lamprecht [Wed, 8 May 2019 17:23:37 +0000 (17:23 +0000)]
vzdump: allow plugins to set guest resume time

This refactors things a bit to avoid having the same two lines in 3
places and allows the plugin to set the "guest was resumed" time
stamp at the point it really was resumed, not only once the backup
completed (see #503). Further, if a plugin prints it's own
"resumed/running after X seconds" message, it can unset the vmstop
time and thus avoid printing the message twice.

related to a fix for #503

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/control: bump version dependency of proxmox-widget-toolkit
Thomas Lamprecht [Wed, 15 May 2019 12:29:33 +0000 (14:29 +0200)]
d/control: bump version dependency of proxmox-widget-toolkit

ensures we've the new Journal panel available

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