Skip to contentSkip to conversation

plugin infra issues

DISCUSSION Sage Weil 2 participants 2 messages Jun 22, 2016 – Jun 24, 2016 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Sage Weil

author
#3 lore raw

[adding ceph-devel]

Quoted 5 lines · Igor Fedotov

Well, having ceph.conf helps a bit. But PluginRegistry::load still appends plugin type (i.e. "/compressor") to the path. Hence it wouldn't work on a clean build IMHO...
Another point - I'm not sure if that's a good practice to require config file to run the tests. IMO it's preferable to have they working properly as-is.

I think the solution to this shoudl focus on the cmake developer workflow. Build is in ceph.git/build/, stuff goes in lib/, and the default build should set the default ceph lib path to ./lib. Or, have do_cmake.sh create a ceph.conf that sets these paths in a build/ceph.conf file. Either way, we should make sure the recommended and documented developer workflow (building and running via vstart, running unit tests, etc.) works well out of the box...

Ali, does that sound like the right way to go?

sage

Quoted 45 lines · Sage Weil
Quoted 40 lines

It works for me because my ./ceph.conf specifies the right dir. If you run vstart.sh this will get set up.

Quoted 34 lines · Igor Fedotov

Hi Sage,

as I mentioned during the syncup I faced some issues when running ceph_test_objectstore. Namely BluestoreStatFSTest fails.

The root cause is that it's unable to load snappy compressor plugin after your
recent cleanup. Now store_test attempts to do the load from /usr/local/lib...
folder only while previously it tried .libs/compressor one as well.

Additionally there are some other test cases that use the same mechanics to
locate plugin as the one you removed from store_test. Here they are:

test/common/test_async_compressor.cc

test/compressor/test_compression_plugin.cc

test/compressor/test_compression_plugin_snappy.cc

test/compressor/test_compression_plugin_zlib.cc

Hence the question is what's your suggestion about resolving that? As for me
I'd prefer to be able to use .libs for testing somehow...

Thanks,

Igor.

#4 lore raw

Sage,

That sounds great to me, what would you propose we do next?

Have do_cmake.sh create a ceph.conf that sets those paths?

-Ali

----- Original Message -----
From: "Sage Weil" <[email protected]>
To: "Igor Fedotov" <[email protected]>
Cc: [email protected], [email protected]
Sent: Wednesday, June 22, 2016 1:04:10 PM
Subject: Re: plugin infra issues

[adding ceph-devel]

Quoted 5 lines · Igor Fedotov

Well, having ceph.conf helps a bit. But PluginRegistry::load still appends plugin type (i.e. "/compressor") to the path. Hence it wouldn't work on a clean build IMHO...
Another point - I'm not sure if that's a good practice to require config file to run the tests. IMO it's preferable to have they working properly as-is.

I think the solution to this shoudl focus on the cmake developer workflow. Build is in ceph.git/build/, stuff goes in lib/, and the default build should set the default ceph lib path to ./lib. Or, have do_cmake.sh create a ceph.conf that sets these paths in a build/ceph.conf file. Either way, we should make sure the recommended and documented developer workflow (building and running via vstart, running unit tests, etc.) works well out of the box...

Ali, does that sound like the right way to go?

sage

Quoted 38 lines · Sage Weil
Quoted 35 lines

It works for me because my ./ceph.conf specifies the right dir. If you run vstart.sh this will get set up.

Quoted 29 lines · Igor Fedotov

Hi Sage,

as I mentioned during the syncup I faced some issues when running ceph_test_objectstore. Namely BluestoreStatFSTest fails.

The root cause is that it's unable to load snappy compressor plugin after your
recent cleanup. Now store_test attempts to do the load from /usr/local/lib...
folder only while previously it tried .libs/compressor one as well.

Additionally there are some other test cases that use the same mechanics to
locate plugin as the one you removed from store_test. Here they are:

test/common/test_async_compressor.cc

test/compressor/test_compression_plugin.cc

test/compressor/test_compression_plugin_snappy.cc

test/compressor/test_compression_plugin_zlib.cc

Hence the question is what's your suggestion about resolving that? As for me
I'd prefer to be able to use .libs for testing somehow...

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

Thanks,

Igor.

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html