... when the rbd_support module is not ready.
Fixes: https://tracker.ceph.com/issues/61688
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
6351ef5c8e691e359b1bf913dde4dbc8a441be1d)
Conflicts:
src/pybind/mgr/rbd_support/module.py
- Above conflict was due to commit
dcb51b0
("mgr/rbd_support: define commands using CLICommand") not in pacific
def handle_command(self, inbuf, cmd):
if not self.module_ready:
- return -errno.EAGAIN, "", ""
+ return (-errno.EAGAIN, "",
+ "rbd_support module is not ready, try again")
# ensure we have latest pools available
self.rados.wait_for_latest_osdmap()