Commit Graph

4088 Commits

Author SHA1 Message Date
Fabian Grünbichler
f94e33c0e1 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>
2019-07-04 09:41:30 +02:00
Fabian Grünbichler
329cf22a70 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>
2019-07-04 09:41:30 +02:00
Thomas Lamprecht
92c64229a9 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>
2019-07-04 09:41:30 +02:00
Fabian Grünbichler
cd77216038 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>
2019-07-04 09:41:30 +02:00
Thomas Lamprecht
dc7eea012c 5to6: improve ceph warning on non OK state
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-03 13:14:05 +02:00
Thomas Lamprecht
22ad5ba62e 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>
2019-07-02 12:10:48 +02:00
Thomas Lamprecht
450957c08a 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>
2019-07-02 12:10:48 +02:00
Dominik Csapak
eb7fda9966 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>
2019-07-02 12:10:48 +02:00
Thomas Lamprecht
663ae4d86b 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>
2019-06-28 08:46:00 +02:00
Thomas Lamprecht
86a3955d78 5to6: followup kernel version checks, make compatible with PVE 5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-28 08:35:45 +02:00
Fabian Grünbichler
5d2ae29215 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>
2019-06-28 08:35:45 +02:00
Fabian Grünbichler
7f4b3ea551 5to6: add check for running kernel version
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2019-06-28 08:35:45 +02:00
Thomas Lamprecht
eba7c6f165 bump version to 5.4-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 20:29:40 +02:00
Thomas Lamprecht
ebd4de69d4 pve5to6: improve is-node-IP active check
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:48:36 +02:00
Thomas Lamprecht
f814c077d8 pve5to6: add total count in summary
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:48:36 +02:00
Thomas Lamprecht
52d469afde pve5to6: align summary counters
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:48:36 +02:00
Thomas Lamprecht
3f5db7faac pve5to6: list packages with updates in new line
with two spaces indentation, like apt does

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:48:36 +02:00
Thomas Lamprecht
6afec5dab9 pve5to6: versions: detect if already upgraded
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:48:36 +02:00
Thomas Lamprecht
f3d40afa75 pve5to6: add and use print_header
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:48:36 +02:00
Thomas Lamprecht
89abf04dfe 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>
2019-06-27 19:48:36 +02:00
Mira Limbeck
b0a8f08b82 move check_kvm_nested call to check_misc
Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2019-06-27 19:48:36 +02:00
Mira Limbeck
9c2f3b7394 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>
2019-06-27 19:48:36 +02:00
Dominik Csapak
7bf30805db 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>
2019-06-26 18:30:10 +02:00
Fabian Grünbichler
23bba5a415 5to6 add color support
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2019-06-26 18:30:10 +02:00
Fabian Grünbichler
5d100641d5 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>
2019-06-26 18:30:10 +02:00
Thomas Lamprecht
f112796621 bump version to 5.4-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-25 12:52:04 +02:00
Thomas Lamprecht
4719a0751f 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>
2019-06-25 11:42:29 +02:00
Thomas Lamprecht
5b17681098 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>
2019-06-25 10:16:06 +02:00
Thomas Lamprecht
ed5110fd83 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>
2019-06-25 10:16:00 +02:00
Thomas Lamprecht
8ad498b81f 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>
2019-06-25 10:15:56 +02:00
Fabian Grünbichler
c62eb5b28f 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>
2019-06-25 10:15:51 +02:00
Fabian Grünbichler
83b778c9ba 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>
2019-06-25 10:15:47 +02:00
Thomas Lamprecht
5d1eb21efd 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>
2019-06-25 10:11:40 +02:00
Thomas Lamprecht
5a3acc0fd0 bump version to 5.4-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-07 16:50:40 +02:00
Thomas Lamprecht
92572ead6d 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>
2019-06-07 16:24:26 +02:00
Thomas Lamprecht
79adddfba4 d/rules: enable parallel builds
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-07 16:24:26 +02:00
Thomas Lamprecht
a3a0977f2b 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 69179449a9.
2019-06-07 16:24:26 +02:00
Thomas Lamprecht
ea0ad09426 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>
2019-06-06 16:22:21 +02:00
Thomas Lamprecht
69179449a9 buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-06 16:22:21 +02:00
Dominik Csapak
138507bd3b 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>
2019-05-31 11:05:14 +02:00
Thomas Lamprecht
f6632d26b2 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>
2019-05-16 10:31:02 +02:00
Thomas Lamprecht
671f470e09 ui: FW log ratelimit: fix default value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-16 10:30:34 +02:00
Thomas Lamprecht
df93368f74 ui: FW options: do not draw border arount rate limit separator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-16 09:48:37 +02:00
Thomas Lamprecht
a671b6b5f9 fix lint errors introduced by NFS version option patch
fixes commit d3abac4335

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-16 09:36:00 +02:00
Thomas Lamprecht
44d386a08e bump version to 5.4-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 16:21:51 +02:00
Thomas Lamprecht
a0dac218ef d/control: bump version dependency of libpve-access-control
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 16:21:51 +02:00
Thomas Lamprecht
961399a308 api/nodes journal: fix parameter types and add minimum
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 16:12:20 +02:00
Thomas Lamprecht
a03cb8b89e partially revert "api/nodes journal: add and enforce parameter conflicts"
This partially reverts commit f9b08743a5
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 f9b08743a5.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 16:05:19 +02:00
Oguz Bektas
d3abac4335 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>
2019-05-15 15:28:05 +02:00
Thomas Lamprecht
f9b08743a5 api/nodes journal: add and enforce parameter conflicts
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 15:16:22 +02:00