Console Output
Started by upstream project "MON-stage_1" build number 1384
originally caused by:
Triggered by Gerrit: https://osm.etsi.org/gerrit/12691
> git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/MON.git
> git config remote.origin.url https://osm.etsi.org/gerrit/osm/MON.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/rift300
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/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 21 remote branches
Obtained Jenkinsfile from bc381800d690aed4052670808a93dd868fdd0297
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm3 slave in /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0
[Pipeline] {
[Pipeline] checkout
No credentials specified
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://osm.etsi.org/gerrit/osm/MON.git
> git init /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0 # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/MON.git
> git --version # timeout=10
> git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/MON.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url https://osm.etsi.org/gerrit/osm/MON.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://osm.etsi.org/gerrit/osm/MON.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/MON.git
> git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/MON.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision bc381800d690aed4052670808a93dd868fdd0297 (v10.0)
> git config core.sparsecheckout # timeout=10
> git checkout -f bc381800d690aed4052670808a93dd868fdd0297
Commit message: "Jenkins refresh"
> git rev-list --no-walk 8413a875e6306d6f190d0fcc298ce6c59cbf797e # timeout=10
[Pipeline] dir
Running in /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0/devops
[Pipeline] {
[Pipeline] git
No credentials specified
Cloning the remote Git repository
Cloning repository https://osm.etsi.org/gerrit/osm/devops
> git init /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0/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 config remote.origin.url https://osm.etsi.org/gerrit/osm/devops # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> 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 fetch --tags --force --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/v10.0^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/v10.0^{commit} # timeout=10
Checking out Revision 56b03b29a477cacaec596e8c7b84bdcf0e4adb00 (refs/remotes/origin/v10.0)
> git config core.sparsecheckout # timeout=10
> git checkout -f 56b03b29a477cacaec596e8c7b84bdcf0e4adb00
> git branch -a -v --no-abbrev # timeout=10
> git checkout -b v10.0 56b03b29a477cacaec596e8c7b84bdcf0e4adb00
Commit message: "Minor fix in stage3 during push to dockerhub"
> git rev-list --no-walk 3a0df72b28deb846016deecc12641c48165f1f13 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_stage_2.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] echo
do_stage_3= true
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_helper.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] stage
[Pipeline] { (Prepare)
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
LC_TIME=fr_FR.UTF-8
SSH_CLIENT=195.238.226.13 54484 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v10.0/37/display/redirect?page=changes
GERRIT_PROJECT=osm/MON
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=osm3 osm3 slave stage_2 system
HUDSON_URL=https://osm.etsi.org/jenkins/
MOTD_SHOWN=pam
OLDPWD=/home/jenkins
HOME=/home/jenkins
BUILD_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v10.0/37/
HUDSON_COOKIE=8b16170f-1775-460c-b1ee-906e506d42ca
JENKINS_SERVER_COOKIE=durable-1df8967adbc03c4a838bdffa621c5387
LC_MONETARY=fr_FR.UTF-8
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1002/bus
GERRIT_PATCHSET_REVISION=918706d5a1c39dbb3edaf8e3cb1ef336fdb644dd
WORKSPACE=/home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0
LOGNAME=jenkins
NODE_NAME=osm3 slave
GERRIT_BRANCH=v10.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v10.0/37/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=1
XDG_SESSION_ID=3
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v10.0/37/display/redirect?page=tests
BUILD_DISPLAY_NAME=#37
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v10.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LC_ADDRESS=fr_FR.UTF-8
BUILD_ID=37
XDG_RUNTIME_DIR=/run/user/1002
BUILD_TAG=jenkins-MON-stage_2-v10.0-37
LC_TELEPHONE=fr_FR.UTF-8
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=en_US.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v10.0/
BUILD_NUMBER=37
SHELL=/bin/bash
LC_NAME=fr_FR.UTF-8
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v10.0/37/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/91/12691/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
LC_MEASUREMENT=fr_FR.UTF-8
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v10.0/display/redirect
LC_IDENTIFICATION=fr_FR.UTF-8
JOB_NAME=MON-stage_2/v10.0
TEST_INSTALL=true
PWD=/home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0
SSH_CONNECTION=195.238.226.13 54484 172.21.1.6 22
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
BRANCH_NAME=v10.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ git fetch --tags
From https://osm.etsi.org/gerrit/osm/MON
* [new tag] BUILD_v4.0.1_1 -> BUILD_v4.0.1_1
* [new tag] BUILD_v4.0.1_2 -> BUILD_v4.0.1_2
* [new tag] branch-bug1511-start -> branch-bug1511-start
* [new tag] branch-ng-ro-refactor-start -> branch-ng-ro-refactor-start
* [new tag] branch-sol006v331-start -> branch-sol006v331-start
* [new tag] release-paas-start -> release-paas-start
* [new tag] release-v10.0-start -> release-v10.0-start
* [new tag] release-v11.0-start -> release-v11.0-start
* [new tag] release-v12.0-start -> release-v12.0-start
* [new tag] release-v8.0-start -> release-v8.0-start
* [new tag] release-v9.0-start -> release-v9.0-start
* [new tag] v10.0.0 -> v10.0.0
* [new tag] v10.0.1 -> v10.0.1
* [new tag] v10.0.2 -> v10.0.2
* [new tag] v10.0.3 -> v10.0.3
* [new tag] v10.1.0 -> v10.1.0
* [new tag] v10.1.0-rc1 -> v10.1.0-rc1
* [new tag] v10.1.0rc2 -> v10.1.0rc2
* [new tag] v10.1.0rc3 -> v10.1.0rc3
* [new tag] v10.1.1 -> v10.1.1
* [new tag] v10.1.1-rc1 -> v10.1.1-rc1
* [new tag] v10.1.1rc2 -> v10.1.1rc2
* [new tag] v10.1.2 -> v10.1.2
* [new tag] v11.0.0 -> v11.0.0
* [new tag] v11.0.0rc1 -> v11.0.0rc1
* [new tag] v11.0.0rc2 -> v11.0.0rc2
* [new tag] v11.0.1 -> v11.0.1
* [new tag] v11.0.2 -> v11.0.2
* [new tag] v11.0.3 -> v11.0.3
* [new tag] v11.0.4 -> v11.0.4
* [new tag] v12.0.0 -> v12.0.0
* [new tag] v12.0.0rc1 -> v12.0.0rc1
* [new tag] v12.0.1 -> v12.0.1
* [new tag] v12.0.2 -> v12.0.2
* [new tag] v12.0.3 -> v12.0.3
* [new tag] v3.1.0 -> v3.1.0
* [new tag] v4.0.0 -> v4.0.0
* [new tag] v4.0.1 -> v4.0.1
* [new tag] v5.0.0 -> v5.0.0
* [new tag] v5.0.1 -> v5.0.1
* [new tag] v5.0.2 -> v5.0.2
* [new tag] v5.0.3 -> v5.0.3
* [new tag] v5.0.4 -> v5.0.4
* [new tag] v5.0.5 -> v5.0.5
* [new tag] v6.0.0 -> v6.0.0
* [new tag] v6.0.1 -> v6.0.1
* [new tag] v6.0.2 -> v6.0.2
* [new tag] v6.0.2rc1 -> v6.0.2rc1
* [new tag] v6.0.3 -> v6.0.3
* [new tag] v6.0.4 -> v6.0.4
* [new tag] v6.0.4rc1 -> v6.0.4rc1
* [new tag] v7.0.0 -> v7.0.0
* [new tag] v7.0.0rc1 -> v7.0.0rc1
* [new tag] v7.0.1 -> v7.0.1
* [new tag] v7.0.1rc1 -> v7.0.1rc1
* [new tag] v7.0.1rc2 -> v7.0.1rc2
* [new tag] v7.0.1rc3 -> v7.0.1rc3
* [new tag] v7.1.0 -> v7.1.0
* [new tag] v7.1.0rc1 -> v7.1.0rc1
* [new tag] v7.1.0rc2 -> v7.1.0rc2
* [new tag] v7.1.0rc3 -> v7.1.0rc3
* [new tag] v7.1.0rc4 -> v7.1.0rc4
* [new tag] v7.1.0rc5 -> v7.1.0rc5
* [new tag] v7.1.0rc6 -> v7.1.0rc6
* [new tag] v7.1.2 -> v7.1.2
* [new tag] v7.1.3 -> v7.1.3
* [new tag] v7.1.4 -> v7.1.4
* [new tag] v7.1.5 -> v7.1.5
* [new tag] v8.0.0 -> v8.0.0
* [new tag] v8.0.0rc1 -> v8.0.0rc1
* [new tag] v8.0.0rc2 -> v8.0.0rc2
* [new tag] v8.0.0rc3 -> v8.0.0rc3
* [new tag] v8.0.1 -> v8.0.1
* [new tag] v8.0.1rc1 -> v8.0.1rc1
* [new tag] v8.0.2 -> v8.0.2
* [new tag] v8.0.3 -> v8.0.3
* [new tag] v8.0.4 -> v8.0.4
* [new tag] v9.0.0 -> v9.0.0
* [new tag] v9.0.0rc1 -> v9.0.0rc1
* [new tag] v9.1.0 -> v9.1.0
* [new tag] v9.1.1 -> v9.1.1
* [new tag] v9.1.1rc1 -> v9.1.1rc1
* [new tag] v9.1.2 -> v9.1.2
* [new tag] v9.1.3 -> v9.1.3
* [new tag] v9.1.4 -> v9.1.4
* [new tag] v9.1.5 -> v9.1.5
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ git fetch origin refs/changes/91/12691/1
From https://osm.etsi.org/gerrit/osm/MON
* branch refs/changes/91/12691/1 -> FETCH_HEAD
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ git checkout -f 918706d5a1c39dbb3edaf8e3cb1ef336fdb644dd
Previous HEAD position was bc38180 Jenkins refresh
HEAD is now at 918706d Fix 2111: Added config parameter to disable vms status check
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ sudo git clean -dfx
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ devops/tools/license_scan.sh
osm_mon/collector/infra_collectors/base_osinfra.py Apache-2.0
osm_mon/collector/infra_collectors/vmware.py Apache-2.0
osm_mon/core/mon.yaml Apache-2.0
[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
[MON-stage_2_v10.0] Running shell script
+ docker build -t osm/mon-v10.0 .
Sending build context to Docker daemon 49.64MB
Step 1/6 : FROM ubuntu:20.04
---> 680e5dfb52c7
Step 2/6 : ARG APT_PROXY
---> Using cache
---> b1c32fc6129c
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
---> 269536a97bc2
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
---> Using cache
---> 22c5d090eaea
Step 5/6 : RUN python3 -m easy_install pip==21.3.1
---> Using cache
---> 712b72136f1a
Step 6/6 : RUN pip install tox==3.24.5
---> Using cache
---> 174b7481045c
Successfully built 174b7481045c
Successfully tagged osm/mon-v10.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ id -u
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm3 slave does not seem to be running inside a container
$ docker run -t -d -u 1002:1002 -u root -w /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0 -v /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0:/home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0:rw,z -v /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0@tmp:/home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.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/mon-v10.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ groupadd -o -g 1002 -r jenkins
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ pwd
+ useradd -o -u 1002 -d /home/jenkins/jenkins_slave/workspace/MON-stage_2_v10.0 -r -g jenkins jenkins
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
✔ OK black in 9.696 seconds
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/jenkins_slave/workspace/MON-stage_2_v10.0
flake8 installed: flake8==5.0.4,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/MON.git@918706d5a1c39dbb3edaf8e3cb1ef336fdb644dd#egg=osm_mon,pycodestyle==2.9.1,pyflakes==2.5.0
flake8 run-test-pre: PYTHONHASHSEED='3107535783'
flake8 run-test: commands[0] | flake8 osm_mon/ setup.py
osm_mon/collector/infra_collectors/base_osinfra.py:61:121: E501 line too long (122 > 120 characters)
vm_infra_metrics_enabled = str(self.conf.get("collector", "vm_infra_metrics")).lower() in ("yes", "true", "1")
^
osm_mon/collector/infra_collectors/vmware.py:198:121: E501 line too long (122 > 120 characters)
vm_infra_metrics_enabled = str(self.conf.get("collector", "vm_infra_metrics")).lower() in ("yes", "true", "1")
^
ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osm_mon/ setup.py (exited with code 1)
=================================== log end ====================================
✖ FAIL flake8 in 14.789 seconds
✔ OK safety in 45.968 seconds
✔ OK cover in 1 minute, 40.655 seconds
✔ OK pylint in 2 minutes, 4.09 seconds
___________________________________ summary ____________________________________
black: commands succeeded
cover: commands succeeded
ERROR: flake8: parallel child exit code 1
pylint: commands succeeded
safety: commands succeeded[Pipeline] fileExists
[Pipeline] step
[Cobertura] Publishing Cobertura coverage report...
[Cobertura] Publishing Cobertura coverage results...
[Cobertura] Cobertura coverage report found.
[Pipeline] fileExists
[Pipeline] junit
Recording test results
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-build.sh
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ runuser jenkins -c mkdir -p changelog
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops/tools/generatechangelog-pipeline.sh > changelog/changelog-MON.html
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-archive.sh
devops-stages/stage-archive.sh: 32: apt-ftparchive: not found
[Pipeline] getArtifactoryServer
[Pipeline] newBuildInfo
[Pipeline] artifactoryUpload
[consumer_0] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-MON/v10.0-staging/37/dists/unstable/MON/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-MON/v10.0-staging/37/dists/unstable/MON/binary-amd64/Packages
[consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-MON/v10.0-staging/37/pool/MON/python3-osm-mon_10.1.2.post1%2Bg918706d-1_all.deb
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-MON/v10.0-staging/37/changelog/changelog-MON.html
[Pipeline] publishBuildInfo
Deploying build info to: https://artifactory-osm.etsi.org/artifactory/api/build
Deploying build descriptor to: https://artifactory-osm.etsi.org/artifactory/api/build
Build successfully deployed. Browse it in Artifactory under https://artifactory-osm.etsi.org/artifactory/webapp/builds/MON-stage_2%20::%20v10.0/37
[Pipeline] sh
[MON-stage_2_v10.0] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 8ddd7feed68a7c4d625ad8cb66c8cfd8b04472cae22e31c6ca857f2e7463346f
$ docker rm -f 8ddd7feed68a7c4d625ad8cb66c8cfd8b04472cae22e31c6ca857f2e7463346f
[Pipeline] // withDockerContainer
[Pipeline] fileExists
[Pipeline] stage
[Pipeline] { (Build System)
[Pipeline] build (Building osm-stage_3 » v10.0)
Scheduling project: osm-stage_3 » v10.0
Starting building: osm-stage_3 » v10.0 #647
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS