Bug #42844
closedmon: only bind to v2 addr if mkfs with hostname sytle mon_host
0%
Description
the build_initial will use mon_host to generate a V2 only monmap, see below, the new mon is also listed in the mon_host, so that it is in the initial monmap.
2019-11-01 13:57:08.429 7ff30b15fe80 0 set uid:gid to 167:167 (ceph:ceph)
2019-11-01 13:57:08.433 7ff30b15fe80 10 public_network 10.0.0.0/8
2019-11-01 13:57:08.433 7ff30b15fe80 10 public_addr 10.0.0.0/8
2019-11-01 13:57:08.457 7ff30b15fe80 1 initial generated monmap:
epoch 0
fsid 115b66e3-a418-46e8-a442-5bd37d9a0138
last_changed 2019-11-01 13:57:08.458348
created 2019-11-01 13:57:08.458348
min_mon_release 0 (unknown)
0: v2:10.73.212.16:3300/0 mon.noname-f
1: v2:10.156.198.89:3300/0 mon.noname-a
2: v2:10.156.206.117:3300/0 mon.noname-d
3: v2:10.156.214.147:3300/0 mon.noname-e
4: v2:10.156.214.148:3300/0 mon.noname-c
5: v2:10.195.208.203:3300/0 mon.noname-b
Later on in https://github.com/ceph/ceph/blob/master/src/ceph_mon.cc#L430-L433 the newmon is properly renamed in the initial monmap.
Thus later when the monitor bootstrap, it go through https://github.com/ceph/ceph/blob/master/src/ceph_mon.cc#L693 instead of L715, it get IP (V2 ONLY) from the monmap.
Updated by Kefu Chai over 4 years ago
- Status changed from New to Pending Backport
- Backport set to nautilus,mimic
Updated by Nathan Cutler over 4 years ago
- Copied to Backport #42994: nautilus: mon: only bind to v2 addr if mkfs with hostname sytle mon_host added
Updated by Nathan Cutler over 4 years ago
- Copied to Backport #42995: mimic: mon: only bind to v2 addr if mkfs with hostname sytle mon_host added
Updated by Nathan Cutler over 4 years ago
- Subject changed from mon: only bind to v2 addr if mkfs with hostname sytle mon_host to mon: only bind to v2 addr if mkfs with hostname sytle mon_host
Updated by Nathan Cutler about 3 years ago
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".