SuccessConsole Output

Started by upstream project "buildall-stage_2-merge-v10" build number 316
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 0da53f18e775d99a104ea70ee1657010e779ce0e
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm-cicd-3 in /home/jenkins/workspace/POL-stage_2-merge_v10.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 0da53f18e775d99a104ea70ee1657010e779ce0e (v10.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 0da53f18e775d99a104ea70ee1657010e779ce0e
Commit message: "Jenkins refresh"
 > git rev-list --no-walk 0da53f18e775d99a104ea70ee1657010e779ce0e # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/POL-stage_2-merge_v10.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/v10.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v10.0^{commit} # timeout=10
Checking out Revision f92f3137aeecbc88d221f44b7e992af1f5e116aa (refs/remotes/origin/v10.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f f92f3137aeecbc88d221f44b7e992af1f5e116aa
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D v10.0 # timeout=10
 > git checkout -b v10.0 f92f3137aeecbc88d221f44b7e992af1f5e116aa
Commit message: "Changing charmed installer to use 10.0/stable Fixing black error in keystone charm"
 > git rev-list --no-walk f92f3137aeecbc88d221f44b7e992af1f5e116aa # 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_v10.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 13726 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v10.0/365/display/redirect?page=changes
GERRIT_PROJECT=osm/POL
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/POL-stage_2-merge/job/v10.0/365/
HUDSON_COOKIE=bd04557e-5b88-4e7f-a6ac-caa9e906aba7
JENKINS_SERVER_COOKIE=durable-df7b0e43ed470ed66f48236cb09b11ca
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=0da53f18e775d99a104ea70ee1657010e779ce0e
WORKSPACE=/home/jenkins/workspace/POL-stage_2-merge_v10.0
LOGNAME=jenkins
NODE_NAME=osm-cicd-3
GERRIT_BRANCH=v10.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v10.0/365/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=0
XDG_SESSION_ID=144
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v10.0/365/display/redirect?page=tests
BUILD_DISPLAY_NAME=#365
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
BUILD_ID=365
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-POL-stage_2-merge-v10.0-365
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v10.0/
BUILD_NUMBER=365
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v10.0/365/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/94/12394/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v10.0/display/redirect
JOB_NAME=POL-stage_2-merge/v10.0
TEST_INSTALL=false
PWD=/home/jenkins/workspace/POL-stage_2-merge_v10.0
SSH_CONNECTION=212.234.161.1 13726 172.21.249.3 22
BRANCH_NAME=v10.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[POL-stage_2-merge_v10.0] Running shell script
[Pipeline] sh
+ git fetch --tags
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ git fetch origin refs/changes/94/12394/1
From https://osm.etsi.org/gerrit/osm/POL
 * branch            refs/changes/94/12394/1 -> FETCH_HEAD
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ git checkout -f 0da53f18e775d99a104ea70ee1657010e779ce0e
HEAD is now at 0da53f1 Jenkins refresh
[Pipeline] sh
[POL-stage_2-merge_v10.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 dists/
Removing nosetests.xml
Removing osm_policy_module-10.1.5+g0da53f1.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
No releasenote check present
[Pipeline] echo
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Docker-Build)
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ docker build -t osm/pol-v10.0 .
Sending build context to Docker daemon  51.95MB

Step 1/6 : FROM ubuntu:20.04
 ---> f78909c2b360
Step 2/6 : ARG APT_PROXY
 ---> Using cache
 ---> 3f6949be98ab
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
 ---> 48f7661bee42
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
 ---> 3b10e52da1c2
Step 5/6 : RUN python3 -m easy_install pip==21.3.1
 ---> Using cache
 ---> 93effd34ae4c
Step 6/6 : RUN pip install tox==3.24.5
 ---> Using cache
 ---> 04616cde1bda
Successfully built 04616cde1bda
Successfully tagged osm/pol-v10.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ id -u
[Pipeline] sh
[POL-stage_2-merge_v10.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/POL-stage_2-merge_v10.0 -v /home/jenkins/workspace/POL-stage_2-merge_v10.0:/home/jenkins/workspace/POL-stage_2-merge_v10.0:rw,z -v /home/jenkins/workspace/POL-stage_2-merge_v10.0@tmp:/home/jenkins/workspace/POL-stage_2-merge_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/pol-v10.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[POL-stage_2-merge_v10.0] Running shell script
[Pipeline] sh
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/POL-stage_2-merge_v10.0 -r -g jenkins jenkins
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ chmod 755 /usr/bin/mesg
[POL-stage_2-merge_v10.0] Running shell script
[Pipeline] sh
+ runuser jenkins -c devops-stages/stage-test.sh
✔ OK black in 11.355 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/POL-stage_2-merge_v10.0
flake8 installed: flake8==7.0.0,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/POL.git@0da53f18e775d99a104ea70ee1657010e779ce0e#egg=osm_policy_module,pycodestyle==2.11.1,pyflakes==3.2.0
flake8 run-test-pre: PYTHONHASHSEED='2147571894'
flake8 run-test: commands[0] | flake8 osm_policy_module/ setup.py
osm_policy_module/alarming/service.py:79:41: W503 line break before binary operator
                                        == alarm_descriptor["alarm-id"],
                                        ^
osm_policy_module/alarming/service.py:81:41: W503 line break before binary operator
                                        == vnfr["member-vnf-index-ref"],
                                        ^
osm_policy_module/alarming/service.py:96:41: W503 line break before binary operator
                                        == alarm_descriptor["vnf-monitoring-param-ref"],
                                        ^
osm_policy_module/alarming/service.py:131:41: W503 line break before binary operator
                                        and action_type in alarm_descriptor["actions"]
                                        ^
osm_policy_module/autoscaling/service.py:130:49: W503 line break before binary operator
                                                == scaling_criteria["name"],
                                                ^
osm_policy_module/autoscaling/service.py:132:49: W503 line break before binary operator
                                                == scaling_policy["name"],
                                                ^
osm_policy_module/autoscaling/service.py:163:53: W503 line break before binary operator
                                                    == scaling_aspect["name"]
                                                    ^
osm_policy_module/core/agent.py:102:13: W503 line break before binary operator
            or nslcmop["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:121:13: W503 line break before binary operator
            or nslcmop["operationState"] == "PARTIALLY_COMPLETED"
            ^
osm_policy_module/core/agent.py:140:13: W503 line break before binary operator
            or content["operationState"] == "PARTIALLY_COMPLETED"
            ^
ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osm_policy_module/ setup.py (exited with code 1)

=================================== log end ====================================
✖ FAIL flake8 in 14.422 seconds
✔ OK safety in 32.083 seconds
✔ OK cover in 39.951 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/pylint/log/pylint-0.log
================================== log start ===================================
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements-dev.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v10.0/requirements-test.txt, pylint
pylint develop-inst: /home/jenkins/workspace/POL-stage_2-merge_v10.0
pylint installed: aiokafka==0.7.2,astroid==3.0.2,cached-property==1.5.2,certifi==2021.10.8,charset-normalizer==2.0.10,click==8.0.3,coverage==6.2,dataclasses==0.6,dill==0.3.8,idna==3.3,isort==5.13.2,jsonschema==2.6.0,kafka-python==2.0.2,mccabe==0.7.0,mock==4.0.3,nose2==0.10.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@7ddcf697a6a19d03211cf78bc653cc3974594b1e,-e git+https://osm.etsi.org/gerrit/osm/POL.git@0da53f18e775d99a104ea70ee1657010e779ce0e#egg=osm_policy_module,peewee==3.8.2,peewee-migrate==1.1.6,platformdirs==4.2.0,pycrypto==2.6.1,pylint==3.0.3,pymongo==3.12.3,PyMySQL==0.9.3,PyYAML==5.4.1,requests==2.27.1,six==1.16.0,tomli==2.0.1,tomlkit==0.12.3,typing_extensions==4.9.0,urllib3==1.26.8
pylint run-test-pre: PYTHONHASHSEED='2276303493'
pylint run-test: commands[0] | pylint -E osm_policy_module
************* Module osm_policy_module.alarming.service
osm_policy_module/alarming/service.py:169:29: E1133: Non-iterable value VnfAlarmRepository.list(VnfAlarm.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/alarming/service.py:199:29: E1133: Non-iterable value VnfAlarmRepository.list(VnfAlarm.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/alarming/service.py:242:31: E0701: Bad except clauses order (RequestException is an ancestor class of ConnectionError) (bad-except-order)
************* Module osm_policy_module.autoscaling.service
osm_policy_module/autoscaling/service.py:254:41: E1133: Non-iterable value ScalingGroupRepository.list(ScalingGroup.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/autoscaling/service.py:290:41: E1133: Non-iterable value ScalingGroupRepository.list(ScalingGroup.nsr_id == nsr_id) is used in an iterating context (not-an-iterable)
osm_policy_module/autoscaling/service.py:373:29: E1133: Non-iterable value alarms is used in an iterating context (not-an-iterable)
ERROR: InvocationError for command /tmp/.tox/pylint/bin/pylint -E osm_policy_module (exited with code 2)

=================================== log end ====================================
✖ FAIL pylint in 49.779 seconds
___________________________________ summary ____________________________________
  black: commands succeeded
  cover: commands succeeded
ERROR:   flake8: parallel child exit code 1
ERROR:   pylint: parallel child exit code 1
  safety: commands succeeded[Pipeline] fileExists
[Cobertura] Publishing Cobertura coverage report...

[Pipeline] step
[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
[POL-stage_2-merge_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-build.sh
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ runuser jenkins -c mkdir -p changelog
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ runuser jenkins -c devops/tools/generatechangelog-pipeline.sh > changelog/changelog-POL.html
[Pipeline] sh
[POL-stage_2-merge_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-POL/v10.0/365/dists/unstable/POL/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/v10.0/365/dists/unstable/POL/binary-amd64/Packages
[consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/v10.0/365/pool/POL/python3-osm-policy-module_10.1.5%2Bg0da53f1-1_all.deb
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/v10.0/365/changelog/changelog-POL.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/POL-stage_2-merge%20::%20v10.0/365
[Pipeline] sh
[POL-stage_2-merge_v10.0] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 60c7a7f256ece9bb594ce8584839330501f327509e5a3e93163f10e1b01d3f81
$ docker rm -f 60c7a7f256ece9bb594ce8584839330501f327509e5a3e93163f10e1b01d3f81
[Pipeline] // withDockerContainer
[Pipeline] fileExists
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS