Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kraken: tests: AttributeError: Thrasher instance has no attribute 'ceph_objectstore_tool' #13609

Merged
merged 1 commit into from Apr 13, 2017

Conversation

smithfarm
Copy link
Contributor

If Thrasher.__init__() spawns the do_thrash thread before initializing the
ceph_objectstore_tool property, do_thrash races with the rest
of Thrasher.__init__() and in some cases do_thrash can call kill_osd() before
Trasher.__init__() progresses much further. This can lead to an exception
("AttributeError: Thrasher instance has no attribute 'ceph_objectstore_tool'")
being thrown in kill_osd().

This commit eliminates the race by making sure the ceph_objectstore_tool
attribute is initialized before the do_thrash thread is spawned.

Fixes: http://tracker.ceph.com/issues/18799
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit b519d38)
@smithfarm smithfarm self-assigned this Feb 23, 2017
@smithfarm smithfarm added this to the kraken milestone Feb 23, 2017
@smithfarm smithfarm requested a review from tchaikov April 13, 2017 15:26
@smithfarm
Copy link
Contributor Author

@tchaikov This passed a full round of integration tests at http://tracker.ceph.com/issues/19009

@smithfarm smithfarm merged commit eb84959 into ceph:kraken Apr 13, 2017
@smithfarm smithfarm deleted the wip-19064-kraken branch April 13, 2017 16:20
@smithfarm smithfarm changed the title kraken: AttributeError: Thrasher instance has no attribute 'ceph_objectstore_tool' kraken: tests: AttributeError: Thrasher instance has no attribute 'ceph_objectstore_tool' Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants