Repository navigation
rgw: build radosgw daemon as a shared lib + small executable - #32404
Conversation
Majority of radosgw is contained in libradosgw.so. (/usr)/bin/radosgw is now a few lines that calls radosgw_Main() in libradosgw.so. The "zipper" work to modularize storage back-ends that will require linking to the shared library to resolve the methods that they reference. Putting the bulk of the implementation in a shared lib also allows for unit testing to link with the shared lib for testing. radosgw_Main() is the C++ implementation. For C linkage, radosgw_main() is provided. Signed-off-by: Kaleb S. KEITHLEY <[email protected]>
Majority of radosgw is contained in libradosgw.so. (/usr)/bin/radosgw is now a few lines that calls radosgw_Main() in libradosgw.so. The "zipper" work to modularize storage back-ends that will require linking to the shared library to resolve the methods that they reference. Putting the bulk of the implementation in a shared lib also allows for unit testing to link with the shared lib for testing. radosgw_Main() is the C++ implementation. For C linkage, radosgw_main() is provided. Signed-off-by: Kaleb S. KEITHLEY <[email protected]>
|
👍 I wonder if this could be extended to include some or all of the radosgw-admin tools so that that functionality could be linked/loaded directly into ceph-mgr? One long term goal is to unify/migrate the radosgw-admin CLI to the ceph CLI/API (e.g., |
I presume you mean converting radosgw-admin tools to shlibs + a thin wrapper executable. (And not linking the tools to the new libradosgw.so.) It certainly could be done. It'd be a separate project. I wouldn't tightly couple it to this. |
mattbenjamin
left a comment
There was a problem hiding this comment.
seems sane--what's up with the merge commit?
dunno. Where do you see that? I just did what I thought was a normal PR |
|
@kalebskeithley @dang please avoid adding merge commit in a PR in future. also, this change changes how we do packaging. ideally, we should at least test it by pushing it to ceph-ci first. this change actually broke the build on bionic since it got merged. see https://shaman.ceph.com/builds/ceph/master/2ee55c2cf775cd4b59a351e3ad4d76ab1c46f669/default/182297/ |
| target_link_libraries(rgw_schedulers | ||
| PUBLIC dmclock::dmclock) | ||
|
|
||
| add_executable(radosgw rgw_main.cc) |
There was a problem hiding this comment.
this broke dashboard related tests. fixed by #32564
rgw: radosgw (rgw) daemon as a shared lib
Majority of radosgw is contained in libradosgw.so. (/usr)/bin/radosgw
is now a few lines that calls radosgw_Main() in libradosgw.so.
The "zipper" work to modularize storage back-ends that will require
linking to the shared library to resolve the methods that they reference.
Putting the bulk of the implementation in a shared lib also allows for
unit testing to link with the shared lib for testing.
radosgw_Main() is the C++ implementation. For C linkage, radosgw_main()
is provided.
https://tracker.ceph.com/issues/43411
Signed-off-by: Kaleb S. KEITHLEY [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox