Hi ceph community,

    I found that ceph mgr crashed if the 'mgr module path' is empty, see the log below (I add a log to print the path at line 2):

2021-04-14T03:36:08.428+0000 7f59be07b980  0 ceph version 0712f27 (c0712f27e4c61ab592f2279bfa9c283158a20876) quincy (dev), process ceph-mgr, pid 1103795
2021-04-14T03:36:08.456+0000 7f59be07b980  0 log_channel(cluster) log [INF] : path is 
2021-04-14T03:36:08.464+0000 7f59be07b980 -1 *** Caught signal (Aborted) **
 in thread 7f59be07b980 thread_name:ceph-mgr

 ceph version 0712f27 (c0712f27e4c61ab592f2279bfa9c283158a20876) quincy (dev)
 1: /home/zyh/ceph/build//bin/ceph-mgr() [0x133b2da]
 2: /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0) [0x7f59beb223c0]
 3: gsignal()
 4: abort()
 5: /lib/x86_64-linux-gnu/libstdc++.so.6(+0x9e951) [0x7f59be941951]
 6: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa47c) [0x7f59be94d47c]
 7: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa4e7) [0x7f59be94d4e7]
 8: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa799) [0x7f59be94d799]
 9: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xa228d) [0x7f59be94528d]
 10: (std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&)+0x23) [0x10dd693]
 11: (PyModuleRegistry::probe_modules(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const+0x17f) [0x10d917f]
 12: (PyModuleRegistry::init()+0x1be) [0x10d885e]
 13: (MgrStandby::init()+0xa5e) [0x109cbbe]
 14: main()
 15: __libc_start_main()
 16: _start()
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

Thanks,
Yong-Hao Zou


zouyonghao1994@163.com