]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/ActivePyModules: behave if a module queries a devid that does not exist 31291/head
authorSage Weil <sage@redhat.com>
Thu, 31 Oct 2019 15:42:53 +0000 (10:42 -0500)
committerSage Weil <sage@redhat.com>
Thu, 31 Oct 2019 15:44:16 +0000 (10:44 -0500)
commit67e5139b02518cbc83e5156e2f74a5d22f4d97a4
tree6b5fbff0c889ef4bed203594c4d3b12d8c507f59
parentb315f2eeea40deb69aed38bc6966bb2cf4a972cd
mgr/ActivePyModules: behave if a module queries a devid that does not exist

The GIL reacquire was being handled in the lambda, but that was not
getting called if the device didn't exist, leading to a crash.

Add a trivial CLI test.

Fixes: https://tracker.ceph.com/issues/42578
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/cephtool/test.sh
src/mgr/ActivePyModules.cc