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

common/PluginRegistry: improve error output for shared library load fa… #11081

Merged
merged 1 commit into from Sep 15, 2016

Conversation

ifed01
Copy link
Contributor

@ifed01 ifed01 commented Sep 14, 2016

…ilure. When both load attempts fail we could see the last dlopen result only. But the first load attempt could report different issue. This patch provides both errors in the following way:

2016-09-14 15:25:42.528253 7fa37cb3a840 -1 load failed dlopen(): "/usr/local/lib/ceph/compressor/compressor/libceph_snappy.so:
cannot open shared object file: No such file or directory" or "/usr/local/lib/ceph/compressor/libceph_snappy.so: undefined symb
ol: _ZN4ceph14PluginRegistry3addERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_6PluginE"

Signed-off-by: Igor Fedotov ifedotov@mirantis.com

…ilure.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
@ifed01 ifed01 added the common label Sep 14, 2016
@liewegas liewegas merged commit c1fd5dd into ceph:master Sep 15, 2016
@ifed01 ifed01 deleted the wip-plugin-registry-fix branch September 16, 2016 14:45
@ifed01 ifed01 restored the wip-plugin-registry-fix branch September 16, 2016 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants