Commit Graph

4631 Commits

Author SHA1 Message Date
Tim Marx
f337626155 fix #1278 api: add pool backup option
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-28 18:05:19 +02:00
Tim Marx
60e049c231 whitespace cleanup
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-28 18:01:04 +02:00
Tim Marx
c54f9a758d ui: migrate: add storage and size information to preconditions
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-28 17:42:21 +02:00
Dominik Csapak
b8c37fdae1 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>
2019-06-28 15:14:04 +02:00
Dominik Csapak
78f99813bb 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>
2019-06-28 14:23:23 +02:00
Thomas Lamprecht
696a8cac2d silent some lintian warnings
"privacy-breach-generic" is  a false positive here (lintian bug
907957)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-28 11:30:00 +02:00
Thomas Lamprecht
70bf844a14 d/maintscript: really remove the old apt hook for kernel
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-28 11:29:50 +02:00
Thomas Lamprecht
bfdc97f35d buildsys: fixup: fully remove pve-apt-hook mentionings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-28 10:57:03 +02:00
Stoiko Ivanov
2e98db915d 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).
2019-06-28 10:57:03 +02:00
Thomas Lamprecht
7d1b353b09 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:42:20 +02:00
Thomas Lamprecht
f034380db0 5to6: followup kernel version checks, make compatible with PVE 5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-28 08:34:40 +02:00
Fabian Grünbichler
32526d275a 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-27 21:52:56 +02:00
Fabian Grünbichler
f8da12992b 5to6: add check for running kernel version
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2019-06-27 21:52:56 +02:00
Thomas Lamprecht
7a1a8851ac ui: ceph wizard: drop local setAllowBlank overwrite
all our combogrids now have this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 21:52:10 +02:00
Thomas Lamprecht
45e62391eb ui: cluster: use new network selector
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 21:51:46 +02:00
Thomas Lamprecht
b453339028 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>
2019-06-27 21:29:06 +02:00
Thomas Lamprecht
bacd0b0b0b pve5to6: improve is-node-IP active check
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:30:42 +02:00
Thomas Lamprecht
bc91ccac99 pve5to6: add total count in summary
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:23:05 +02:00
Thomas Lamprecht
1c6ac415c4 pve5to6: align summary counters
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:21:45 +02:00
Thomas Lamprecht
079d1188a0 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:15:39 +02:00
Thomas Lamprecht
f31c3e4a17 pve5to6: versions: detect if already upgraded
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 19:15:15 +02:00
Thomas Lamprecht
465b3ea2b0 pve5to6: add and use print_header
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 18:41:05 +02:00
Thomas Lamprecht
3f11a62cfa 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 18:04:32 +02:00
Mira Limbeck
e6191e3eab move check_kvm_nested call to check_misc
Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2019-06-27 17:37:39 +02:00
Mira Limbeck
0286a6598d 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 17:37:39 +02:00
Thomas Lamprecht
575d96c65a Revert "d/control: fix mail-transport-agent-dependency-does-not-specify-default-mta"
This reverts commit 1cda58da00.
As else Debian installations always get exim as default MTA, just
lets keep postfix for now
2019-06-26 18:21:52 +02:00
Dominik Csapak
eb8bf43025 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 17:22:01 +02:00
Fabian Grünbichler
6acde780f6 5to6 add color support
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2019-06-26 17:22:01 +02:00
Fabian Grünbichler
2722899807 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 17:22:01 +02:00
Thomas Lamprecht
8ec8af9c60 use https links to our sites
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-26 14:33:56 +02:00
Thomas Lamprecht
21732cb0bf update sources.list to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-26 11:17:01 +02:00
Thomas Lamprecht
da9d14cd7a 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>
2019-06-25 17:10:33 +02:00
Thomas Lamprecht
8fb3bf9845 bump version to 6.0-0+3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-25 12:39:24 +02:00
Thomas Lamprecht
93547c89a2 gui: cluster: initial work to switch ringX to linkX params
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-25 12:31:56 +02:00
Christian Ebner
200cef80ee backup jobs: Aquire lock before modifying vzdump.cron
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-06-25 11:43:31 +02:00
Thomas Lamprecht
1370f62818 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:02 +02:00
Thomas Lamprecht
29bd3b5950 pve5to6: avoid Use of uninitialized value $osd_flags in pattern match
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-25 10:04:59 +02:00
Thomas Lamprecht
fa84f50c1f pve5to6 will never be a POD based man page, fake it for now
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-25 09:51:00 +02:00
Thomas Lamprecht
071d761a3f followups: pve5to6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-25 09:04:07 +02:00
Fabian Grünbichler
75584009f8 upgrade checklist
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2019-06-25 09:03:42 +02:00
Fabian Grünbichler
8ba0d0a05e 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>
2019-06-25 09:03:42 +02:00
Thomas Lamprecht
8c6e5fc1b8 bin/make: fix pod2man generation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-25 09:03:42 +02:00
Thomas Lamprecht
deca45c125 followup: HW Raid note: move to bottom and fixup link
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-21 15:28:20 +02:00
Dominik Csapak
bd36813405 gui: add raid warnings for ceph and zfs
Wording is from the installer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-06-21 15:19:02 +02:00
Thomas Lamprecht
c18db15ba0 ceph: ensure /etc/ceph belongs to ceph
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-19 17:00:21 +02:00
Thomas Lamprecht
790ebc9053 api: ceph mon: add missing perl use statement for Cephconfig
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-19 16:59:26 +02:00
Dominik Csapak
f4d0945862 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>
2019-06-19 15:26:33 +02:00
Dominik Csapak
ea2ecb0c2f 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>
2019-06-19 15:26:33 +02:00
Dominik Csapak
9bc15eea0a ceph: mon destroy: add cfs lock
so that multiple users cannot remove a monitor simultaniously

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-06-19 15:26:33 +02:00
Dominik Csapak
3babcc1d52 ceph: mon destroy: refactor removal assertions
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-06-19 15:26:33 +02:00