]> git.proxmox.com Git - pve-manager.git/commit
Fix: ceph: mon_address not considered by new MON
authorAlwin Antreich <a.antreich@proxmox.com>
Wed, 11 Mar 2020 15:22:36 +0000 (16:22 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 15 Apr 2020 07:52:31 +0000 (09:52 +0200)
commit485b2cd10a9a710ed06908d71b4277d5662a469a
tree7e2ff517f405942eef017ddeef83fb16ac0fb653
parent93bf6589864c15eafe980ef4ee962553d39922fb
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>
PVE/API2/Ceph/MON.pm