SuccessConsole Output

Started by upstream project "POL-stage_1" build number 257
originally caused by:
 Triggered by Gerrit: https://osm.etsi.org/gerrit/10775
 > 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/sol006
Seen branch in repository origin/sol006v331
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 14 remote branches
Obtained Jenkinsfile from 7a174797846b23398a51e4a1568063b2bc83d481
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm2 slave in /opt/jenkins/workspace/POL-stage_2_bug1511
[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 --progress https://osm.etsi.org/gerrit/osm/POL.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 7a174797846b23398a51e4a1568063b2bc83d481 (bug1511)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7a174797846b23398a51e4a1568063b2bc83d481
Commit message: "fix(scaling): min instance count now from right sol006 field and condition fixed. Bug 1388"
 > git rev-list --no-walk 7a174797846b23398a51e4a1568063b2bc83d481 # timeout=10
[Pipeline] dir
Running in /opt/jenkins/workspace/POL-stage_2_bug1511/devops
[Pipeline] {
[Pipeline] git
No credentials specified
Cloning the remote Git repository
Cloning repository https://osm.etsi.org/gerrit/osm/devops
 > git init /opt/jenkins/workspace/POL-stage_2_bug1511/devops # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/devops
 > git --version # timeout=10
 > git fetch --tags --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 --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/bug1511^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/bug1511^{commit} # timeout=10
Checking out Revision aa124bdd235acefd7cc4b6e9efada3efd4cc8f1b (refs/remotes/origin/bug1511)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f aa124bdd235acefd7cc4b6e9efada3efd4cc8f1b
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b bug1511 aa124bdd235acefd7cc4b6e9efada3efd4cc8f1b
Commit message: "Removing openvim"
 > git rev-list --no-walk cd00aada754a0ab3fc0a4839846d7ffaf559bea9 # 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
[POL-stage_2_bug1511] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
MAIL=/var/mail/jenkins
LC_TIME=fr_FR.UTF-8
SSH_CLIENT=195.238.226.13 37846 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2/job/bug1511/4/display/redirect?page=changes
GERRIT_PROJECT=osm/POL
SHLVL=1
NODE_LABELS=docker osm2 osm2 slave pipeline
HUDSON_URL=https://osm.etsi.org/jenkins/
OLDPWD=/home/jenkins
HOME=/home/jenkins
BUILD_URL=https://osm.etsi.org/jenkins/job/POL-stage_2/job/bug1511/4/
HUDSON_COOKIE=a03fc8fe-2852-4f1a-883c-e13ca8858c46
JENKINS_SERVER_COOKIE=durable-40dcb8209bfd27b1fe1bd0e996210df7
LC_MONETARY=fr_FR.UTF-8
GERRIT_PATCHSET_REVISION=ba88f74a253564b30dea9c74c98b922f7e2cc9ca
WORKSPACE=/opt/jenkins/workspace/POL-stage_2_bug1511
LOGNAME=jenkins
NODE_NAME=osm2 slave
GERRIT_BRANCH=bug1511
_=/usr/bin/java
EXECUTOR_NUMBER=5
XDG_SESSION_ID=2662
BUILD_DISPLAY_NAME=#4
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=bug1511
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=4
XDG_RUNTIME_DIR=/run/user/1017
BUILD_TAG=jenkins-POL-stage_2-bug1511-4
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/POL-stage_2/job/bug1511/
BUILD_NUMBER=4
SHELL=/bin/bash
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
LC_NAME=fr_FR.UTF-8
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2/job/bug1511/4/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/75/10775/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
LC_MEASUREMENT=fr_FR.UTF-8
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2/job/bug1511/display/redirect
LC_IDENTIFICATION=fr_FR.UTF-8
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
JOB_NAME=POL-stage_2/bug1511
TEST_INSTALL=true
PWD=/opt/jenkins/workspace/POL-stage_2_bug1511
LC_ALL=en_US.UTF-8
SSH_CONNECTION=195.238.226.13 37846 172.21.1.2 22
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
BRANCH_NAME=bug1511
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ git fetch --tags
From https://osm.etsi.org/gerrit/osm/POL
 * [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-v8.0-start -> release-v8.0-start
 * [new tag]         release-v9.0-start -> release-v9.0-start
 * [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
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ git fetch origin refs/changes/75/10775/1
From https://osm.etsi.org/gerrit/osm/POL
 * branch            refs/changes/75/10775/1 -> FETCH_HEAD
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ git checkout -f ba88f74a253564b30dea9c74c98b922f7e2cc9ca
Previous HEAD position was 7a17479... fix(scaling): min instance count now from right sol006 field and condition fixed. Bug 1388
HEAD is now at ba88f74... Update requirements to branch
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ devops/tools/license_scan.sh
requirements.txt Apache-2.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Docker-Build)
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ id -g
+ echo RUN groupadd -o -g 1015 -r jenkins
+ id -u
+ echo RUN useradd -o -u 1017 --create-home -r -g jenkins jenkins
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ docker build -t osm/pol-bug1511 .
Sending build context to Docker daemon  18.33MB

Step 1/4 : FROM ubuntu:20.04
 ---> 26b77e58432b
Step 2/4 : RUN  apt-get update &&   DEBIAN_FRONTEND=noninteractive apt-get --yes install git tox=3.13.2-2 make=4.2.1-1.2 python-all=2.7.17-2ubuntu4 python3=3.8.2-0ubuntu2 python3-pip=20.0.2-5ubuntu1.1 debhelper wget &&   DEBIAN_FRONTEND=noninteractive apt-get --yes install libmysqlclient-dev=8.0.23-0ubuntu0.20.04.1 libxml2 python3-all=3.8.2-0ubuntu2 dh-python=4.20191017ubuntu7 &&   DEBIAN_FRONTEND=noninteractive pip3 install -U setuptools==53.0.0 setuptools-version-command==2.2 stdeb==0.10.0
 ---> Using cache
 ---> 17b43b925df4
Step 3/4 : RUN groupadd -o -g 1015 -r jenkins
 ---> Using cache
 ---> 60ff9a194b5f
Step 4/4 : RUN useradd -o -u 1017 --create-home -r -g jenkins jenkins
 ---> Using cache
 ---> 4c8df7773827
Successfully built 4c8df7773827
Successfully tagged osm/pol-bug1511:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] withDockerContainer
osm2 slave does not seem to be running inside a container
$ docker run -t -d -u 1017:1015 -w /opt/jenkins/workspace/POL-stage_2_bug1511 -v /opt/jenkins/workspace/POL-stage_2_bug1511:/opt/jenkins/workspace/POL-stage_2_bug1511:rw,z -v /opt/jenkins/workspace/POL-stage_2_bug1511@tmp:/opt/jenkins/workspace/POL-stage_2_bug1511@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 ******** --entrypoint cat osm/pol-bug1511
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ devops-stages/stage-test.sh
cover create: /opt/jenkins/workspace/POL-stage_2_bug1511/.tox/cover
cover installdeps: nose2, -r/opt/jenkins/workspace/POL-stage_2_bug1511/requirements.txt, -r/opt/jenkins/workspace/POL-stage_2_bug1511/test-requirements.txt
cover develop-inst: /opt/jenkins/workspace/POL-stage_2_bug1511
cover installed: aiokafka==0.6.0,appdirs==1.4.3,CacheControl==0.12.6,cached-property==1.5.2,certifi==2019.11.28,chardet==3.0.4,click==7.1.2,colorama==0.4.3,contextlib2==0.6.0,coverage==4.5.3,dataclasses==0.6,distlib==0.3.0,distro==1.4.0,flake8==2.6.2,html5lib==1.0.1,idna==2.8,ipaddr==2.2.0,jsonschema==2.6.0,kafka-python==2.0.2,lockfile==0.12.2,mccabe==0.5.3,mock==4.0.3,msgpack==0.6.2,nose2==0.10.0,osm-common==9.1.1+g277c931,-e git+https://osm.etsi.org/gerrit/osm/POL.git@ba88f74a253564b30dea9c74c98b922f7e2cc9ca#egg=osm_policy_module,packaging==20.3,peewee==3.8.2,peewee-migrate==1.1.6,pep517==0.8.2,progress==1.5,pycodestyle==2.0.0,pycrypto==2.6.1,pyflakes==1.2.3,pymongo==3.11.4,PyMySQL==0.9.3,pyparsing==2.4.6,pytoml==0.1.21,PyYAML==3.13,requests==2.25.1,retrying==1.3.3,six==1.14.0,urllib3==1.25.8,webencodings==0.5.1
cover run-test-pre: PYTHONHASHSEED='2100512824'
cover run-test: commands[0] | coverage erase
cover run-test: commands[1] | nose2 -C --coverage osm_policy_module --plugin nose2.plugins.junitxml
INFO:osm_policy_module.autoscaling.service:Configuring scaling groups for network service with nsr_id: test_nsr_id
Configuring scaling groups for network service with nsr_id: test_nsr_id
Configuring scaling groups for network service with nsr_id: test_nsr_id
.INFO:osm_policy_module.alarming.service:Configuring vnf alarms for network service test_nsr_id
Configuring vnf alarms for network service test_nsr_id
Configuring vnf alarms for network service test_nsr_id
.ERROR:aiokafka:Unable connect to "kafka:9092": [Errno -2] Name or service not known
Unable connect to "kafka:9092": [Errno -2] Name or service not known
Unable connect to "kafka:9092": [Errno -2] Name or service not known
sINFO:osm_policy_module.alarming.service:Executing request to url http://alarm-url/ for vnf alarm test_id with status alarm
Executing request to url http://alarm-url/ for vnf alarm test_id with status alarm
Executing request to url http://alarm-url/ for vnf alarm test_id with status alarm
INFO:osm_policy_module.alarming.service:Executing request to url http://ok-url/ for vnf alarm test_id with status ok
Executing request to url http://ok-url/ for vnf alarm test_id with status ok
Executing request to url http://ok-url/ for vnf alarm test_id with status ok
INFO:osm_policy_module.alarming.service:Executing request to url http://insufficient-data-url/ for vnf alarm test_id with status insufficient-data
Executing request to url http://insufficient-data-url/ for vnf alarm test_id with status insufficient-data
Executing request to url http://insufficient-data-url/ for vnf alarm test_id with status insufficient-data
.ERROR:asyncio:Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f9b4c610730>
Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f9b4c610730>
Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f9b4c610730>
...INFO:osm_policy_module.autoscaling.service:Sending scale_in action message for ns: test_nsr_id
Sending scale_in action message for ns: test_nsr_id
Sending scale_in action message for ns: test_nsr_id
.INFO:osm_policy_module.autoscaling.service:Sending scale_in action message for ns: test_nsr_id
Sending scale_in action message for ns: test_nsr_id
Sending scale_in action message for ns: test_nsr_id
.INFO:osm_policy_module.autoscaling.service:Sending scale_in action message for ns: test_nsr_id
Sending scale_in action message for ns: test_nsr_id
Sending scale_in action message for ns: test_nsr_id
..INFO:osm_policy_module.autoscaling.service:Sending scale_out action message for ns: test_nsr_id
Sending scale_out action message for ns: test_nsr_id
Sending scale_out action message for ns: test_nsr_id
.INFO:osm_policy_module.autoscaling.service:Sending scale_out action message for ns: test_nsr_id
Sending scale_out action message for ns: test_nsr_id
Sending scale_out action message for ns: test_nsr_id
.INFO:osm_policy_module.autoscaling.service:Sending scale_out action message for ns: test_nsr_id
Sending scale_out action message for ns: test_nsr_id
Sending scale_out action message for ns: test_nsr_id
...INFO:osm_policy_module.core.agent:Configuring nsr_id: test_nsr_id
Configuring nsr_id: test_nsr_id
Configuring nsr_id: test_nsr_id
INFO:osm_policy_module.core.agent:Network_service is not in COMPLETED or PARTIALLY_COMPLETED state. Current state is FAILED. Skipping...
Network_service is not in COMPLETED or PARTIALLY_COMPLETED state. Current state is FAILED. Skipping...
Network_service is not in COMPLETED or PARTIALLY_COMPLETED state. Current state is FAILED. Skipping...
......
----------------------------------------------------------------------
Ran 22 tests in 0.585s

OK (skipped=1)
Name                                                                   Stmts   Miss  Cover
------------------------------------------------------------------------------------------
osm_policy_module/__init__.py                                              0      0   100%
osm_policy_module/alarming/__init__.py                                     0      0   100%
osm_policy_module/alarming/service.py                                    118     50    58%
osm_policy_module/autoscaling/__init__.py                                  0      0   100%
osm_policy_module/autoscaling/service.py                                 236     84    64%
osm_policy_module/cmd/__init__.py                                          0      0   100%
osm_policy_module/cmd/policy_module_agent.py                              34     34     0%
osm_policy_module/cmd/policy_module_healthcheck.py                        30     30     0%
osm_policy_module/common/__init__.py                                       0      0   100%
osm_policy_module/common/common_db_client.py                              35     17    51%
osm_policy_module/common/lcm_client.py                                    31     13    58%
osm_policy_module/common/message_bus_client.py                            22      2    91%
osm_policy_module/common/mon_client.py                                    81     63    22%
osm_policy_module/core/__init__.py                                         0      0   100%
osm_policy_module/core/agent.py                                           85     43    49%
osm_policy_module/core/config.py                                          39     11    72%
osm_policy_module/core/database.py                                       137     21    85%
osm_policy_module/core/exceptions.py                                       4      0   100%
osm_policy_module/migrations/001_initial.py                               50     50     0%
osm_policy_module/migrations/002_add_vnf_alarm.py                         25     25     0%
osm_policy_module/migrations/003_add_fields_to_policy.py                   7      7     0%
osm_policy_module/migrations/004_add_fields_to_alarm.py                    7      7     0%
osm_policy_module/migrations/005_change_vnf_index_member_to_str.py        11     11     0%
osm_policy_module/migrations/__init__.py                                   0      0   100%
osm_policy_module/migrations/conf.py                                       2      2     0%
osm_policy_module/tests/__init__.py                                        0      0   100%
osm_policy_module/tests/integration/__init__.py                            0      0   100%
osm_policy_module/tests/integration/test_kafka_messages.py                44     14    68%
osm_policy_module/tests/integration/test_policy_agent.py                 100      2    98%
osm_policy_module/tests/unit/__init__.py                                   0      0   100%
osm_policy_module/tests/unit/alarming/__init__.py                          0      0   100%
osm_policy_module/tests/unit/alarming/test_alarming_service.py            53      0   100%
osm_policy_module/tests/unit/autoscaling/__init__.py                       0      0   100%
osm_policy_module/tests/unit/autoscaling/test_autoscaling_service.py     177      0   100%
osm_policy_module/tests/unit/common/__init__.py                            0      0   100%
osm_policy_module/tests/unit/common/test_message_bus_client.py            41      1    98%
osm_policy_module/tests/unit/core/__init__.py                              0      0   100%
osm_policy_module/tests/unit/core/test_policy_agent.py                    70      2    97%
osm_policy_module/tests/unit/utils/__init__.py                             0      0   100%
osm_policy_module/tests/unit/utils/test_vnfd_utils.py                     19      0   100%
osm_policy_module/utils/__init__.py                                        0      0   100%
osm_policy_module/utils/vnfd.py                                           14      0   100%
------------------------------------------------------------------------------------------
TOTAL                                                                   1472    489    67%

cover run-test: commands[2] | coverage report '--omit=*tests*'
Name                                                                 Stmts   Miss  Cover
----------------------------------------------------------------------------------------
osm_policy_module/__init__.py                                            0      0   100%
osm_policy_module/alarming/__init__.py                                   0      0   100%
osm_policy_module/alarming/service.py                                  118     50    58%
osm_policy_module/autoscaling/__init__.py                                0      0   100%
osm_policy_module/autoscaling/service.py                               236     84    64%
osm_policy_module/cmd/__init__.py                                        0      0   100%
osm_policy_module/cmd/policy_module_agent.py                            34     34     0%
osm_policy_module/cmd/policy_module_healthcheck.py                      30     30     0%
osm_policy_module/common/__init__.py                                     0      0   100%
osm_policy_module/common/common_db_client.py                            35     17    51%
osm_policy_module/common/lcm_client.py                                  31     13    58%
osm_policy_module/common/message_bus_client.py                          22      2    91%
osm_policy_module/common/mon_client.py                                  81     63    22%
osm_policy_module/core/__init__.py                                       0      0   100%
osm_policy_module/core/agent.py                                         85     43    49%
osm_policy_module/core/config.py                                        39     11    72%
osm_policy_module/core/database.py                                     137     21    85%
osm_policy_module/core/exceptions.py                                     4      0   100%
osm_policy_module/migrations/001_initial.py                             50     50     0%
osm_policy_module/migrations/002_add_vnf_alarm.py                       25     25     0%
osm_policy_module/migrations/003_add_fields_to_policy.py                 7      7     0%
osm_policy_module/migrations/004_add_fields_to_alarm.py                  7      7     0%
osm_policy_module/migrations/005_change_vnf_index_member_to_str.py      11     11     0%
osm_policy_module/migrations/__init__.py                                 0      0   100%
osm_policy_module/migrations/conf.py                                     2      2     0%
osm_policy_module/utils/__init__.py                                      0      0   100%
osm_policy_module/utils/vnfd.py                                         14      0   100%
----------------------------------------------------------------------------------------
TOTAL                                                                  968    470    51%
cover run-test: commands[3] | coverage html -d ./cover '--omit=*tests*'
cover run-test: commands[4] | coverage xml -o coverage.xml '--omit=*tests*'
flake8 create: /opt/jenkins/workspace/POL-stage_2_bug1511/.tox/flake8
flake8 installdeps: flake8, -r/opt/jenkins/workspace/POL-stage_2_bug1511/requirements.txt
flake8 develop-inst: /opt/jenkins/workspace/POL-stage_2_bug1511
flake8 installed: aiokafka==0.6.0,appdirs==1.4.3,CacheControl==0.12.6,cached-property==1.5.2,certifi==2019.11.28,chardet==3.0.4,click==7.1.2,colorama==0.4.3,contextlib2==0.6.0,dataclasses==0.6,distlib==0.3.0,distro==1.4.0,flake8==3.9.1,html5lib==1.0.1,idna==2.8,ipaddr==2.2.0,jsonschema==2.6.0,kafka-python==2.0.2,lockfile==0.12.2,mccabe==0.6.1,mock==4.0.3,msgpack==0.6.2,osm-common==9.1.1+g277c931,-e git+https://osm.etsi.org/gerrit/osm/POL.git@ba88f74a253564b30dea9c74c98b922f7e2cc9ca#egg=osm_policy_module,packaging==20.3,peewee==3.8.2,peewee-migrate==1.1.6,pep517==0.8.2,progress==1.5,pycodestyle==2.7.0,pycrypto==2.6.1,pyflakes==2.3.1,pymongo==3.11.4,PyMySQL==0.9.3,pyparsing==2.4.6,pytoml==0.1.21,PyYAML==3.13,requests==2.25.1,retrying==1.3.3,six==1.14.0,urllib3==1.25.8,webencodings==0.5.1
flake8 run-test-pre: PYTHONHASHSEED='2100512824'
flake8 run-test: commands[0] | flake8 osm_policy_module
___________________________________ summary ____________________________________
  cover: commands succeeded
  flake8: commands succeeded
  congratulations :)
[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
[POL-stage_2_bug1511] Running shell script
+ devops-stages/stage-build.sh
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing 'v9.1.1.post1+gba88f74.dirty' to '9.1.1.post1+gba88f74.dirty'
  warnings.warn(tmpl.format(**locals()))
warning: no files found matching '*.xml' under directory 'osm_policy_module'
warning: no files found matching '*.sh' under directory 'osm_policy_module'
 dpkg-source --before-build .
 fakeroot debian/rules clean
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing 'v9.1.1.post1+gba88f74.dirty' to '9.1.1.post1+gba88f74.dirty'
  warnings.warn(tmpl.format(**locals()))
'build/lib' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
 dpkg-source -b .
 dpkg-genbuildinfo --build=source
 dpkg-genchanges -sa --build=source >../osm-policy-module_9.1.1.post1+gba88f74.dirty-1_source.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build .
dpkg-source: warning: extracting unsigned source package (osm-policy-module_9.1.1.post1+gba88f74.dirty-1.dsc)
 dpkg-source --before-build .
 fakeroot debian/rules clean
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing 'v9.1.1.post1+gba88f74.dirty' to '9.1.1.post1+gba88f74.dirty'
  warnings.warn(tmpl.format(**locals()))
'build/lib' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
 dpkg-source -b .
 debian/rules build
dh_auto_configure: warning: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_configure: warning: This feature will be removed in compat 12.
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing 'v9.1.1.post1+gba88f74.dirty' to '9.1.1.post1+gba88f74.dirty'
  warnings.warn(tmpl.format(**locals()))
warning: no files found matching '*.xml' under directory 'osm_policy_module'
warning: no files found matching '*.sh' under directory 'osm_policy_module'
dh_auto_test: warning: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_test: warning: This feature will be removed in compat 12.
 fakeroot debian/rules binary
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing 'v9.1.1.post1+gba88f74.dirty' to '9.1.1.post1+gba88f74.dirty'
  warnings.warn(tmpl.format(**locals()))
warning: no files found matching '*.xml' under directory 'osm_policy_module'
warning: no files found matching '*.sh' under directory 'osm_policy_module'
I: dh_python3 fs:394: renaming osm_policy_module-9.1.1.post1+gba88f74.dirty-py3.8.egg-info to osm_policy_module-9.1.1.post1+gba88f74.dirty.egg-info
I: dh_python3 pydist:224: Cannot find package that provides aiokafka. Please add package that provides it to Build-Depends or add "aiokafka python3-aiokafka" line to debian/py3dist-overrides or add proper dependency to Depends by hand and ignore this info.
I: dh_python3 pydist:224: Cannot find package that provides peewee_migrate. Please add package that provides it to Build-Depends or add "peewee_migrate python3-peewee-migrate" line to debian/py3dist-overrides or add proper dependency to Depends by hand and ignore this info.
I: dh_python3 pydist:224: Cannot find package that provides osm_common. Please add package that provides it to Build-Depends or add "osm_common python3-osm-common" line to debian/py3dist-overrides or add proper dependency to Depends by hand and ignore this info.
 dpkg-genbuildinfo
 dpkg-genchanges  >../osm-policy-module_9.1.1.post1+gba88f74.dirty-1_amd64.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build .
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ mkdir -p changelog
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ devops/tools/generatechangelog-pipeline.sh
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ 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/bug1511-staging/4/dists/unstable/POL/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/bug1511-staging/4/dists/unstable/POL/binary-amd64/Packages
[consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/bug1511-staging/4/pool/POL/python3-osm-policy-module_9.1.1.post1%2Bgba88f74.dirty-1_all.deb
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/bug1511-staging/4/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%20::%20bug1511/4
[Pipeline] sh
[POL-stage_2_bug1511] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 3e3af97085499144c6eb99fb36e8eecf9c9a22f56cb4147c687da80b9a2867c6
$ docker rm -f 3e3af97085499144c6eb99fb36e8eecf9c9a22f56cb4147c687da80b9a2867c6
[Pipeline] // withDockerContainer
[Pipeline] fileExists
[Pipeline] stage
[Pipeline] { (Build System)
[Pipeline] build (Building osm-stage_3 » bug1511)
Scheduling project: osm-stage_3 » bug1511
Starting building: osm-stage_3 » bug1511 #13
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS