Skip to content

build: Fix opentelemetry-cpp build failure on Noble - #62616

Merged
cbodley merged 1 commit into
ceph:mainfrom
adamemerson:wip-noble
Jun 13, 2025
Merged

cbodley merged 1 commit into
ceph:mainfrom
adamemerson:wip-noble

Conversation

@adamemerson

@adamemerson adamemerson commented Apr 1, 2025 •

Copy link
Copy Markdown
Contributor

The version of the opentelemetry-cpp we currently use has a missing include in the Jaeger exporter.

Newer versions remove the Jaeger exporter entirely.

While upgrading sometime would be good, it doesn't have to happen right now.

Fixes: https://tracker.ceph.com/issues/62804

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@dmick dmick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It worries me that I don't know why this is new to Noble, but this is an old bug that we've been dancing around for too long. This workaround looks safe, but we really need to understand what the future path is for open-telemetry. @adamemerson has agreed to bring it up with CSC and develop a longer-term plan.

@phlogistonjohn

Copy link
Copy Markdown
Contributor

jenkins test make check

1 similar comment
@tchaikov

tchaikov commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check

@tchaikov

tchaikov commented Apr 2, 2025 •

Copy link
Copy Markdown
Contributor

https://jenkins.ceph.com/job/ceph-pull-requests/155203/, 172.21.2.2+braggi02

   $ ceph-authtool kring --create-keyring --mode 0644
-  creating kring
+  ceph-authtool: error while loading shared libraries: /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libceph-common.so.2: file too short

tracked by https://tracker.ceph.com/issues/70700

@djgalloway

djgalloway commented Apr 2, 2025 •

Copy link
Copy Markdown
Contributor

Is this make check failure at all related to this PR?

FAILED: src/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o 
/usr/bin/ccache /usr/bin/clang++-19 -DBOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION -DBOOST_ASIO_HAS_IO_URING -DBOOST_ASIO_NO_TS_EXECUTORS -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__CEPH__ -D__STDC_FORMAT_MACROS -D__linux__ -I/home/jenkins-build/build/workspace/ceph-pull-requests/build/src/include -I/home/jenkins-build/build/workspace/ceph-pull-requests/src -I/home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/include -I/home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest -isystem /opt/ceph/include -isystem /home/jenkins-build/build/workspace/ceph-pull-requests/build/include -isystem /home/jenkins-build/build/workspace/ceph-pull-requests/src/jaegertracing/opentelemetry-cpp/api/include -isystem /home/jenkins-build/build/workspace/ceph-pull-requests/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/include -isystem /home/jenkins-build/build/workspace/ceph-pull-requests/src/jaegertracing/opentelemetry-cpp/ext/include -isystem /home/jenkins-build/build/workspace/ceph-pull-requests/src/jaegertracing/opentelemetry-cpp/sdk/include -isystem /home/jenkins-build/build/workspace/ceph-pull-requests/src/xxHash -isystem /home/jenkins-build/build/workspace/ceph-pull-requests/src/fmt/include -g -Werror -fPIC -Wall -Wshadow -Wconversion -Wundef -DGTEST_HAS_PTHREAD=1 -fexceptions -W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wunused-parameter -Wcast-align -Winline -Wredundant-decls -Wchar-subscripts -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -fno-strict-aliasing -fsigned-char -Wtype-limits -Wignored-qualifiers -Wpointer-arith -Werror=format-security -Winit-self -Wno-unknown-pragmas -Wnon-virtual-dtor -Wno-ignored-qualifiers -ftemplate-depth-1024 -DBOOST_ALLOW_DEPRECATED_HEADERS -Wpessimizing-move -Wredundant-move -Wno-inconsistent-missing-override -Wno-mismatched-tags -Wno-unused-private-field -Wno-address-of-packed-member -Wno-unused-function -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register -Wno-vla-cxx-extension -DCEPH_DEBUG_MUTEX -D_GLIBCXX_ASSERTIONS -fdiagnostics-color=auto -std=c++20 -MD -MT src/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -MF src/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o.d -o src/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -c /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest-all.cc
In file included from /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest-all.cc:38:
In file included from /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/include/gtest/gtest.h:55:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/memory:66:
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: error: 'get_temporary_buffer<testing::TestInfo *>' is deprecated [-Werror,-Wdeprecated-declarations]
  263 |                 std::get_temporary_buffer<value_type>(_M_original_len));
      |                      ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:4996:15: note: in instantiation of member function 'std::_Temporary_buffer<__gnu_cxx::__normal_iterator<testing::TestInfo **, std::vector<testing::TestInfo *>>, testing::TestInfo *>::_Temporary_buffer' requested here
 4996 |       _TmpBuf __buf(__first, (__last - __first + 1) / 2);
      |               ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:5070:23: note: in instantiation of function template specialization 'std::__stable_sort<__gnu_cxx::__normal_iterator<testing::TestInfo **, std::vector<testing::TestInfo *>>, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest.cc:3024:20)>>' requested here
 5070 |       _GLIBCXX_STD_A::__stable_sort(__first, __last,
      |                       ^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest.cc:3023:8: note: in instantiation of function template specialization 'std::stable_sort<__gnu_cxx::__normal_iterator<testing::TestInfo **, std::vector<testing::TestInfo *>>, (lambda at /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest.cc:3024:20)>' requested here
 3023 |   std::stable_sort(test_info_list_.begin(), test_info_list_.end(),
      |        ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:99:5: note: 'get_temporary_buffer<testing::TestInfo *>' has been explicitly marked deprecated here
   99 |     _GLIBCXX17_DEPRECATED
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12/bits/c++config.h:119:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
  119 | # define _GLIBCXX17_DEPRECATED [[__deprecated__]]
      |                                  ^
1 error generated.
[674/2751] Building CXX object src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/object_data_handler.cc.o
[675/2751] Performing install step for 'arrow_ext'

EDIT: It seems like probably, yes. I see opentelemetry mentioned in the second line.

@dmick

dmick commented Apr 2, 2025

Copy link
Copy Markdown
Member

@adamemerson the force-push didn't change anything?...

@adamemerson

Copy link
Copy Markdown
Contributor Author

@adamemerson the force-push didn't change anything?...

Rebased to pull in: #62622

@dmick

dmick commented Apr 2, 2025

Copy link
Copy Markdown
Member

okay, but it didn't pull that in

The version of the opentelemetry-cpp we currently use has a missing
include in the Jaeger exporter.

Newer versions remove the Jaeger exporter entirely.

While upgrading sometime would be good, it doesn't have to happen
right now.

Thus do I hereby update the opentelemetry-cpp submodule.

Fixes: https://tracker.ceph.com/issues/62804

Signed-off-by: Adam C. Emerson <[email protected]>
@adamemerson

Copy link
Copy Markdown
Contributor Author

jenkins make check arm64

1 similar comment
@tchaikov

tchaikov commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

jenkins make check arm64

@dmick

dmick commented Apr 3, 2025 •

Copy link
Copy Markdown
Member

It seems that this keeps failing to find ceph-libboost. Where is that supposed to come from? Edit: I see Yet Another Distroversion Dependency in install-deps.sh (search for "install_boost_on_ubuntu" calls) and there is not a clause for Noble. Maybe that's the issue? (I also don't know why it's implemented the way it is, requiring another clause there)

@adamemerson

Copy link
Copy Markdown
Contributor Author

Chacra on amd64. I didn't think we required it on ARM.

(It was working fine without it before, at least.)

@adamemerson

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@dmick

dmick commented Apr 28, 2025

Copy link
Copy Markdown
Member

Where do we stand on this? Last I remember we still hadn't identified why a new build of libboost for arm64 was necessary

@adamemerson

Copy link
Copy Markdown
Contributor Author

Where do we stand on this? Last I remember we still hadn't identified why a new build of libboost for arm64 was necessary

This should be ready to merge, I think.

And, we did, it was that install-deps is overcomplicated and wasn't recovering from install failure in the case of Boost where it's actually optional. (Though in all the other cases the install isn't actually optional.)

We wanted a Boost for ARM anyway to take load off the ARM build

I'm not sure if we want to mess with install-deps further. Since we're working on container builds we should be able to get rid of most of the stuff that makes it so fragile (trying to clean up after whatever previous builds might have done.)

@cbodley

cbodley commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

ceph API tests: Waiting for status to be reported — Build triggered for merge commit.
ceph windows tests: Waiting for status to be reported — Build triggered for merge commit.
make check: Waiting for status to be reported — Build triggered for merge commit.

@cbodley

cbodley commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check

@cbodley

cbodley commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

jenkins test api

@cbodley

cbodley commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

jenkins test windows

@cbodley

cbodley commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

This should be ready to merge, I think.

@adamemerson should this go through qa, or are shaman builds sufficient?

@dmick

dmick commented Jun 13, 2025

Copy link
Copy Markdown
Member

@adamemerson can we get this closed out?

@cbodley

cbodley commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

i pushed to ceph-ci for builds in https://shaman.ceph.com/builds/ceph/pr-62616/. since the new submodule is only adding a missing include, full qa is probably not necessary

@cbodley

cbodley commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

i pushed to ceph-ci for builds in https://shaman.ceph.com/builds/ceph/pr-62616/. since the new submodule is only adding a missing include, full qa is probably not necessary

no builds triggered there, so i guess someone already pushed a branch with this sha?

@dmick

dmick commented Jun 13, 2025

Copy link
Copy Markdown
Member

Can someone refresh my memory as to why we cloned opentelemetry-cpp rather than getting this fix upstream?

@cbodley

cbodley commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

@dmick quoting Adam's pr description:

The version of the opentelemetry-cpp we currently use has a missing include in the Jaeger exporter.
Newer versions remove the Jaeger exporter entirely.

so the files we're relying on no longer exist upstream. this is a larger problem that we'll need some stakeholder to address (cc @ideepika @yuvalif)

@cbodley

cbodley commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

no builds triggered there, so i guess someone already pushed a branch with this sha?

i amended the commit and repushed, builds in https://shaman.ceph.com/builds/ceph/pr-62616/ are green 👍

@cbodley
cbodley merged commit a372d62 into ceph:main Jun 13, 2025
@dmick

dmick commented Jun 13, 2025

Copy link
Copy Markdown
Member

🎉

@djgalloway

Copy link
Copy Markdown
Contributor

Does this need to get backported to tentacle and squid now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants