Skip to content

test: ceph_test_objectstore: do not override plugin-dir if not necessary - #9666

Merged
tchaikov merged 2 commits into
masterfrom
wip-ceph_test_objectstore
Jun 15, 2016
Merged

tchaikov merged 2 commits into
masterfrom
wip-ceph_test_objectstore

Conversation

@tchaikov

Copy link
Copy Markdown
Contributor

No description provided.

@tchaikov tchaikov changed the title Wip ceph test objectstore test: ceph_test_objectstore: do not override plugin-dir if not necessary Jun 13, 2016
@tchaikov

Copy link
Copy Markdown
Contributor Author

@ifed01 could you please take a look? thanks.

Comment thread src/test/objectstore/store_test.cc Outdated
static bool plugin_exists(const string& compressor_dir)
{
string path(compressor_dir);
path += "/libceph_snappy.so";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other plugins will depend on snappy presence that's not good IMHO

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ifed01 how about glob(3) to see if any plugin exists in this directory?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or you'd suggest we check for the existence of the compressor_dir directory instead?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's about check for non-empty compressor_dir directory?

tchaikov added 2 commits June 15, 2016 21:23
there is chance that we launch the test with the plugins installed in
`/usr/${lib}/ceph'. and we don't have ".lib" or $CEPH_LIB for
ceph_test_objectstore, in this case, we should leave plugin-dir
unchanged. it will work just fine if ceph-base or ceph-common is
installed.

Fixes: http://tracker.ceph.com/issues/16254
Signed-off-by: Kefu Chai <[email protected]>
@tchaikov
tchaikov force-pushed the wip-ceph_test_objectstore branch from 57ff489 to ed19466 Compare June 15, 2016 13:25
@tchaikov

tchaikov commented Jun 15, 2016 •

Copy link
Copy Markdown
Contributor Author

changelog

  • rebase against master
  • do not set "plugin_dir" if $CEPH_LIB does not have any plugin in it.

@ifed01 could you take a look again? thanks.

@ifed01

ifed01 commented Jun 15, 2016

Copy link
Copy Markdown
Contributor

lgtm!

@tchaikov
tchaikov merged commit 5dd0430 into master Jun 15, 2016
@tchaikov
tchaikov deleted the wip-ceph_test_objectstore branch June 15, 2016 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants