Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS Stream 22 is failling in `test_run_binary_applidation #452

Open
phracek opened this issue Sep 25, 2024 · 5 comments · May be fixed by #458
Open

CentOS Stream 22 is failling in `test_run_binary_applidation #452

phracek opened this issue Sep 25, 2024 · 5 comments · May be fixed by #458

Comments

@phracek
Copy link
Member

phracek commented Sep 25, 2024

CentOS Stream 22 is failing on this test.

Running test test_run_binary_application (starting at 2024-09-25 10:49:01+00:00) ... 
-----------------------------------------------
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialized empty Git repository in /root/sclorg/s2i-nodejs-container/test/test-binary/.git/
[master (root-commit) 9a3e18a] Sample commit
 2 files changed, 28 insertions(+)
 create mode 100644 hw.js
 create mode 100644 package.json
STEP 1/8: FROM quay.io/sclorg/nodejs-22-c10s:1
STEP 2/8: LABEL "io.openshift.s2i.build.image"="quay.io/sclorg/nodejs-22-c10s:1"       "io.openshift.s2i.build.source-location"="file:///root/sclorg/s2i-nodejs-container/test/test-binary"
--> 4440922bb18e
STEP 3/8: USER root
--> 0f2ac488947c
STEP 4/8: COPY upload/src/ /tmp/src
--> 2c6c1de322a3
STEP 5/8: RUN chown -R 1001:0 /tmp/src
--> 09ee77692625
STEP 6/8: USER 1001
--> dee7cebef4ed
STEP 7/8: RUN /usr/libexec/s2i/assemble
---> Installing application source ...
---> Installing all dependencies
npm error code 1
npm error path /opt/app-root/src/node_modules/node-rdkafka
npm error command failed
npm error command sh -c node-gyp rebuild
npm error make: Entering directory '/opt/app-root/src/node_modules/node-rdkafka/build'
npm error   ACTION deps_librdkafka_gyp_librdkafka_target_configure deps/librdkafka/config.h
npm error checking for OS or distribution... ok (centos)
npm error checking for C compiler from CC env... failed
npm error checking for gcc (by command)... ok
npm error checking for C++ compiler from CXX env... failed
npm error checking for C++ compiler (g++)... ok
npm error checking executable ld... ok
npm error checking executable nm... ok
npm error checking executable objdump... ok
npm error checking executable strip... ok
npm error checking executable libtool... failed (disable)
npm error checking executable ranlib... ok
npm error checking for pkgconfig (by command)... ok
npm error checking for install (by command)... ok
npm error checking for GNU ar... ok
npm error checking for PIC (by compile)... ok
npm error checking for GNU-compatible linker options... ok
npm error checking for GNU linker-script ld flag... ok
npm error checking for __atomic_32 (by compile)... ok
npm error checking for __atomic_64 (by compile)... ok
npm error checking for socket (by compile)... ok
npm error parsing version '0x020500ff'... ok (2.5.0)
npm error checking for librt (by pkg-config)... failed
npm error checking for librt (by compile)... ok
npm error checking for libpthread (by pkg-config)... failed
npm error checking for libpthread (by compile)... ok
npm error checking for c11threads (by pkg-config)... failed
npm error checking for c11threads (by compile)... ok
npm error checking for libdl (by pkg-config)... failed
npm error checking for libdl (by compile)... ok
npm error checking for zlib (by pkg-config)... failed
npm error checking for zlib (by compile)... failed (disable)
npm error checking for libcrypto (by pkg-config)... ok
npm error checking for libssl (by pkg-config)... ok
npm error checking for libsasl2 (by pkg-config)... failed
npm error checking for libsasl2 (by compile)... failed (disable)
npm error checking for libsasl (by pkg-config)... failed
npm error checking for libsasl (by compile)... failed (disable)
npm error checking for libzstd (by pkg-config)... failed
npm error checking for libzstd (by compile)... failed (disable)
npm error checking for libcurl (by pkg-config)... failed
npm error checking for libcurl (by compile)... failed (disable)
npm error checking for libm (by pkg-config)... failed
npm error checking for libm (by compile)... ok
npm error checking for liblz4 (by pkg-config)... failed
npm error checking for liblz4 (by compile)... failed (disable)
npm error checking for syslog (by compile)... ok
npm error checking for rapidjson (by compile)... failed (disable)
npm error checking for crc32chw (by compile)... ok
npm error checking for regex (by compile)... ok
npm error checking for rand_r (by compile)... ok
npm error checking for strndup (by compile)... ok
npm error checking for strlcpy (by compile)... ok
npm error checking for strerror_r (by compile)... ok
npm error checking for strcasestr (by compile)... ok
npm error checking for pthread_setname_gnu (by compile)... ok
npm error checking for nm (by env NM)... ok (cached)
npm error checking for python3 (by command)... ok
npm error checking for getrusage (by compile)... ok
npm error Generated Makefile.config
npm error Generated config.h
npm error
npm error Configuration summary:
npm error   prefix                   /opt/app-root/src/node_modules/node-rdkafka/build/deps
npm error   MKL_DISTRO               centos
npm error   SOLIB_EXT                .so
npm error   ARCH                     x86_64
npm error   CPU                      generic
npm error   GEN_PKG_CONFIG           y
npm error   libdir                   /opt/app-root/src/node_modules/node-rdkafka/build/deps
npm error   MKL_APP_NAME             librdkafka
npm error   MKL_APP_DESC_ONELINE     The Apache Kafka C/C++ lib
npm error checking for __atomic_32 (by compile)... ok
npm error checking for __atomic_64 (by compile)... ok
npm error checking for socket (by compile)... ok
npm error parsing version '0x020500ff'... ok (2.5.0)
npm error checking for librt (by pkg-config)... failed
npm error checking for librt (by compile)... ok
npm error checking for libpthread (by pkg-config)... failed
npm error checking for libpthread (by compile)... ok
npm error checking for c11threads (by pkg-config)... failed
npm error checking for c11threads (by compile)... ok
npm error checking for libdl (by pkg-config)... failed
npm error checking for libdl (by compile)... ok
npm error checking for zlib (by pkg-config)... failed
npm error checking for zlib (by compile)... failed (disable)
npm error checking for libcrypto (by pkg-config)... ok
npm error checking for libssl (by pkg-config)... ok
npm error checking for libsasl2 (by pkg-config)... failed
npm error checking for libsasl2 (by compile)... failed (disable)
npm error checking for libsasl (by pkg-config)... failed
npm error checking for libsasl (by compile)... failed (disable)
npm error checking for libzstd (by pkg-config)... failed
npm error checking for libzstd (by compile)... failed (disable)
npm error checking for libcurl (by pkg-config)... failed
npm error checking for libcurl (by compile)... failed (disable)
npm error checking for libm (by pkg-config)... failed
npm error checking for libm (by compile)... ok
npm error checking for liblz4 (by pkg-config)... failed
npm error checking for liblz4 (by compile)... failed (disable)
npm error checking for syslog (by compile)... ok
npm error checking for rapidjson (by compile)... failed (disable)
npm error checking for crc32chw (by compile)... ok
npm error checking for regex (by compile)... ok
npm error checking for rand_r (by compile)... ok
npm error checking for strndup (by compile)... ok
npm error checking for strlcpy (by compile)... ok
npm error checking for strerror_r (by compile)... ok
npm error checking for strcasestr (by compile)... ok
npm error checking for pthread_setname_gnu (by compile)... ok
npm error checking for nm (by env NM)... ok (cached)
npm error checking for python3 (by command)... ok
npm error checking for getrusage (by compile)... ok
npm error Generated Makefile.config
npm error Generated config.h
npm error
npm error Configuration summary:
npm error   prefix                   /opt/app-root/src/node_modules/node-rdkafka/build/deps
npm error   MKL_DISTRO               centos
npm error   SOLIB_EXT                .so
npm error   ARCH                     x86_64
npm error   CPU                      generic
npm error   GEN_PKG_CONFIG           y
npm error   libdir                   /opt/app-root/src/node_modules/node-rdkafka/build/deps
npm error   MKL_APP_NAME             librdkafka
npm error   MKL_APP_DESC_ONELINE     The Apache Kafka C/C++ library
npm error   LDFLAGS                  -L/opt/app-root/src/node_modules/node-rdkafka/build/deps
npm error   CC                       gcc
npm error   CXX                      g++
npm error   LD                       ld
npm error   NM                       nm
npm error   OBJDUMP                  objdump
npm error   STRIP                    strip
npm error   RANLIB                   ranlib
npm error   CPPFLAGS                 -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align
npm error   PKG_CONFIG               pkg-config
npm error   INSTALL                  /usr/bin/install
npm error   HAS_GNU_AR               y
npm error   LIB_LDFLAGS              -shared -Wl,-soname,$(LIBFILENAME)
npm error   LDFLAG_LINKERSCRIPT      -Wl,--version-script=
npm error   RDKAFKA_VERSION_STR      2.5.0
npm error   MKL_APP_VERSION          2.5.0
npm error   LIBS                     -lm -lssl -lcrypto -ldl -lpthread -lrt -lpthread -lrt
npm error   MKL_PKGCONFIG_LIBS_PRIVATE -lm -ldl -lpthread -lrt -lpthread -lrt
npm error   MKL_PKGCONFIG_REQUIRES_PRIVATE libcrypto libssl
npm error   CFLAGS                   
npm error   MKL_PKGCONFIG_REQUIRES   libcrypto libssl
npm error   CXXFLAGS                 -Wno-non-virtual-dtor
npm error   SYMDUMPER                $(NM) -D
npm error   MKL_DYNAMIC_LIBS         -lm -lssl -lcrypto -ldl -lpthread -lrt -lpthread -lrt
npm error   exec_prefix              /opt/app-root/src/node_modules/node-rdkafka/build/deps
npm error   bindir                   /opt/app-root/src/node_modules/node-rdkafka/build/deps/bin
npm error   sbindir                  /opt/app-root/src/node_modules/node-rdkafka/build/deps/sbin
npm error   libexecdir               /opt/app-root/src/node_modules/node-rdkafka/build/deps/libexec
npm error   datadir                  /opt/app-root/src/node_modules/node-rdkafka/build/deps/share
npm error   sysconfdir               /opt/app-root/src/node_modules/node-rdkafka/build/deps/etc
npm error   sharedstatedir           /opt/app-root/src/node_modules/node-rdkafka/build/deps/com
npm error   localstatedir            /opt/app-root/src/node_modules/node-rdkafka/build/deps/var
npm error   runstatedir              /opt/app-root/src/node_modules/node-rdkafka/build/deps/var/run
npm error   includedir               /opt/app-root/src/node_modules/node-rdkafka/build/deps/include
npm error   infodir                  /opt/app-root/src/node_modules/node-rdkafka/build/deps/info
npm error   mandir                   /opt/app-root/src/node_modules/node-rdkafka/build/deps/man
npm error   BUILT_WITH               GCC GXX PKGCONFIG INSTALL GNULD LDS C11THREADS LIBDL PLUGINS SSL HDRHISTOGRAM SYSLOG SNAPPY SOCKEM SASL_SCRAM SASL_OAUTHBEARER CRC32C_HW
npm error Generated config.cache
npm error
npm error Now type 'make' to build
npm error   TOUCH 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
npm error   ACTION deps_librdkafka_gyp_librdkafka_target_build_dependencies 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
npm error make[1]: Entering directory '/opt/app-root/src/node_modules/node-rdkafka/deps/librdkafka'
npm error make[2]: Entering directory '/opt/app-root/src/node_modules/node-rdkafka/deps/librdkafka/src'
npm error gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I.  -c rdkafka.c -o rdkafka.o
npm error make[2]: Leaving directory '/opt/app-root/src/node_modules/node-rdkafka/deps/librdkafka/src'
npm error make[1]: Leaving directory '/opt/app-root/src/node_modules/node-rdkafka/deps/librdkafka'
npm error rm 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
npm error make: Leaving directory '/opt/app-root/src/node_modules/node-rdkafka/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info find Python using Python version 3.12.5 found at "/usr/bin/python3"
npm error gyp http GET https://nodejs.org/download/release/v22.4.1/node-v22.4.1-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v22.4.1/node-v22.4.1-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v22.4.1/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v22.4.1/SHASUMS256.txt
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules_22/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/opt/app-root/src/node_modules/node-rdkafka/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules_22/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/opt/app-root/src/.cache/node-gyp/22.4.1/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/opt/app-root/src/.cache/node-gyp/22.4.1',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules_22/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/opt/app-root/src/.cache/node-gyp/22.4.1/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/opt/app-root/src/node_modules/node-rdkafka',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from rdkafka_int.h:116,
npm error                  from rdkafka.c:43:
npm error rdkafka_conf.h:40:10: fatal error: openssl/engine.h: No such file or directory
npm error    40 | #include <openssl/engine.h>
npm error       |          ^~~~~~~~~~~~~~~~~~
npm error compilation terminated.
npm error make[2]: *** [../mklove/Makefile.base:97: rdkafka.o] Error 1
npm error make[1]: *** [Makefile:27: libs] Error 2
npm error make: *** [deps/librdkafka.target.mk:30: 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate] Error 2
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules_22/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 6.11.0-25.el10.x86_64
npm error gyp ERR! command "/usr/bin/node-22" "/usr/lib/node_modules_22/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /opt/app-root/src/node_modules/node-rdkafka
npm error gyp ERR! node -v v22.4.1
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm notice
npm notice New patch version of npm available! 10.8.1 -> 10.8.3
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.3
npm notice To update run: npm install -g [email protected]
npm notice
npm error A complete log of this run can be found in: /opt/app-root/src/.npm/_logs/2024-09-25T10_49_05_206Z-debug-0.log
Error: building at STEP "RUN /usr/libexec/s2i/assemble": while running runtime: exit status 1
  ERROR: Failed to to build /tmp/tmp.LZmY7f4WEe/Dockerfile.JoTH
Test for image 'quay.io/sclorg/nodejs-22-c10s:1' FAILED (exit code: 1)
Trying to pull quay.io/sclorg/nodejs-22-c10s:1-testbinary...
Error: initializing source docker://quay.io/sclorg/nodejs-22-c10s:1-testbinary: reading manifest 1-testbinary in quay.io/sclorg/nodejs-22-c10s: unauthorized: access to the requested resource is not authorized
Waiting for container start...
Waiting for container start...
Waiting for container start...
Waiting for container start...
Waiting for container start...
Waiting for container start...
@phracek
Copy link
Member Author

phracek commented Sep 25, 2024

@pacostas Please have a look at it.

@pacostas
Copy link
Contributor

This error occurs only on CentOS10 due to the changes on OpenSSL. We investigated it and found that it is not related to Nodejs, as the node-rdkafka npm package is a wrapper for the https://github.com/confluentinc/librdkafka library from which the error originated. We have reported it, but I don't think it will be fixed soon. I think it would be better to skip testing this library on CentOS10 until the error has been resolved.

@SlouchyButton
Copy link
Contributor

I think for Fedora F41 (if it won't be fixed in time for F41 release) it should be enough to install openssl-devel-engine as a workaround (since the use is still deprecated).

I looked and in c10s openssl-devel-engine is not available, so the same approach can't be used here and skipping the test seems like the only option.

@phracek
Copy link
Member Author

phracek commented Oct 17, 2024

I looked and in c10s openssl-devel-engine is not available, so the same approach can't be used here and skipping the test seems like the only option.

What should provide openssl-devel-engine there is a package called openssl-libs. @phracek tests whether openssl-libs fixes the problem. May be packages was separated.

@phracek
Copy link
Member Author

phracek commented Oct 17, 2024

It looks like in CentOS Stream 10 no package provides /usr/include/openssl/engine.h

phracek added a commit that referenced this issue Oct 17, 2024
phracek added a commit that referenced this issue Oct 17, 2024
phracek added a commit that referenced this issue Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants