]> 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 31411/head
authorSage Weil <sage@redhat.com>
Thu, 31 Oct 2019 15:42:53 +0000 (10:42 -0500)
committerSage Weil <sage@redhat.com>
Tue, 5 Nov 2019 13:22:36 +0000 (07:22 -0600)
commitb630bb95058052bc10b1c7fb9f1d2bcb5b28b49d
tree51c8d78fc233318e5d6fbc0f3c360a00d50707e4
parentf83be1649559c41d19ca6b9ef5ca521f650830ed
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>
(cherry picked from commit 67e5139b02518cbc83e5156e2f74a5d22f4d97a4)
qa/workunits/cephtool/test.sh
src/mgr/ActivePyModules.cc