FailedConsole Output

Started by upstream project "buildall-stage_2-merge-v15" build number 131
originally caused by:
 Started by timer
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/POL.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/POL.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/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/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 21 remote branches
Obtained Jenkinsfile from 27aef6c638ce7c85118f96872d74163a35786d23
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor on ‘stage_2’
Running on osm-cicd-2 in /home/jenkins/workspace/POL-stage_2-merge_v15.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/POL.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/POL.git
 > git --version # timeout=10
 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/POL.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 27aef6c638ce7c85118f96872d74163a35786d23 (v15.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 27aef6c638ce7c85118f96872d74163a35786d23
Commit message: "Update requirements-dev to use v15 for osm-common and osm-im"
 > git rev-list --no-walk 27aef6c638ce7c85118f96872d74163a35786d23 # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/POL-stage_2-merge_v15.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/v15.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v15.0^{commit} # timeout=10
Checking out Revision a86f6292dfff3284c1186212bf2cddc48eefbaf0 (refs/remotes/origin/v15.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a86f6292dfff3284c1186212bf2cddc48eefbaf0
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D v15.0 # timeout=10
 > git checkout -b v15.0 a86f6292dfff3284c1186212bf2cddc48eefbaf0
Commit message: "fix VIM monitoring bug 2354"
 > git rev-list --no-walk a86f6292dfff3284c1186212bf2cddc48eefbaf0 # 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
[POL-stage_2-merge_v15.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 22456 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v15.0/134/display/redirect?page=changes
GERRIT_PROJECT=osm/POL
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=docker osm-cicd-2 osm2 pipeline 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/POL-stage_2-merge/job/v15.0/134/
HUDSON_COOKIE=1cdbb99f-fad2-48e4-8978-cc2b6ac4f913
JENKINS_SERVER_COOKIE=durable-8df1fc8af6e4f07c58e1552e4cadcc8b
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=27aef6c638ce7c85118f96872d74163a35786d23
WORKSPACE=/home/jenkins/workspace/POL-stage_2-merge_v15.0
LOGNAME=jenkins
NODE_NAME=osm-cicd-2
GERRIT_BRANCH=v15.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v15.0/134/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=5
XDG_SESSION_ID=2054
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v15.0/134/display/redirect?page=tests
BUILD_DISPLAY_NAME=#134
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v15.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=134
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-POL-stage_2-merge-v15.0-134
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v15.0/
BUILD_NUMBER=134
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v15.0/134/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/34/14134/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v15.0/display/redirect
JOB_NAME=POL-stage_2-merge/v15.0
TEST_INSTALL=false
PWD=/home/jenkins/workspace/POL-stage_2-merge_v15.0
SSH_CONNECTION=212.234.161.1 22456 172.21.249.2 22
BRANCH_NAME=v15.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ git fetch --tags
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ git fetch origin refs/changes/34/14134/1
From https://osm.etsi.org/gerrit/osm/POL
 * branch            refs/changes/34/14134/1 -> FETCH_HEAD
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ git checkout -f 27aef6c638ce7c85118f96872d74163a35786d23
HEAD is now at 27aef6c Update requirements-dev to use v15 for osm-common and osm-im
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ sudo git clean -dfx
Removing .cache/
Removing .coverage
Removing .local/
Removing .safety/
Removing build.env
Removing changelog/
Removing cover/
Removing coverage.xml
Removing deb_dist/
Removing dist/
Removing nosetests.xml
Removing osm_policy_module-15.0.1+g27aef6c.tar.gz
Removing osm_policy_module.egg-info/
Removing pool/
[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
[POL-stage_2-merge_v15.0] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/pol-v15.0 .
Sending build context to Docker daemon  151.3MB

Step 1/6 : FROM ubuntu:22.04
 ---> ca2b0f26964c
Step 2/6 : ARG APT_PROXY
 ---> Using cache
 ---> d323c3b5df20
Step 3/6 : 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
 ---> c3c564e6497a
Step 4/6 : 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
 ---> 87c7300f2b42
Step 5/6 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> 3a536da9f4e5
Step 6/6 : ENV LANG C.UTF-8
 ---> Using cache
 ---> 85bf297a3e5f
Successfully built 85bf297a3e5f
Successfully tagged osm/pol-v15.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ id -u
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm-cicd-2 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -u root -w /home/jenkins/workspace/POL-stage_2-merge_v15.0 -v /home/jenkins/workspace/POL-stage_2-merge_v15.0:/home/jenkins/workspace/POL-stage_2-merge_v15.0:rw,z -v /home/jenkins/workspace/POL-stage_2-merge_v15.0@tmp:/home/jenkins/workspace/POL-stage_2-merge_v15.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/pol-v15.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/POL-stage_2-merge_v15.0 -r -g jenkins jenkins
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[POL-stage_2-merge_v15.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/cover/log/cover-0.log
================================== log start ===================================
cover create: /tmp/.tox/cover
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/cover/log/cover-1.log
================================== log start ===================================
RuntimeError: failed to build image pip because:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 56, in _install
    installer.build_image()
  File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 57, in build_image
    self._fix_records(new_files)
  File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/pip_install/copy.py", line 34, in _fix_records
    with open(ensure_text(str(self._dist_info / "RECORD")), "ab") as file_handler:
FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/workspace/POL-stage_2-merge_v15.0/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.0.2-py3-none-any/pip-22.0.2.dist-info/RECORD'


=================================== log end ====================================
ERROR: InvocationError for command /usr/bin/python3 -m virtualenv --no-download --python /usr/bin/python3 cover (exited with code 1)

=================================== log end ====================================
✖ FAIL cover in 0.886 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-0.log
================================== log start ===================================
flake8 create: /tmp/.tox/flake8
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-1.log
================================== log start ===================================
RuntimeError: failed to build image pip because:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 54, in _install
    with parent.non_reentrant_lock_for_key(wheel_img.name):
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 147, in non_reentrant_lock_for_key
    with _CountedFileLock(str(self.path / "{}.lock".format(name))):
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 214, in __enter__
    self.acquire()
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 31, in acquire
    super(_CountedFileLock, self).acquire(timeout, poll_interval)
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 170, in acquire
    self._acquire()
  File "/usr/lib/python3/dist-packages/filelock/_unix.py", line 35, in _acquire
    fd = os.open(self._lock_file, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/workspace/POL-stage_2-merge_v15.0/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.0.2-py3-none-any.lock'


=================================== log end ====================================
ERROR: InvocationError for command /usr/bin/python3 -m virtualenv --no-download --python /usr/bin/python3 flake8 (exited with code 1)

=================================== log end ====================================
✖ FAIL flake8 in 0.896 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/black/log/black-0.log
================================== log start ===================================
black create: /tmp/.tox/black
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/black/log/black-1.log
================================== log start ===================================
RuntimeError: failed to build image pip because:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 54, in _install
    with parent.non_reentrant_lock_for_key(wheel_img.name):
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 147, in non_reentrant_lock_for_key
    with _CountedFileLock(str(self.path / "{}.lock".format(name))):
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 214, in __enter__
    self.acquire()
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 31, in acquire
    super(_CountedFileLock, self).acquire(timeout, poll_interval)
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 170, in acquire
    self._acquire()
  File "/usr/lib/python3/dist-packages/filelock/_unix.py", line 35, in _acquire
    fd = os.open(self._lock_file, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/workspace/POL-stage_2-merge_v15.0/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.0.2-py3-none-any.lock'


=================================== log end ====================================
ERROR: InvocationError for command /usr/bin/python3 -m virtualenv --no-download --python /usr/bin/python3 black (exited with code 1)

=================================== log end ====================================
✖ FAIL black in 0.91 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/safety/log/safety-0.log
================================== log start ===================================
safety create: /tmp/.tox/safety
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/safety/log/safety-1.log
================================== log start ===================================
RuntimeError: failed to build image pip because:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 54, in _install
    with parent.non_reentrant_lock_for_key(wheel_img.name):
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 147, in non_reentrant_lock_for_key
    with _CountedFileLock(str(self.path / "{}.lock".format(name))):
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 214, in __enter__
    self.acquire()
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 31, in acquire
    super(_CountedFileLock, self).acquire(timeout, poll_interval)
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 170, in acquire
    self._acquire()
  File "/usr/lib/python3/dist-packages/filelock/_unix.py", line 35, in _acquire
    fd = os.open(self._lock_file, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/workspace/POL-stage_2-merge_v15.0/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.0.2-py3-none-any.lock'


=================================== log end ====================================
ERROR: InvocationError for command /usr/bin/python3 -m virtualenv --no-download --python /usr/bin/python3 safety (exited with code 1)

=================================== log end ====================================
✖ FAIL safety in 0.898 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/pylint/log/pylint-0.log
================================== log start ===================================
pylint create: /tmp/.tox/pylint
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/pylint/log/pylint-1.log
================================== log start ===================================
RuntimeError: failed to build image pip because:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 54, in _install
    with parent.non_reentrant_lock_for_key(wheel_img.name):
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 147, in non_reentrant_lock_for_key
    with _CountedFileLock(str(self.path / "{}.lock".format(name))):
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 214, in __enter__
    self.acquire()
  File "/usr/lib/python3/dist-packages/virtualenv/util/lock.py", line 31, in acquire
    super(_CountedFileLock, self).acquire(timeout, poll_interval)
  File "/usr/lib/python3/dist-packages/filelock/_api.py", line 170, in acquire
    self._acquire()
  File "/usr/lib/python3/dist-packages/filelock/_unix.py", line 35, in _acquire
    fd = os.open(self._lock_file, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/jenkins/workspace/POL-stage_2-merge_v15.0/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.0.2-py3-none-any.lock'


=================================== log end ====================================
ERROR: InvocationError for command /usr/bin/python3 -m virtualenv --no-download --python /usr/bin/python3 pylint (exited with code 1)

=================================== log end ====================================
✖ FAIL pylint in 0.905 seconds
___________________________________ summary ____________________________________
ERROR:   black: parallel child exit code 1
ERROR:   cover: parallel child exit code 1
ERROR:   flake8: parallel child exit code 1
ERROR:   pylint: parallel child exit code 1
ERROR:   safety: parallel child exit code 1
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 60bc689e46d9d39d02ee6e3017076c16640a0121f9aaa34b08fd3c0dcd068c4c
$ docker rm -f 60bc689e46d9d39d02ee6e3017076c16640a0121f9aaa34b08fd3c0dcd068c4c
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE