pve-manager/PVE/API2/Ceph
Alwin Antreich 485b2cd10a Fix: ceph: mon_address not considered by new MON
The public_addr option for creating a new MON is only valid for manual
startup (since Ceph Jewel) and is just ignored by ceph-mon during setup.
As the MON is started after the creation through systemd without an IP
specified. It is trying to auto-select an IP.

Before this patch the public_addr was only explicitly written to the
ceph.conf if no public_network was set. The mon_address is only needed
in the config on the first start of the MON.

The ceph-mon itself tries to select an IP on the following conditions.
- no public_network or public_addr is in the ceph.conf
    * startup fails

- public_network is in the ceph.conf
    * with a single network, take the first available IP
    * on multiple networks, walk through the list orderly and start on
      the first network where an IP is found

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
2020-04-15 09:52:31 +02:00
..
FS.pm ceph tools: factor out frequent keyring and config init check 2019-07-23 07:48:45 +02:00
Makefile ceph: move Monitor API calls to API2/Ceph/MON.pm 2018-12-20 09:44:01 +01:00
MDS.pm ceph: make all service name regexes the same 2020-03-04 15:38:09 +01:00
MGR.pm ceph: make all service name regexes the same 2020-03-04 15:38:09 +01:00
MON.pm Fix: ceph: mon_address not considered by new MON 2020-04-15 09:52:31 +02:00
OSD.pm ceph: do not check ips if no network is configured 2020-03-04 15:38:09 +01:00