]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-monstore-tool: rename mon-ids in initial monmap
authorKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 08:27:22 +0000 (16:27 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 09:38:28 +0000 (17:38 +0800)
commit4b3df5a850db054928f9fcc6ef0a160a05a2ffa9
treede9954c9c5fb65ee25be86406eb18967cc86c8a8
parent67a2a4e7aa851a21c94415de4aaff655ae3bfaed
ceph-monstore-tool: rename mon-ids in initial monmap

when ceph-mon starts, it checks to see if it's listed in the monmap, if
not it complains
```
no public_addr or public_network specified, and mon.a not present in
monmap or ceph.conf.
```
then bails out. normally, the monitor will try to rename its name in
monmap when performing "mkfs", but in our case, we are merely using the
"mkfs" monmap for passing the monmap built by ceph-monstore-tools, and
we don't actually go through the "mkfs" process. so, ceph-mon won't
rename when booting up.

in this change, user is allowed to specify the mon-ids in command line
when rebuilding mondb, the default mon-ids would be a,b,c,... if not
specified.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/rados/troubleshooting/troubleshooting-mon.rst
src/tools/ceph_monstore_tool.cc