2025-01-16 01:36:36,008: INFO: Building contrail-tor-agent 2025-01-16 01:36:36,073: INFO: Building args: --network host --build-arg CONTRAIL_REGISTRY=nexus.gz1.opensdn.io:5102 --build-arg CONTRAIL_CONTAINER_TAG=nightly-r24.1-centos --build-arg SITE_MIRROR=http://nexus.gz1.opensdn.io/repository/external-web-cache --build-arg LINUX_DISTR_VER=7 --build-arg LINUX_DISTR=centos --build-arg GENERAL_EXTRA_RPMS="" --build-arg BASE_EXTRA_RPMS="" --build-arg YUM_ENABLE_REPOS="" --build-arg CONTAINER_NAME=contrail-tor-agent --build-arg UBUNTU_DISTR_VERSION=22.04 --build-arg UBUNTU_DISTR=ubuntu --build-arg VENDOR_NAME=OpenSDN-IO --build-arg VENDOR_DOMAIN=io.opensdn Sending build context to Docker daemon 11.26 kB Step 1/8 : FROM nexus.gz1.opensdn.io:5102/contrail-base:nightly-r24.1-centos ---> a4e44e1776cc Step 2/8 : ARG CONTAINER_NAME ---> Using cache ---> d200d14c7048 Step 3/8 : ENV NODE_TYPE=toragent SERVICE_NAME=tor-agent CONTAINER_NAME=$CONTAINER_NAME ---> Running in 107d249f2eaa ---> Removed intermediate container 107d249f2eaa ---> 91af7588f6dc Step 4/8 : LABEL name=$CONTAINER_NAME summary="Contrail ToR agent" description="A ToR agent provisioned in the Contrail cluster acts as the OVSDB client for the ToR switch, and all of the OVSDB interactions with the ToR switch are performed by using the ToR agent." $VENDOR_DOMAIN".pod"=$NODE_TYPE $VENDOR_DOMAIN".service"=$SERVICE_NAME $VENDOR_DOMAIN".container.name"=$CONTAINER_NAME ---> Running in f8cfc9ca3086 ---> Removed intermediate container f8cfc9ca3086 ---> 9fbe4deef44f Step 5/8 : RUN yum install -y contrail-vrouter-agent python-contrail-vrouter-api && yum clean all -y && rm -rf /var/cache/yum ---> Running in ef15709b49e1 Loaded plugins: fastestmirror, ovl Determining fastest mirrors Resolving Dependencies --> Running transaction check ---> Package contrail-vrouter-agent.x86_64 0:nightly.r24.1.centos-nightly_r24.1_centos.el7 will be installed --> Processing Dependency: xmltodict >= 0.7.0 for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 --> Processing Dependency: libtcmalloc.so.4()(64bit) for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 --> Processing Dependency: libboost_thread-mt.so.1.53.0()(64bit) for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 --> Processing Dependency: libboost_system.so.1.53.0()(64bit) for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 --> Processing Dependency: libboost_system-mt.so.1.53.0()(64bit) for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 --> Processing Dependency: libboost_regex.so.1.53.0()(64bit) for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 --> Processing Dependency: libboost_program_options.so.1.53.0()(64bit) for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 --> Processing Dependency: libboost_filesystem.so.1.53.0()(64bit) for package: contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64 ---> Package python-contrail-vrouter-api.x86_64 0:nightly.r24.1.centos-nightly_r24.1_centos.el7 will be installed --> Running transaction check ---> Package boost-filesystem.x86_64 0:1.53.0-28.el7 will be installed ---> Package boost-program-options.x86_64 0:1.53.0-28.el7 will be installed ---> Package boost-regex.x86_64 0:1.53.0-28.el7 will be installed --> Processing Dependency: libicuuc.so.50()(64bit) for package: boost-regex-1.53.0-28.el7.x86_64 --> Processing Dependency: libicui18n.so.50()(64bit) for package: boost-regex-1.53.0-28.el7.x86_64 --> Processing Dependency: libicudata.so.50()(64bit) for package: boost-regex-1.53.0-28.el7.x86_64 ---> Package boost-system.x86_64 0:1.53.0-28.el7 will be installed ---> Package boost-thread.x86_64 0:1.53.0-28.el7 will be installed ---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be installed ---> Package xmltodict.noarch 0:0.7.0-1.0contrail will be installed --> Running transaction check ---> Package libicu.x86_64 0:50.2-4.el7_7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: contrail-vrouter-agent x86_64 nightly.r24.1.centos-nightly_r24.1_centos.el7 contrail 13 M python-contrail-vrouter-api x86_64 nightly.r24.1.centos-nightly_r24.1_centos.el7 contrail 7.1 k Installing for dependencies: boost-filesystem x86_64 1.53.0-28.el7 contrail-tpc 67 k boost-program-options x86_64 1.53.0-28.el7 contrail-tpc 155 k boost-regex x86_64 1.53.0-28.el7 contrail-tpc 294 k boost-system x86_64 1.53.0-28.el7 contrail-tpc 39 k boost-thread x86_64 1.53.0-28.el7 contrail-tpc 56 k gperftools-libs x86_64 2.6.1-1.el7 tf-mirrors.ci_repos_yum7-base 272 k libicu x86_64 50.2-4.el7_7 tf-mirrors.ci_repos_yum7-base 6.9 M xmltodict noarch 0.7.0-1.0contrail contrail-tpc 9.4 k Transaction Summary ================================================================================ Install 2 Packages (+8 Dependent packages) Total download size: 20 M Installed size: 79 M Downloading packages: -------------------------------------------------------------------------------- Total 13 MB/s | 20 MB 00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : boost-system-1.53.0-28.el7.x86_64 1/10 Installing : boost-thread-1.53.0-28.el7.x86_64 2/10 Installing : boost-filesystem-1.53.0-28.el7.x86_64 3/10 Installing : xmltodict-0.7.0-1.0contrail.noarch 4/10 Installing : libicu-50.2-4.el7_7.x86_64 5/10 Installing : boost-regex-1.53.0-28.el7.x86_64 6/10 Installing : gperftools-libs-2.6.1-1.el7.x86_64 7/10 Installing : boost-program-options-1.53.0-28.el7.x86_64 8/10 Installing : contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24. 9/10 WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead. Collecting paramiko Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/+f/1fe/df06b08535905/paramiko-3.5.0-py3-none-any.whl (227kB) Collecting passlib Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/+f/aa6/bca462b8d8bda/passlib-1.7.4-py2.py3-none-any.whl (525kB) Collecting xmltodict Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/+f/20c/c7d723ed72927/xmltodict-0.14.2-py2.py3-none-any.whl Collecting pynacl>=1.5 (from paramiko) Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/+f/8ac/7448f09ab8581/PyNaCl-1.5.0.tar.gz (3.4MB) Complete output from command python setup.py egg_info: Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found src/c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory #include ^ compilation terminated. Traceback (most recent call last): File "/usr/lib64/python3.6/distutils/unixccompiler.py", line 127, in _compile extra_postargs) File "/usr/lib64/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib64/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib64/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run cmd = self.call_command('install_lib', warn_dir=0) File "/usr/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command self.run_command(cmdname) File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run self.build() File "/usr/lib64/python3.6/distutils/command/install_lib.py", line 107, in build self.run_command('build_ext') File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run _build_ext.run(self) File "/usr/lib64/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib64/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib64/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension _build_ext.build_extension(self, ext) File "/usr/lib64/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/usr/lib64/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib64/python3.6/distutils/unixccompiler.py", line 129, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile exec(code, globals, locals) File "/tmp/easy_install-ssarwf7n/cffi-1.17.1/setup.py", line 245, in File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.6/distutils/core.py", line 163, in setup raise SystemExit("error: " + str(msg)) SystemExit: error: command 'gcc' failed with exit status 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1143, in run_setup run_setup(setup_script, args) File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup raise File "/usr/lib64/python3.6/contextlib.py", line 99, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/usr/lib64/python3.6/contextlib.py", line 99, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules saved_exc.resume() File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume six.reraise(type, exc, self._tb) File "/usr/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise raise value.with_traceback(tb) File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile exec(code, globals, locals) File "/tmp/easy_install-ssarwf7n/cffi-1.17.1/setup.py", line 245, in File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.6/distutils/core.py", line 163, in setup raise SystemExit("error: " + str(msg)) SystemExit: error: command 'gcc' failed with exit status 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-ug4m3pf8/pynacl/setup.py", line 232, in "Programming Language :: Python :: 3.10", File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 128, in setup _install_setup_requires(attrs) File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 123, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs replace_conflicting=True, File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 770, in resolve replace_conflicting=replace_conflicting File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1053, in best_match return self.obtain(req, installer) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in obtain return installer(requirement) File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg return cmd.easy_install(req) File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 678, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 704, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 889, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1157, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1145, in run_setup raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1 ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ug4m3pf8/pynacl/ warning: %post(contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64) scriptlet failed, exit status 1 Non-fatal POSTIN scriptlet failure in rpm package contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24.1_centos.el7.x86_64  Installing : python-contrail-vrouter-api-nightly.r24.1.centos-nightly 10/10 Verifying : boost-system-1.53.0-28.el7.x86_64 1/10 Verifying : python-contrail-vrouter-api-nightly.r24.1.centos-nightly 2/10 Verifying : boost-thread-1.53.0-28.el7.x86_64 3/10 Verifying : contrail-vrouter-agent-nightly.r24.1.centos-nightly_r24. 4/10 Verifying : boost-program-options-1.53.0-28.el7.x86_64 5/10 Verifying : gperftools-libs-2.6.1-1.el7.x86_64 6/10 Verifying : libicu-50.2-4.el7_7.x86_64 7/10 Verifying : boost-regex-1.53.0-28.el7.x86_64 8/10 Verifying : xmltodict-0.7.0-1.0contrail.noarch 9/10 Verifying : boost-filesystem-1.53.0-28.el7.x86_64 10/10 Installed: contrail-vrouter-agent.x86_64 0:nightly.r24.1.centos-nightly_r24.1_centos.el7 python-contrail-vrouter-api.x86_64 0:nightly.r24.1.centos-nightly_r24.1_centos.el7 Dependency Installed: boost-filesystem.x86_64 0:1.53.0-28.el7 boost-program-options.x86_64 0:1.53.0-28.el7 boost-regex.x86_64 0:1.53.0-28.el7 boost-system.x86_64 0:1.53.0-28.el7 boost-thread.x86_64 0:1.53.0-28.el7 gperftools-libs.x86_64 0:2.6.1-1.el7 libicu.x86_64 0:50.2-4.el7_7 xmltodict.noarch 0:0.7.0-1.0contrail Complete! Loaded plugins: fastestmirror, ovl Cleaning repos: contrail contrail-tpc : tf-mirrors.ci_repos_centos-openstack-queens : tf-mirrors.ci_repos_dockerrepo tf-mirrors.ci_repos_yum7-base : tf-mirrors.ci_repos_yum7-centos-sclo-rh : tf-mirrors.ci_repos_yum7-centosplus : tf-mirrors.ci_repos_yum7-extras tf-mirrors.ci_repos_yum7-updates Cleaning up list of fastest mirrors ---> Removed intermediate container ef15709b49e1 ---> 92743cac69cd Step 6/8 : COPY *.sh / ---> 91a3f3813c47 Step 7/8 : ENTRYPOINT ["/entrypoint.sh"] ---> Running in c6f8674550a5 ---> Removed intermediate container c6f8674550a5 ---> 0aac358dd2e0 Step 8/8 : CMD ["/usr/bin/contrail-tor-agent","--config_file","/etc/contrail/contrail-tor-agent.conf"] ---> Running in a3286bf4e022 ---> Removed intermediate container a3286bf4e022 ---> 4c811b553dac [Warning] One or more build-args [BASE_EXTRA_RPMS CONTRAIL_CONTAINER_TAG CONTRAIL_REGISTRY GENERAL_EXTRA_RPMS LINUX_DISTR LINUX_DISTR_VER SITE_MIRROR UBUNTU_DISTR UBUNTU_DISTR_VERSION VENDOR_DOMAIN VENDOR_NAME YUM_ENABLE_REPOS] were not consumed Successfully built 4c811b553dac Successfully tagged nexus.gz1.opensdn.io:5102/contrail-tor-agent:nightly-r24.1-centos Successfully tagged nexus.gz1.opensdn.io:5102/tf-tor-agent:nightly-r24.1-centos 2025-01-16 01:38:56,208: INFO: Docker build duration: 141 seconds The push refers to repository [nexus.gz1.opensdn.io:5102/contrail-tor-agent] 9395c235c1be: Preparing bc83b70a96a9: Preparing f5e8f6276110: Preparing 4efb78948b91: Preparing f2a861c3334c: Preparing 0043c7969c7a: Preparing 07a5e2089127: Preparing 3008cc1a3c5d: Preparing 4bd80658e5fc: Preparing 3e058088ed1f: Preparing 174f56854903: Preparing 9395c235c1be: Waiting bc83b70a96a9: Waiting f5e8f6276110: Waiting 4efb78948b91: Waiting f2a861c3334c: Waiting 0043c7969c7a: Waiting 07a5e2089127: Waiting 3008cc1a3c5d: Waiting 4bd80658e5fc: Waiting 3e058088ed1f: Waiting 174f56854903: Waiting 9395c235c1be: Pushed f5e8f6276110: Layer already exists f2a861c3334c: Layer already exists 4efb78948b91: Layer already exists 0043c7969c7a: Layer already exists 3008cc1a3c5d: Layer already exists 07a5e2089127: Layer already exists 4bd80658e5fc: Layer already exists 3e058088ed1f: Layer already exists 174f56854903: Layer already exists bc83b70a96a9: Pushed nightly-r24.1-centos: digest: sha256:3a6a80c8adc29e0ec63893ae229dfdff66b3e9328feea8e2d77b6cdfe97a20d9 size: 2619 The push refers to repository [nexus.gz1.opensdn.io:5102/tf-tor-agent] 9395c235c1be: Preparing bc83b70a96a9: Preparing f5e8f6276110: Preparing 4efb78948b91: Preparing f2a861c3334c: Preparing 0043c7969c7a: Preparing 07a5e2089127: Preparing 3008cc1a3c5d: Preparing 4bd80658e5fc: Preparing 3e058088ed1f: Preparing 174f56854903: Preparing f2a861c3334c: Waiting 0043c7969c7a: Waiting 07a5e2089127: Waiting 3008cc1a3c5d: Waiting 4bd80658e5fc: Waiting 3e058088ed1f: Waiting 174f56854903: Waiting f5e8f6276110: Layer already exists bc83b70a96a9: Layer already exists 9395c235c1be: Layer already exists 4efb78948b91: Layer already exists f2a861c3334c: Layer already exists 0043c7969c7a: Layer already exists 3008cc1a3c5d: Layer already exists 07a5e2089127: Layer already exists 4bd80658e5fc: Layer already exists 3e058088ed1f: Layer already exists 174f56854903: Layer already exists nightly-r24.1-centos: digest: sha256:3a6a80c8adc29e0ec63893ae229dfdff66b3e9328feea8e2d77b6cdfe97a20d9 size: 2619 2025-01-16 01:39:31,317: INFO: Building contrail-tor-agent finished successfully, duration: 176 seconds