Brief Description
-----------------
Docker image "uft" fails to compile in Jenkins.
Severity
--------
Critical
Steps to Reproduce
------------------
Run the Jenkins build
Expected Behavior
------------------
Build succeeds
Actual Behavior
----------------
Docker image build step fails while compiling starlingx/uft image
Reproducibility
---------------
Reproducible
System Configuration
--------------------
N/A
Branch/Pull Time/Commit
-----------------------
master/2023-09-04
Last Pass
---------
master/2023-08-30
Timestamp/Logs
--------------
Full log: https://mirror.starlingx.cengn.ca/mirror/starlingx/master/debian/monolithic/20230904T060000Z/logs/build-docker-images-stable.log.txt
[2023-09-04T12:41:06.446Z] >>> running builder pod command:
[2023-09-04T12:41:06.446Z] cd $MY_REPO/build-tools/build-docker-images && ./build-stx-images.sh --os-label=debian --attempts=3 --retry-delay=30 --stream=stable --version=20230904T060000Z --prefix=master --user=starlingx --latest --base=starlingx/stx-debian:master-stable-20230904T060000Z --no-pull-base --wheels=$MY_WORKSPACE/std/build-wheels-debian-stable/stx-debian-stable-wheels.tar --cache --push --os=debian
[2023-09-04T12:41:06.446Z] STX-k8s - INFO: Running: kubectl -n jenkins-debian-master get pods --selector 'app.kubernetes.io/instance=debian-master,app.kubernetes.io/name=stx-builder' | awk '$3 == "Running" {print $1}' | tail -n 1
[2023-09-04T12:41:06.446Z] STX-Shell - DEBUG: Running command: kubectl -n jenkins-debian-master exec --stdin debian-master-stx-builder-7d6c8fb584-ngmng -- bash -l -c 'runuser -u $MYUNAME -- bash --norc -c '"'"'source /home/$MYUNAME/userenv && { cd $MY_REPO/build-tools/build-docker-images && ./build-stx-images.sh --os-label=debian --attempts=3 --retry-delay=30 --stream=stable --version=20230904T060000Z --prefix=master --user=starlingx --latest --base=starlingx/stx-debian:master-stable-20230904T060000Z --no-pull-base --wheels=$MY_WORKSPACE/std/build-wheels-debian-stable/stx-debian-stable-wheels.tar --cache --push --os=debian ; }'"'"''
<...>
[2023-09-04T12:41:21.146Z] Step 4/37 : RUN yum -y install gcc-c++ git libtool make python36-devel && pip3 install --no-cache-dir meson==0.57.1 cython grpcio-tools grpcio-reflection pyyaml pyelftools && yum clean all
<...>
[2023-09-04T12:42:19.914Z] Installing collected packages: meson, cython, protobuf, grpcio, grpcio-tools, grpcio-reflection, pyyaml, pyelftools
[2023-09-04T12:42:19.914Z] Running setup.py install for meson: started
[2023-09-04T12:42:20.464Z] Running setup.py install for meson: finished with status 'done'
[2023-09-04T12:42:21.375Z] Running setup.py install for grpcio: started
[2023-09-04T12:43:28.883Z] Running setup.py install for grpcio: still running...
[2023-09-04T12:43:28.883Z] Running setup.py install for grpcio: finished with status 'done'
[2023-09-04T12:43:28.883Z] Running setup.py install for grpcio-tools: started
[2023-09-04T12:43:55.285Z] Running setup.py install for grpcio-tools: finished with status 'done'
[2023-09-04T12:43:55.285Z] Running setup.py install for pyyaml: started
[2023-09-04T12:43:55.285Z] Running setup.py install for pyyaml: finished with status 'error'
[2023-09-04T12:43:55.285Z] Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8vkv77ev/pyyaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_095jtnt-record/install-record.txt --single-version-externally-managed --compile:
[2023-09-04T12:43:55.285Z] running install
[2023-09-04T12:43:55.285Z] running build
[2023-09-04T12:43:55.285Z] running build_py
[2023-09-04T12:43:55.285Z] creating build
[2023-09-04T12:43:55.285Z] creating build/lib.linux-x86_64-3.6
[2023-09-04T12:43:55.285Z] creating build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/loader.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/parser.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/__init__.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/resolver.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/emitter.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/constructor.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/representer.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/nodes.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/scanner.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/composer.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.285Z] copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.286Z] copying lib/yaml/error.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.286Z] copying lib/yaml/dumper.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.286Z] copying lib/yaml/events.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.286Z] copying lib/yaml/reader.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.286Z] copying lib/yaml/serializer.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.286Z] copying lib/yaml/tokens.py -> build/lib.linux-x86_64-3.6/yaml
[2023-09-04T12:43:55.286Z] creating build/lib.linux-x86_64-3.6/_yaml
[2023-09-04T12:43:55.286Z] copying lib/_yaml/__init__.py -> build/lib.linux-x86_64-3.6/_yaml
[2023-09-04T12:43:55.286Z] running build_ext
[2023-09-04T12:43:55.286Z] Traceback (most recent call last):
[2023-09-04T12:43:55.286Z] File "<string>", line 1, in <module>
[2023-09-04T12:43:55.286Z] File "/tmp/pip-build-8vkv77ev/pyyaml/setup.py", line 313, in <module>
[2023-09-04T12:43:55.286Z] python_requires='>=3.6',
[2023-09-04T12:43:55.286Z] File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
[2023-09-04T12:43:55.286Z] return distutils.core.setup(**attrs)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup
[2023-09-04T12:43:55.286Z] dist.run_commands()
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands
[2023-09-04T12:43:55.286Z] self.run_command(cmd)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
[2023-09-04T12:43:55.286Z] cmd_obj.run()
[2023-09-04T12:43:55.286Z] File "/usr/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
[2023-09-04T12:43:55.286Z] return orig.install.run(self)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/command/install.py", line 556, in run
[2023-09-04T12:43:55.286Z] self.run_command('build')
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
[2023-09-04T12:43:55.286Z] self.distribution.run_command(command)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
[2023-09-04T12:43:55.286Z] cmd_obj.run()
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/command/build.py", line 135, in run
[2023-09-04T12:43:55.286Z] self.run_command(cmd_name)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
[2023-09-04T12:43:55.286Z] self.distribution.run_command(command)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
[2023-09-04T12:43:55.286Z] cmd_obj.run()
[2023-09-04T12:43:55.286Z] File "/tmp/pip-build-8vkv77ev/pyyaml/setup.py", line 191, in run
[2023-09-04T12:43:55.286Z] _build_ext.run(self)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/command/build_ext.py", line 339, in run
[2023-09-04T12:43:55.286Z] self.build_extensions()
[2023-09-04T12:43:55.286Z] File "/tmp/pip-build-8vkv77ev/pyyaml/setup.py", line 233, in build_extensions
[2023-09-04T12:43:55.286Z] ext.sources = self.cython_sources(ext.sources, ext)
[2023-09-04T12:43:55.286Z] File "/usr/lib64/python3.6/distutils/cmd.py", line 103, in __getattr__
[2023-09-04T12:43:55.286Z] raise AttributeError(attr)
[2023-09-04T12:43:55.286Z] AttributeError: cython_sources
[2023-09-04T12:43:55.286Z]
[2023-09-04T12:43:55.286Z] ----------------------------------------
[2023-09-04T12:43:55.286Z] Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8vkv77ev/pyyaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_095jtnt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-8vkv77ev/pyyaml/
[2023-09-04T12:43:55.286Z] The command '/bin/sh -c yum -y install gcc-c++ git libtool make python36-devel && pip3 install --no-cache-dir meson==0.57.1 cython grpcio-tools grpcio-reflection pyyaml pyelftools && yum clean all' returned a non-zero code: 1
Test Activity
-------------
N/A
Workaround
----------
N/A
See also: https:/ /stackoverflow. com/a/76710304