This [*] is my ceph.conf
10.70.42.9 is the public address
And it is indeed the IP used by the MON daemon:
[root@c-mon-02 ~]# netstat -anp | grep 6789
tcp0 0 10.70.42.9:6789 0.0.0.0:* LISTEN
3835/ceph-mon
tcp0 0 10.70.42.9:33592
check ceph.conf, it controls to which mon IP the client tries to connect.
2018-05-10 12:57 GMT+02:00 Massimo Sgaravatto
:
> I configured the "public network" attribute in the ceph configuration file.
>
> But it looks like to me that in the "auth get client.admin"
I configured the "public network" attribute in the ceph configuration file.
But it looks like to me that in the "auth get client.admin" command [*]
issued by ceph-deploy the address of the management network is used (I
guess because c-mon-02 gets resolved to the IP management address)
Cheers,
Monitors can use only exactly one IP address. ceph-deploy uses some
heuristics
based on hostname resolution and ceph public addr configuration to guess
which
one to use during setup. (Which I've always found to be a quite annoying
feature.)
The mon's IP must be reachable from all ceph daemons and