FailedConsole Output

Started by upstream project "buildall-stage_2-merge-v14" build number 310
originally caused by:
 Started by timer
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/NBI.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/NBI.git # timeout=10
Fetching origin...
Fetching upstream changes from origin
 > git --version # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*
Seen branch in repository origin/bug1511
Seen branch in repository origin/feature5837
Seen branch in repository origin/feature7106
Seen branch in repository origin/feature7928
Seen branch in repository origin/master
Seen branch in repository origin/netslice
Seen branch in repository origin/new-pipeline
Seen branch in repository origin/ng-ro-refactor
Seen branch in repository origin/paas
Seen branch in repository origin/sol006
Seen branch in repository origin/sol006v331
Seen branch in repository origin/v10.0
Seen branch in repository origin/v11.0
Seen branch in repository origin/v12.0
Seen branch in repository origin/v13.0
Seen branch in repository origin/v14.0
Seen branch in repository origin/v15.0
Seen branch in repository origin/v3.1
Seen branch in repository origin/v4.0
Seen branch in repository origin/v5.0
Seen branch in repository origin/v6.0
Seen branch in repository origin/v7.0
Seen branch in repository origin/v8.0
Seen branch in repository origin/v9.0
Seen 24 remote branches
Obtained Jenkinsfile from 19d101d710b20350f69a9e98a772aff827911b83
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm-cicd-3 in /home/jenkins/workspace/NBI-stage_2-merge_v14.0
[Pipeline] {
[Pipeline] checkout
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/NBI.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/NBI.git
 > git --version # timeout=10
 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/NBI.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 19d101d710b20350f69a9e98a772aff827911b83 (v14.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 19d101d710b20350f69a9e98a772aff827911b83
Commit message: "Pin black version in tox.ini to 23.12.1"
 > git rev-list --no-walk 19d101d710b20350f69a9e98a772aff827911b83 # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/NBI-stage_2-merge_v14.0/devops
[Pipeline] {
[Pipeline] git
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/devops # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/devops
 > git --version # timeout=10
 > git fetch --tags --force --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/v14.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v14.0^{commit} # timeout=10
Checking out Revision 9a0f65691eb79dd509d0f3750a1e9144737a0d80 (refs/remotes/origin/v14.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 9a0f65691eb79dd509d0f3750a1e9144737a0d80
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D v14.0 # timeout=10
 > git checkout -b v14.0 9a0f65691eb79dd509d0f3750a1e9144737a0d80
Commit message: "fix VIM monitoring bug 2354"
 > git rev-list --no-walk 9a0f65691eb79dd509d0f3750a1e9144737a0d80 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_stage_2.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] echo
do_stage_3= false
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_helper.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] stage
[Pipeline] { (Prepare)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 32791 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/317/display/redirect?page=changes
GERRIT_PROJECT=osm/NBI
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=osm-cicd-3 osm3 stage_2
HUDSON_URL=https://osm.etsi.org/jenkins/
MOTD_SHOWN=pam
OLDPWD=/home/jenkins
HOME=/home/jenkins
BUILD_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/317/
HUDSON_COOKIE=745a8afb-a4f3-43b4-8998-649aee68479b
JENKINS_SERVER_COOKIE=durable-241ba6fd0082734bde35844c826e87e3
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=19d101d710b20350f69a9e98a772aff827911b83
WORKSPACE=/home/jenkins/workspace/NBI-stage_2-merge_v14.0
LOGNAME=jenkins
NODE_NAME=osm-cicd-3
GERRIT_BRANCH=v14.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/317/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=0
XDG_SESSION_ID=2057
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/317/display/redirect?page=tests
BUILD_DISPLAY_NAME=#317
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v14.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=317
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-NBI-stage_2-merge-v14.0-317
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/
BUILD_NUMBER=317
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/317/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/90/14190/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/display/redirect
JOB_NAME=NBI-stage_2-merge/v14.0
TEST_INSTALL=false
PWD=/home/jenkins/workspace/NBI-stage_2-merge_v14.0
SSH_CONNECTION=212.234.161.1 32791 172.21.249.3 22
BRANCH_NAME=v14.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ git fetch --tags
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ git fetch origin refs/changes/90/14190/1
From https://osm.etsi.org/gerrit/osm/NBI
 * branch            refs/changes/90/14190/1 -> FETCH_HEAD
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ git checkout -f 19d101d710b20350f69a9e98a772aff827911b83
HEAD is now at 19d101d Pin black version in tox.ini to 23.12.1
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ sudo git clean -dfx
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] echo
skip the scan for merge
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Release Note Check)
[Pipeline] fileExists
[Pipeline] echo
No releasenote check present
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Docker-Build)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/nbi-v14.0 .
Sending build context to Docker daemon    157MB

Step 1/7 : FROM ubuntu:22.04
 ---> 437ec753bef3
Step 2/7 : ARG APT_PROXY
 ---> Using cache
 ---> a60ee3f27dee
Step 3/7 : RUN if [ ! -z $APT_PROXY ] ; then     echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;    echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;    fi
 ---> Using cache
 ---> 039a05e77321
Step 4/7 : RUN DEBIAN_FRONTEND=noninteractive apt-get update &&     DEBIAN_FRONTEND=noninteractive apt-get -y install         debhelper         dh-python         git         python3         python3-all         python3-dev         python3-setuptools         python3-pip         tox
 ---> Using cache
 ---> 168d6ec8a9d4
Step 5/7 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> 6a1c73e0e30c
Step 6/7 : ENV LANG C.UTF-8
 ---> Using cache
 ---> ca1ed3244786
Step 7/7 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget
 ---> Running in 663323e81ad7
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  wget
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 367 kB of archives.
After this operation, 1008 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 wget amd64 1.21.2-2ubuntu1 [367 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 367 kB in 0s (17.2 MB/s)
Selecting previously unselected package wget.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 19743 files and directories currently installed.)
Preparing to unpack .../wget_1.21.2-2ubuntu1_amd64.deb ...
Unpacking wget (1.21.2-2ubuntu1) ...
Setting up wget (1.21.2-2ubuntu1) ...
Processing triggers for man-db (2.10.2-1) ...
Removing intermediate container 663323e81ad7
 ---> 2f193b5580e4
Successfully built 2f193b5580e4
Successfully tagged osm/nbi-v14.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ id -u
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm-cicd-3 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -u root -w /home/jenkins/workspace/NBI-stage_2-merge_v14.0 -v /home/jenkins/workspace/NBI-stage_2-merge_v14.0:/home/jenkins/workspace/NBI-stage_2-merge_v14.0:rw,z -v /home/jenkins/workspace/NBI-stage_2-merge_v14.0@tmp:/home/jenkins/workspace/NBI-stage_2-merge_v14.0@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat osm/nbi-v14.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/NBI-stage_2-merge_v14.0 -r -g jenkins jenkins
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-0.log
================================== log start ===================================
flake8 create: /tmp/.tox/flake8
flake8 installdeps: flake8
flake8 develop-inst: /home/jenkins/workspace/NBI-stage_2-merge_v14.0
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-3.log
================================== log start ===================================
Obtaining file:///home/jenkins/workspace/NBI-stage_2-merge_v14.0
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      /tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/jenkins/workspace/NBI-stage_2-merge_v14.0/setup.py", line 30, in <module>
          setup(
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
          _install_setup_requires(attrs)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/dist.py", line 812, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/pkg_resources/__init__.py", line 771, in resolve
          dist = best[req.key] = env.best_match(
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1056, in best_match
          return self.obtain(req, installer)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1068, in obtain
          return installer(requirement)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/dist.py", line 883, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
          wheel.install_as_egg(dist_location)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/wheel.py", line 95, in install_as_egg
          self._install_as_egg(destination_eggdir, zf)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/wheel.py", line 103, in _install_as_egg
          self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
        File "/tmp/.tox/flake8/lib/python3.10/site-packages/setuptools/wheel.py", line 124, in _convert_metadata
          os.mkdir(destination_eggdir)
      FileExistsError: [Errno 17] File exists: '/home/jenkins/workspace/NBI-stage_2-merge_v14.0/.eggs/setuptools_version_command-99.9-py3.10.egg'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

=================================== log end ====================================

=================================== log end ====================================
✖ FAIL flake8 in 16.386 seconds
✔ OK black in 22.904 seconds
✔ OK safety in 2 minutes, 11.486 seconds
✔ OK cover in 3 minutes, 31.846 seconds
✔ OK pylint in 3 minutes, 47.996 seconds
___________________________________ summary ____________________________________
  black: commands succeeded
  cover: commands succeeded
ERROR:   flake8: parallel child exit code 1
  pylint: commands succeeded
  safety: commands succeeded
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 744f67e457fffe977c2c5f9b50db39823fcbc16fbf93ca6cf19c46f0efa052b3
$ docker rm -f 744f67e457fffe977c2c5f9b50db39823fcbc16fbf93ca6cf19c46f0efa052b3
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE