mon demon ignoring monitor_address
See original GitHub issueansible 2.8. ceph-ansible 4.0.5. ceph nautilus
previously I was trying things with a single interface. now I’m trying with a more real physical config, and multiple nics. starting from scratch.
I’ve specified monitor_address: as a specific IP addr in all.yml
that IP address is successfully showing up in /etc/ceph/ceph.conf
but the actual mon demon listening on port 3300… is listening on a DIFFERENT IP address. It happens to be listening on the first IP address returned by “Ip addr”. and ONLY that IP address.
Seems like a bug to me.
If this is actually “working as designed”, and it is expected that sysadmin is required to specify interface name in the case of having multiple interfaces… then one might call this a documentation bug.
currently, the comments, aka documetation, say,
"If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable.
Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
but… I DID specify monitor_address. and it is not affecting the address the monitor binds to.
(where is the actual demon configured? I looked through /etc/systemd/system/ceph-mon.target.wants/ceph-mon@corpceph1n01.service and /etc/sysconfig/ceph but didnt see anything promising. )
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (13 by maintainers)
Top GitHub Comments
if you specify
monitor_address
the ceph-mon daemon will bind on that IP address. if you specifymonitor_interface
the ceph-mon daemon will bind on the first IP address present on that interface. if you specifymonitor_address_block
the ceph-mon daemon will bind on the first IP address present in that CIDR range present on the node.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.