RE: loadable objectstore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Varada,
  Let me know when you complete the rebase. Then I can help you over here to reproduce and fix the issue.

  Regards,
  James

-----Original Message-----
From: Varada Kari [mailto:Varada.Kari@xxxxxxxxxxx] 
Sent: Tuesday, September 29, 2015 10:38 AM
To: James (Fei) Liu-SSI; Sage Weil; Matt W. Benjamin; Loic Dachary
Cc: ceph-devel
Subject: RE: loadable objectstore

Hi James,

I am also facing the ceph_ver.h problem, will clean the branch and try to rebase that. But I am not facing the second problem you are mentioning. I have tried just now, that seems to be working fine. I use do_autogen.sh with -d 2 and -O 0. Will check with autogen.sh and fix if there is any problem.

And yes, I have not made any changes to cmake yet, once I have all the changes for automake, will make cmake changes.

Varada

> -----Original Message-----
> From: James (Fei) Liu-SSI [mailto:james.liu@xxxxxxxxxxxxxxx]
> Sent: Tuesday, September 29, 2015 11:02 PM
> To: Varada Kari <Varada.Kari@xxxxxxxxxxx>; Sage Weil 
> <sage@xxxxxxxxxxxx>; Matt W. Benjamin <matt@xxxxxxxxxxxx>; Loic 
> Dachary <loic@xxxxxxxxxxx>
> Cc: ceph-devel <ceph-devel@xxxxxxxxxxxxxxx>
> Subject: RE: loadable objectstore
>
> Hi Varada,
>   I tried to reproduce the error you faced over her and compiled your 
> wip- plugin branch from  https://github.com/varadakari/ceph/ and 
> always have two errors with autotools:
>   1.  There is no ceph_ver.h file under ./src directory. I manually 
> generated one and work around the error.
>   2. gmock error even though I tried to run ./autogen many times.
>
> make[3]: *** No rule to make target 
> `../src/gmock/lib/libgmock_main.la',
> needed by `unittest_librbd'.  Stop.
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory `/home/jamesliu/WorkSpace/ceph_varada/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/jamesliu/WorkSpace/ceph_varada/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/jamesliu/WorkSpace/ceph_varada/src'
> make: *** [all-recursive] Error 1
>
> By the way, CMake won't work either in your repo.
>
> thanks,
> James
>
> -----Original Message-----
> From: Varada Kari [mailto:Varada.Kari@xxxxxxxxxxx]
> Sent: Tuesday, September 29, 2015 10:14 AM
> To: James (Fei) Liu-SSI; Sage Weil; Matt W. Benjamin; Loic Dachary
> Cc: ceph-devel
> Subject: RE: loadable objectstore
>
> Hi James,
>
> Symbol is present in bss. This is what I find
>
> $ nm libceph_filestore.so | grep tracepoint_dlopen
> 000000000047f8c0 b tracepoint_dlopen
>
>
> Please note you have to comment the following line to check all the 
> symbols on the so.
>
> diff --git a/src/os/filestore/Makefile.am 
> b/src/os/filestore/Makefile.am index de8ec07..77dbc4d 100644
> --- a/src/os/filestore/Makefile.am
> +++ b/src/os/filestore/Makefile.am
> @@ -71,7 +71,7 @@ endif
>
>  libceph_filestore_la_LDFLAGS = ${AM_LDFLAGS} -version-info 1:0:0  if 
> LINUX -libceph_filestore_la_LDFLAGS += -export-symbols-regex 
> '.*__ceph_plugin_.*'
> +#libceph_filestore_la_LDFLAGS += -export-symbols-regex
> '.*__ceph_plugin_.*'
>  endif
>
>  lib_LTLIBRARIES += libceph_filestore.la
>
> Thanks,
> Varada
>
> > -----Original Message-----
> > From: James (Fei) Liu-SSI [mailto:james.liu@xxxxxxxxxxxxxxx]
> > Sent: Tuesday, September 29, 2015 10:08 PM
> > To: Varada Kari <Varada.Kari@xxxxxxxxxxx>; Sage Weil 
> > <sage@xxxxxxxxxxxx>; Matt W. Benjamin <matt@xxxxxxxxxxxx>; Loic 
> > Dachary <loic@xxxxxxxxxxx>
> > Cc: ceph-devel <ceph-devel@xxxxxxxxxxxxxxx>
> > Subject: RE: loadable objectstore
> >
> > Hi Varada,
> >   Can you use command nm to see whether " tracepoint_dlopen" is 
> > defined in "./.libs/libceph_filestore.so"?
> >
> >
> >  Regards,
> >  James
> >
> >
> > -----Original Message-----
> > From: Varada Kari [mailto:Varada.Kari@xxxxxxxxxxx]
> > Sent: Monday, September 28, 2015 6:21 PM
> > To: James (Fei) Liu-SSI; Sage Weil; Matt W. Benjamin; Loic Dachary
> > Cc: ceph-devel
> > Subject: RE: loadable objectstore
> >
> > No James, Facing library issues with libnss3 and libcommon(ceph). 
> > Will resolve them, generate a new pull request soon on master.
> >
> > Thanks,
> > Varada
> >
> > > -----Original Message-----
> > > From: James (Fei) Liu-SSI [mailto:james.liu@xxxxxxxxxxxxxxx]
> > > Sent: Monday, September 28, 2015 11:51 PM
> > > To: Varada Kari <Varada.Kari@xxxxxxxxxxx>; Sage Weil 
> > > <sage@xxxxxxxxxxxx>; Matt W. Benjamin <matt@xxxxxxxxxxxx>; Loic 
> > > Dachary <loic@xxxxxxxxxxx>
> > > Cc: ceph-devel <ceph-devel@xxxxxxxxxxxxxxx>
> > > Subject: RE: loadable objectstore
> > >
> > > Hi Varada,
> > >   Have you rebased the pull request to master already?
> > >
> > >   Thanks,
> > >   James
> > >
> > > -----Original Message-----
> > > From: ceph-devel-owner@xxxxxxxxxxxxxxx [mailto:ceph-devel- 
> > > owner@xxxxxxxxxxxxxxx] On Behalf Of Varada Kari
> > > Sent: Friday, September 11, 2015 3:28 AM
> > > To: Sage Weil; Matt W. Benjamin; Loic Dachary
> > > Cc: ceph-devel
> > > Subject: RE: loadable objectstore
> > >
> > > Hi Sage/ Matt,
> > >
> > > I have submitted the pull request based on wip-plugin branch for 
> > > the object store factory implementation at
> > https://github.com/ceph/ceph/pull/5884 .
> > > Haven't rebased to the master yet. Working on rebase and including 
> > > new store in the factory implementation.  Please have a look and 
> > > let me know your comments. Will submit a rebased PR soon with new 
> > > store
> > integration.
> > >
> > > Thanks,
> > > Varada
> > >
> > > -----Original Message-----
> > > From: ceph-devel-owner@xxxxxxxxxxxxxxx [mailto:ceph-devel- 
> > > owner@xxxxxxxxxxxxxxx] On Behalf Of Varada Kari
> > > Sent: Friday, July 03, 2015 7:31 PM
> > > To: Sage Weil <sage@xxxxxxxxxxxx>; Adam Crume
> > <adamcrume@xxxxxxxxx>
> > > Cc: Loic Dachary <loic@xxxxxxxxxxx>; ceph-devel <ceph- 
> > > devel@xxxxxxxxxxxxxxx>; Matt W. Benjamin <matt@xxxxxxxxxxxx>
> > > Subject: RE: loadable objectstore
> > >
> > > Hi All,
> > >
> > > Not able to make much progress after making common as a shared 
> > > object along with object store.
> > > Compilation of the test binaries are failing with
> "./.libs/libceph_filestore.so:
> > > undefined reference to `tracepoint_dlopen'".
> > >
> > >   CXXLD    ceph_streamtest
> > > ./.libs/libceph_filestore.so: undefined reference to `tracepoint_dlopen'
> > > collect2: error: ld returned 1 exit status
> > > make[3]: *** [ceph_streamtest] Error 1
> > >
> > > But libfilestore.so is linked with lttng-ust.
> > >
> > > src/.libs$ ldd libceph_filestore.so
> > >         libceph_keyvaluestore.so.1 =>
> > > /home/varada/obs-factory/plugin-
> > > work/src/.libs/libceph_keyvaluestore.so.1 (0x00007f5e50f50000)
> > >         libceph_os.so.1 => /home/varada/obs-factory/plugin-
> > > work/src/.libs/libceph_os.so.1 (0x00007f5e4f93a000)
> > >         libcommon.so.1 => /home/varada/ obs-factory/plugin-
> > > work/src/.libs/libcommon.so.1 (0x00007f5e4b5df000)
> > >         liblttng-ust.so.0 =>
> > > /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0
> > > (0x00007f5e4b179000)
> > >         liblttng-ust-tracepoint.so.0 =>
> > > /usr/lib/x86_64-linux-gnu/liblttng-ust-
> > > tracepoint.so.0 (0x00007f5e4a021000)
> > >         liburcu-bp.so.1 => /usr/lib/liburcu-bp.so.1 (0x00007f5e49e1a000)
> > >         liburcu-cds.so.1 => /usr/lib/liburcu-cds.so.1
> > > (0x00007f5e49c12000)
> > >
> > > Edited the above output just show the dependencies.
> > > Did anyone face this issue before?
> > > Any help would be much appreciated.
> > >
> > > Thanks,
> > > Varada
> > >
> > > -----Original Message-----
> > > From: ceph-devel-owner@xxxxxxxxxxxxxxx [mailto:ceph-devel- 
> > > owner@xxxxxxxxxxxxxxx] On Behalf Of Varada Kari
> > > Sent: Friday, June 26, 2015 3:34 PM
> > > To: Sage Weil
> > > Cc: Loic Dachary; ceph-devel; Matt W. Benjamin
> > > Subject: RE: loadable objectstore
> > >
> > > Hi,
> > >
> > > Made some more changes to resolve lttng problems at 
> > > https://github.com/varadakari/ceph/commits/wip-plugin.
> > > But couldn’t by pass the issues. Facing some issues like mentioned below.
> > >
> > > ./.libs/libceph_filestore.so: undefined reference to `tracepoint_dlopen'
> > >
> > > Compiling with -llttng-ust is not resolving the problem. Seen some 
> > > threads in devel list before, mentioning this problem.
> > > Can anyone take a look and guide me to fix this problem?
> > >
> > > Haven't made the changes to change the plugin name etc... will be 
> > > making them as part of cleanup.
> > >
> > > Thanks,
> > > Varada
> > >
> > > -----Original Message-----
> > > From: ceph-devel-owner@xxxxxxxxxxxxxxx [mailto:ceph-devel- 
> > > owner@xxxxxxxxxxxxxxx] On Behalf Of Varada Kari
> > > Sent: Monday, June 22, 2015 8:57 PM
> > > To: Matt W. Benjamin
> > > Cc: Loic Dachary; ceph-devel; Sage Weil
> > > Subject: RE: loadable objectstore
> > >
> > > Hi Matt,
> > >
> > > Majority of the changes are segregating the files to corresponding 
> > > shared object and creating a factory object. And the naming is 
> > > mostly taken from Erasure-coding plugins. Want a good naming 
> > > convention :-), hence a preliminary review. Do agree, we have lot 
> > > of loadable interfaces, and I think we are in the way of making 
> > > them on-demand (if
> > > possible) loadable modules.
> > >
> > > Varada
> > >
> > > -----Original Message-----
> > > From: Matt W. Benjamin [mailto:matt@xxxxxxxxxxxx]
> > > Sent: Monday, June 22, 2015 8:37 PM
> > > To: Varada Kari
> > > Cc: Loic Dachary; ceph-devel; Sage Weil
> > > Subject: Re: loadable objectstore
> > >
> > > Hi,
> > >
> > > It's just aesthetic, but it feels clunky to change the names of 
> > > well known modules to <something>Plugin--esp. if that generalizes 
> > > forward to new loadable modules (and we have a lot of loadable interfaces).
> > >
> > > Matt
> > >
> > > ----- "Varada Kari" <Varada.Kari@xxxxxxxxxxx> wrote:
> > >
> > > > Hi Sage,
> > > >
> > > > Please find the initial implementation of objects store factory 
> > > > (initial cut) at
> > > >
> > >
> >
> https://github.com/varadakari/ceph/commit/9d5fe2fecf38ba106c7c7b7a3ed
> > > e
> > > > 4f189ec7e1c8
> > > >
> > > > This is still work in progress branch. Right now I am facing 
> > > > Lttng issues,
> > > > LTTng-UST: Error (-17) while registering tracepoint probe.
> > > > Duplicate registration of tracepoint probes having the same name 
> > > > is not
> allowed.
> > > >
> > > > Might be an issue with libcommon inclusion. Trying resolving the 
> > > > issue now. Seems I need to make libcommon also as a shared 
> > > > object to avoid the duplicates, static linking is a problem here.
> > > > Any suggestions or comments on this problem?
> > > >
> > > >
> > > > I have commented out test binary 
> > > > (ceph_test_keyvaluedb_atomicity) compilation, due to unresolved 
> > > > symbols for g_ceph_context and
> g_conf.
> > > > Not able to fix/workaround the problem so far.
> > > >
> > > > Can you please review if this is what in your mind for the 
> > > > factory implementation?
> > > >
> > > > We can extend this implementation to messenger and different 
> > > > backend of the OSD. Will make those incremental once the base 
> > > > framework is approved.
> > > >
> > > > Thanks,
> > > > Varada
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Sage Weil [mailto:sage@xxxxxxxxxxxx]
> > > > Sent: Tuesday, May 12, 2015 5:11 AM
> > > > To: Varada Kari
> > > > Cc: Loic Dachary; Matt W. Benjamin; ceph-devel
> > > > Subject: RE: loadable objectstore
> > > >
> > > > Hi Varada,
> > > >
> > > > Any progress on this?
> > > >
> > > > Thanks!
> > > > sage
> > > >
> > > > On Sat, 11 Apr 2015, Varada Kari wrote:
> > > >
> > > > > Thanks Sage and Loic. Will add the missing pieces and 
> > > > > integrate the
> > > > object factory and plugin changes.
> > > > >
> > > > > Varada
> > > > >
> > > > > -----Original Message-----
> > > > > From: Sage Weil [mailto:sage@xxxxxxxxxxxx]
> > > > > Sent: Saturday, April 11, 2015 9:19 PM
> > > > > To: Loic Dachary
> > > > > Cc: Varada Kari; Matt W. Benjamin; ceph-devel
> > > > > Subject: Re: loadable objectstore
> > > > >
> > > > > On Sat, 11 Apr 2015, Loic Dachary wrote:
> > > > > > Hi Sage,
> > > > > >
> > > > > > It looks like common/PluginRegistry.{h,cc} are missing from 
> > > > > > 18ad8df1094db52c839dc6b2dc689fc882230acb
> > > > >
> > > > > whoops pushed! :)
> > > > >
> > > > > sage
> > > > >
> > > > > >
> > > > > > Cheers
> > > > > >
> > > > > > On 11/04/2015 16:51, Sage Weil wrote:
> > > > > > > On Sat, 11 Apr 2015, Varada Kari wrote:
> > > > > > >> Hi Matt/ Sage,
> > > > > > >>
> > > > > > >> Thanks for sharing the pull request. Will work on the 
> > > > > > >> items
> > > > what
> > > > > > >> sage was mentioning in the comments along with the items 
> > > > > > >> in the
> > > > tracker.
> > > > > > >
> > > > > > > I pushed a wip-plugin branch with the pattern I had in mind...
> > > > > > > does this make sense?  It's only compile tested, and still
> > > > needs
> > > > > > > preload() methods implemented so that long-running daemons 
> > > > > > > (or perhaps others?) can preload it all at once.
> > > > > > >
> > > > > > > Ideally we would replace ErasurePluginRegistry with this 
> > > > > > > too, which means the naming of the .so's needs to be a bit 
> > > > > > > more flexible as the EC plugin scheme is something like 
> > > > > > > /usr/lib/ceph/erasure-code/libec_$name.so (not a strict 
> > > > > > > function
> > > >
> > > > > > > of type and name).  Or actually, we can just rename the EC 
> > > > > > > .so's
> > > >
> > > > > > > when this goes in?  Since they're explicitly incompatible
> > > > between
> > > > > > > versions there is no reason the names need to remain
> > > > consistent...
> > > > > > >
> > > > > > > sage
> > > > > > >
> > > > > > >>
> > > > > > >> Varada
> > > > > > >>
> > > > > > >> -----Original Message-----
> > > > > > >> From: Sage Weil [mailto:sage@xxxxxxxxxxxx]
> > > > > > >> Sent: Saturday, April 11, 2015 4:16 AM
> > > > > > >> To: Matt W. Benjamin
> > > > > > >> Cc: Varada Kari; ceph-devel
> > > > > > >> Subject: Re: loadable objectstore
> > > > > > >>
> > > > > > >> On Fri, 10 Apr 2015, Matt W. Benjamin wrote:
> > > > > > >>> Hi Varada,
> > > > > > >>>
> > > > > > >>> I pushed branch hammer-osfactory to 
> > > > > > >>> https://github.com/linuxbox2/ceph.git
> > > > > > >>>
> > > > > > >>> It can at least provide a starting point for discussion, 
> > > > > > >>> if
> > > > not
> > > > > > >>> a jumping off point;  I do think it's basically what 
> > > > > > >>> Sage
> > > > described.
> > > > > > >>
> > > > > > >> I made a few comments on the pull request.  I think a 
> > > > > > >> factory
> > > > class is the way to go, but we should be able to make the plugin 
> > > > loading part generic and not interface specific at all...
> > > > > > >>
> > > > > > >> sage
> > > > > > >>
> > > > > > >>>
> > > > > > >>> I was able to update the CMake build system to build the 
> > > > > > >>> tree,
> > > > I
> > > > > > >>> haven't attempted Autotools. :(
> > > > > > >>>
> > > > > > >>> Regards,
> > > > > > >>>
> > > > > > >>> Matt
> > > > > > >>>
> > > > > > >>> --
> > > > > > >>> Matt Benjamin
> > > > > > >>> CohortFS, LLC.
> > > > > > >>> 315 West Huron Street, Suite 140A Ann Arbor, Michigan
> > > > > > >>> 48103
> > > > > > >>>
> > > > > > >>> http://cohortfs.com
> > > > > > >>>
> > > > > > >>> tel.  734-761-4689
> > > > > > >>> fax.  734-769-8938
> > > > > > >>> cel.  734-216-5309
> > > > > > >>> --
> > > > > > >>> To unsubscribe from this list: send the line 
> > > > > > >>> "unsubscribe
> > > > ceph-devel"
> > > > > > >>> in the body of a message to majordomo@xxxxxxxxxxxxxxx 
> > > > > > >>> More majordomo info at 
> > > > > > >>> http://vger.kernel.org/majordomo-info.html
> > > > > > >>>
> > > > > > >>>
> > > > > > >>
> > > > > > >> ________________________________
> > > > > > >>
> > > > > > >> PLEASE NOTE: The information contained in this electronic 
> > > > > > >> mail
> > > > message is intended only for the use of the designated
> > > > recipient(s) named above. If the reader of this message is not 
> > > > the intended recipient, you are hereby notified that you have 
> > > > received this message in error and that any review, 
> > > > dissemination, distribution, or copying of this message is strictly prohibited.
> > > > If you have received this communication in error, please notify 
> > > > the sender by telephone or e-mail (as shown above) immediately 
> > > > and destroy any and all copies of this message in your 
> > > > possession (whether hard copies or electronically stored copies).
> > > > > > >>
> > > > > > >> --
> > > > > > >> To unsubscribe from this list: send the line "unsubscribe 
> > > > > > >> ceph-devel" in the body of a message to
> > > > majordomo@xxxxxxxxxxxxxxx
> > > > > > >> More majordomo info at
> > > > > > >> http://vger.kernel.org/majordomo-info.html
> > > > > > >>
> > > > > > >>
> > > > > > > --
> > > > > > > To unsubscribe from this list: send the line "unsubscribe 
> > > > > > > ceph-devel" in the body of a message to
> > > > majordomo@xxxxxxxxxxxxxxx
> > > > > > > More majordomo info at
> > > > http://vger.kernel.org/majordomo-info.html
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > Loïc Dachary, Artisan Logiciel Libre
> > > > > >
> > > > > >
> > > > > --
> > > > > To unsubscribe from this list: send the line "unsubscribe
> > > > ceph-devel"
> > > > > in the body of a message to majordomo@xxxxxxxxxxxxxxx More
> > > majordomo
> > > >
> > > > > info at  http://vger.kernel.org/majordomo-info.html
> > > > >
> > > > >
> > >
> > > --
> > > Matt Benjamin
> > > CohortFS, LLC.
> > > 315 West Huron Street, Suite 140A
> > > Ann Arbor, Michigan 48103
> > >
> > > http://cohortfs.com
> > >
> > > tel.  734-761-4689
> > > fax.  734-769-8938
> > > cel.  734-216-5309
> > >
> > > ________________________________
> > >
> > > PLEASE NOTE: The information contained in this electronic mail 
> > > message is intended only for the use of the designated 
> > > recipient(s) named above. If the reader of this message is not the 
> > > intended recipient, you are hereby notified that you have received 
> > > this message in error and that any review, dissemination, 
> > > distribution, or copying of this message is strictly prohibited. 
> > > If you have received this communication in error, please notify 
> > > the sender by telephone or e-mail (as shown above) immediately and 
> > > destroy any and all copies of this message in your possession 
> > > (whether hard copies or electronically
> > stored copies).
> > >
> > > N     r  y   b X  ǧv ^ )޺{.n +   z ]z
> > > N     r  y   b X  ǧv ^ )޺{.n +   z ]z   {ay ʇڙ ,j   f   h   z  w       j:+v   w j m         zZ+
> > > ݢj"  ! i
> > >   칻 & ~ &   +-  ݶ  w  ˛   m  ^  b  ^n r   z   h    &   G   h ( 階 ݢj"   m
> > z
> > > ޖ   f   h   ~ m
> > >  {.n +       +%  lzwm  b 맲  r  yǩ ׯzX    ܨ}   Ơz &j:+v        zZ+  +zf   h   ~    i
> z  w
> > > ?    & )ߢf
> >
> > ________________________________
> >
> > PLEASE NOTE: The information contained in this electronic mail 
> > message is intended only for the use of the designated recipient(s) 
> > named above. If the reader of this message is not the intended 
> > recipient, you are hereby notified that you have received this 
> > message in error and that any review, dissemination, distribution, 
> > or copying of this message is strictly prohibited. If you have 
> > received this communication in error, please notify the sender by 
> > telephone or e-mail (as shown above) immediately and destroy any and 
> > all copies of this message in your possession (whether hard copies 
> > or electronically
> stored copies).
>
>
> ________________________________
>
> PLEASE NOTE: The information contained in this electronic mail message 
> is intended only for the use of the designated recipient(s) named 
> above. If the reader of this message is not the intended recipient, 
> you are hereby notified that you have received this message in error 
> and that any review, dissemination, distribution, or copying of this 
> message is strictly prohibited. If you have received this 
> communication in error, please notify the sender by telephone or 
> e-mail (as shown above) immediately and destroy any and all copies of 
> this message in your possession (whether hard copies or electronically stored copies).


________________________________

PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

��.n��������+%������w��{.n����z��u���ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux