mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 17:13:09 +00:00
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>
This commit is contained in:
parent
c0d772c434
commit
8ade3b35fa
@ -435,8 +435,10 @@ sub check_ceph {
|
||||
my $conf = PVE::Cluster::cfs_read_file('ceph.conf');
|
||||
if (defined($conf)) {
|
||||
my $global = $conf->{global};
|
||||
if (!defined($global->{mon_host}) && !defined($global->{"mon host"})) {
|
||||
log_warn("No mon_host entry found in ceph config.\n It is recommended to add mon_host with all monitor addresses(without ports) to the global section.");
|
||||
|
||||
my $global_monhost = $global->{mon_host} // $global->{"mon host"} // $global->{"mon-host"};
|
||||
if (!defined($global_monhost)) {
|
||||
log_warn("No 'mon_host' entry found in ceph config.\n It's recommended to add mon_host with all monitor addresses (without ports) to the global section.");
|
||||
} else {
|
||||
log_pass("Found mon_host entry.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user