SuccessConsole Output

Started by upstream project "buildall-stage_2-merge-v12" build number 370
originally caused by:
 Started by user garciadeblas
 > 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/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 d2860496dc4a5922c7f76bdfd2135fff187611b7
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/MON-stage_2-merge_v12.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/MON.git # timeout=10
Fetching without tags
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/*
Checking out Revision d2860496dc4a5922c7f76bdfd2135fff187611b7 (v12.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f d2860496dc4a5922c7f76bdfd2135fff187611b7
Commit message: "Update requirements to branch"
 > git rev-list --no-walk d2860496dc4a5922c7f76bdfd2135fff187611b7 # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/MON-stage_2-merge_v12.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/v12.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v12.0^{commit} # timeout=10
Checking out Revision 8e91a950fbfac8777b24f8fc577f7159bce65ee4 (refs/remotes/origin/v12.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 8e91a950fbfac8777b24f8fc577f7159bce65ee4
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D v12.0 # timeout=10
 > git checkout -b v12.0 8e91a950fbfac8777b24f8fc577f7159bce65ee4
Commit message: "Fix Bug 2338: updated kubernetes apt repo from apt.kubernetes.io to pkgs.k8s.io"
 > git rev-list --no-walk 8e91a950fbfac8777b24f8fc577f7159bce65ee4 # 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
[MON-stage_2-merge_v12.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/MON-stage_2-merge/job/v12.0/394/display/redirect?page=changes
GERRIT_PROJECT=osm/MON
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/MON-stage_2-merge/job/v12.0/394/
HUDSON_COOKIE=ecc254c1-1e03-4e3c-8a97-23b47e754d3d
JENKINS_SERVER_COOKIE=durable-6652446d96a4db48de161c7f449b5978
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=d2860496dc4a5922c7f76bdfd2135fff187611b7
WORKSPACE=/home/jenkins/workspace/MON-stage_2-merge_v12.0
LOGNAME=jenkins
NODE_NAME=osm-cicd-2
GERRIT_BRANCH=v12.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2-merge/job/v12.0/394/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=3
XDG_SESSION_ID=2054
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2-merge/job/v12.0/394/display/redirect?page=tests
BUILD_DISPLAY_NAME=#394
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v12.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=394
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-MON-stage_2-merge-v12.0-394
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/MON-stage_2-merge/job/v12.0/
BUILD_NUMBER=394
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2-merge/job/v12.0/394/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/12/13412/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2-merge/job/v12.0/display/redirect
JOB_NAME=MON-stage_2-merge/v12.0
TEST_INSTALL=false
PWD=/home/jenkins/workspace/MON-stage_2-merge_v12.0
SSH_CONNECTION=212.234.161.1 22456 172.21.249.2 22
BRANCH_NAME=v12.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ git fetch --tags
From https://osm.etsi.org/gerrit/osm/MON
 * [new tag]         v12.0.8    -> v12.0.8
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ git fetch origin refs/changes/12/13412/1
From https://osm.etsi.org/gerrit/osm/MON
 * branch            refs/changes/12/13412/1 -> FETCH_HEAD
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ git checkout -f d2860496dc4a5922c7f76bdfd2135fff187611b7
HEAD is now at d286049 Update requirements to branch
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ sudo git clean -dfx
Removing .cache/
Removing .config/
Removing .coverage
Removing .local/
Removing .safety/
Removing build.env
Removing changelog/
Removing cover/
Removing coverage.xml
Removing deb_dist/
Removing dist/
Removing dists/
Removing nosetests.xml
Removing osm_mon-12.0.7+gd286049.tar.gz
Removing osm_mon.egg-info/
Removing pool/
Removing vcd_pysdk.log
[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
[MON-stage_2-merge_v12.0] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/mon-v12.0 .
Sending build context to Docker daemon  54.64MB

Step 1/6 : FROM ubuntu:20.04
 ---> 3cff1c6ff37e
Step 2/6 : ARG APT_PROXY
 ---> Using cache
 ---> ebaec09a14bf
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
 ---> b0c1e5559433
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
 ---> ae4b78c804fd
Step 5/6 : RUN python3 -m easy_install pip==21.3.1
 ---> Using cache
 ---> 1397691fc7f0
Step 6/6 : RUN pip install tox==3.24.5
 ---> Using cache
 ---> 7d010b02133a
Successfully built 7d010b02133a
Successfully tagged osm/mon-v12.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ id -u
[Pipeline] sh
[MON-stage_2-merge_v12.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/MON-stage_2-merge_v12.0 -v /home/jenkins/workspace/MON-stage_2-merge_v12.0:/home/jenkins/workspace/MON-stage_2-merge_v12.0:rw,z -v /home/jenkins/workspace/MON-stage_2-merge_v12.0@tmp:/home/jenkins/workspace/MON-stage_2-merge_v12.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-v12.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/MON-stage_2-merge_v12.0 -r -g jenkins jenkins
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
✔ OK black in 8.49 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/workspace/MON-stage_2-merge_v12.0
flake8 installed: flake8==7.0.0,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/MON.git@d2860496dc4a5922c7f76bdfd2135fff187611b7#egg=osm_mon,pycodestyle==2.11.1,pyflakes==3.2.0
flake8 run-test-pre: PYTHONHASHSEED='1806005843'
flake8 run-test: commands[0] | flake8 osm_mon/ setup.py
osm_mon/collector/infra_collectors/base_osinfra.py:69: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")
                                                                                                                        ^
osm_mon/collector/vnf_collectors/openstack.py:164:121: E501 line too long (157 > 120 characters)
                        if value is None and metric_name in METRIC_MAPPINGS_FOR_ROCKY_AND_NEWER_RELEASES and type(self.backend) is not PrometheusTSBDBackend:
                                                                                                                        ^
osm_mon/collector/vnf_collectors/openstack.py:243:50: E251 unexpected spaces around keyword / parameter equals
        return prometheus_client(url, disable_ssl = True)
                                                 ^
osm_mon/collector/vnf_collectors/openstack.py:243:52: E251 unexpected spaces around keyword / parameter equals
        return prometheus_client(url, disable_ssl = True)
                                                   ^
osm_mon/collector/vnf_collectors/openstack.py:254:52: E251 unexpected spaces around keyword / parameter equals
    def query_metric(self, metric_name, resource_id = None):
                                                   ^
osm_mon/collector/vnf_collectors/openstack.py:254:54: E251 unexpected spaces around keyword / parameter equals
    def query_metric(self, metric_name, resource_id = None):
                                                     ^
osm_mon/collector/vnf_collectors/openstack.py:255:67: E251 unexpected spaces around keyword / parameter equals
        metrics = self.client.get_current_metric_value(metric_name = metric_name)
                                                                  ^
osm_mon/collector/vnf_collectors/openstack.py:255:69: E251 unexpected spaces around keyword / parameter equals
        metrics = self.client.get_current_metric_value(metric_name = metric_name)
                                                                    ^
ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osm_mon/ setup.py (exited with code 1)

=================================== log end ====================================
✖ FAIL flake8 in 10.676 seconds
✔ OK safety in 1 minute, 33.913 seconds
✔ OK cover in 2 minutes, 5.4 seconds
✔ OK pylint in 2 minutes, 16.006 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-merge_v12.0] Running shell script
+ runuser jenkins -c devops-stages/stage-build.sh
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ runuser jenkins -c mkdir -p changelog
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ runuser jenkins -c devops/tools/generatechangelog-pipeline.sh > changelog/changelog-MON.html
[Pipeline] sh
[MON-stage_2-merge_v12.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/v12.0/394/dists/unstable/MON/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-MON/v12.0/394/dists/unstable/MON/binary-amd64/Packages
[consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-MON/v12.0/394/pool/MON/python3-osm-mon_12.0.8%2Bgd286049-1_all.deb
[consumer_0] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-MON/v12.0/394/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-merge%20::%20v12.0/394
[Pipeline] sh
[MON-stage_2-merge_v12.0] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 7aa59ef7542d7b747984abb43d3f77c17c81ced6e7293dc5f76371a762c30f8e
$ docker rm -f 7aa59ef7542d7b747984abb43d3f77c17c81ced6e7293dc5f76371a762c30f8e
[Pipeline] // withDockerContainer
[Pipeline] stage
[Pipeline] { (Snap build)
[Pipeline] fileExists
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS