Commit Graph

31 Commits

Author SHA1 Message Date
Thomas Lamprecht
8ade3b35fa 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>
2019-07-04 11:27:54 +02:00
Dominik Csapak
c0d772c434 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>
2019-07-04 11:27:54 +02:00
Dominik Csapak
42bbe3edd1 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>
2019-07-04 11:27:54 +02:00
Fabian Grünbichler
a75241fb90 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>
2019-07-04 09:41:30 +02:00
Thomas Lamprecht
33866e3cdc 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>
2019-07-04 09:41:30 +02:00
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
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
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
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