SuccessConsole Output

Started by upstream project "buildall-stage_2-merge-v13" build number 298
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/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 e9795318c10224753ef70ac4071ee88283a9dd12
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm worker 2 in /home/jenkins/workspace/POL-stage_2-merge_v13.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 e9795318c10224753ef70ac4071ee88283a9dd12 (v13.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f e9795318c10224753ef70ac4071ee88283a9dd12
Commit message: "Fix black and cover errors"
 > git rev-list --no-walk e9795318c10224753ef70ac4071ee88283a9dd12 # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/POL-stage_2-merge_v13.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/v13.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v13.0^{commit} # timeout=10
Checking out Revision 366ed71248f46f8a3754cb5189e39b9ea53a22b7 (refs/remotes/origin/v13.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 366ed71248f46f8a3754cb5189e39b9ea53a22b7
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D v13.0 # timeout=10
 > git checkout -b v13.0 366ed71248f46f8a3754cb5189e39b9ea53a22b7
Commit message: "Removing charm promotion"
 > git rev-list --no-walk 366ed71248f46f8a3754cb5189e39b9ea53a22b7 # 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_v13.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 46787 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v13.0/311/display/redirect?page=changes
GERRIT_PROJECT=osm/POL
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=docker osm worker 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/v13.0/311/
HUDSON_COOKIE=f3fae0d5-762e-444d-9ad1-d805a38771e6
JENKINS_SERVER_COOKIE=durable-8619f45d15a251941c2af0e55d1719dd
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=e9795318c10224753ef70ac4071ee88283a9dd12
WORKSPACE=/home/jenkins/workspace/POL-stage_2-merge_v13.0
LOGNAME=jenkins
NODE_NAME=osm worker 2
GERRIT_BRANCH=v13.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v13.0/311/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=2
XDG_SESSION_ID=114
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v13.0/311/display/redirect?page=tests
BUILD_DISPLAY_NAME=#311
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v13.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=311
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-POL-stage_2-merge-v13.0-311
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v13.0/
BUILD_NUMBER=311
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v13.0/311/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/11/13111/2
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v13.0/display/redirect
JOB_NAME=POL-stage_2-merge/v13.0
TEST_INSTALL=false
PWD=/home/jenkins/workspace/POL-stage_2-merge_v13.0
SSH_CONNECTION=212.234.161.1 46787 172.21.249.2 22
BRANCH_NAME=v13.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ git fetch --tags
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ git fetch origin refs/changes/11/13111/2
From https://osm.etsi.org/gerrit/osm/POL
 * branch            refs/changes/11/13111/2 -> FETCH_HEAD
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ git checkout -f e9795318c10224753ef70ac4071ee88283a9dd12
HEAD is now at e979531 Fix black and cover errors
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ sudo git clean -dfx
Removing .cache/
Removing .coverage
Removing .local/
Removing build.env
Removing changelog/
Removing cover/
Removing coverage.xml
Removing deb_dist/
Removing dist/
Removing dists/
Removing nosetests.xml
Removing osm_policy_module-13.0.1+ge979531.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_v13.0] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/pol-v13.0 .
Sending build context to Docker daemon  154.1MB

Step 1/6 : FROM ubuntu:20.04
 ---> f78909c2b360
Step 2/6 : ARG APT_PROXY
 ---> Using cache
 ---> ad00a18b3e37
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
 ---> d91336bc2a47
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
 ---> dd6987d41149
Step 5/6 : RUN python3 -m easy_install pip==21.3.1
 ---> Using cache
 ---> ec768ca9ce04
Step 6/6 : RUN pip install tox==3.24.5
 ---> Using cache
 ---> 8e1401880f42
Successfully built 8e1401880f42
Successfully tagged osm/pol-v13.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ id -u
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm worker 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_v13.0 -v /home/jenkins/workspace/POL-stage_2-merge_v13.0:/home/jenkins/workspace/POL-stage_2-merge_v13.0:rw,z -v /home/jenkins/workspace/POL-stage_2-merge_v13.0@tmp:/home/jenkins/workspace/POL-stage_2-merge_v13.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-v13.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/POL-stage_2-merge_v13.0 -r -g jenkins jenkins
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
โœ” OK black in 16.864 seconds
black create: /tmp/.tox/black
black installdeps: black
black installed: black==23.12.1,click==8.1.7,mypy-extensions==1.0.0,packaging==23.2,pathspec==0.12.1,platformdirs==4.1.0,tomli==2.0.1,typing_extensions==4.9.0
black run-test-pre: PYTHONHASHSEED='1229962366'
black run-test: commands[0] | black --check --diff osm_policy_module/
All done! โœจ ๐Ÿฐ โœจ
47 files would be left unchanged.
black run-test: commands[1] | black --check --diff setup.py
All done! โœจ ๐Ÿฐ โœจ
1 file would be left unchanged.

โœ” OK flake8 in 19.592 seconds
flake8 create: /tmp/.tox/flake8
flake8 installdeps: flake8==5.0.4
flake8 develop-inst: /home/jenkins/workspace/POL-stage_2-merge_v13.0
flake8 installed: flake8==5.0.4,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/POL.git@e9795318c10224753ef70ac4071ee88283a9dd12#egg=osm_policy_module,pycodestyle==2.9.1,pyflakes==2.5.0
flake8 run-test-pre: PYTHONHASHSEED='4001311743'
flake8 run-test: commands[0] | flake8 osm_policy_module/ setup.py

โœ” OK safety in 36.099 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/POL-stage_2-merge_v13.0/requirements.txt, safety
safety develop-inst: /home/jenkins/workspace/POL-stage_2-merge_v13.0
safety installed: aiokafka==0.7.2,cached-property==1.5.2,certifi==2022.6.15,charset-normalizer==2.0.12,click==8.1.3,dparse==0.6.3,idna==3.3,jsonschema==2.6.0,kafka-python==2.0.2,mock==4.0.3,-e git+https://osm.etsi.org/gerrit/osm/POL.git@e9795318c10224753ef70ac4071ee88283a9dd12#egg=osm_policy_module,packaging==21.3,peewee==3.8.2,peewee-migrate==1.1.6,PyMySQL==0.9.3,pyparsing==3.1.1,PyYAML==5.4.1,requests==2.28.0,ruamel.yaml==0.18.5,ruamel.yaml.clib==0.2.8,safety==2.3.5,tomli==2.0.1,urllib3==1.26.9
safety run-test-pre: PYTHONHASHSEED='41857978'
safety run-test: commands[0] | - safety check --full-report
+==============================================================================+

                               /$$$$$$            /$$
                              /$$__  $$          | $$
           /$$$$$$$  /$$$$$$ | $$  \__//$$$$$$  /$$$$$$   /$$   /$$
          /$$_____/ |____  $$| $$$$   /$$__  $$|_  $$_/  | $$  | $$
         |  $$$$$$   /$$$$$$$| $$_/  | $$$$$$$$  | $$    | $$  | $$
          \____  $$ /$$__  $$| $$    | $$_____/  | $$ /$$| $$  | $$
          /$$$$$$$/|  $$$$$$$| $$    |  $$$$$$$  |  $$$$/|  $$$$$$$
         |_______/  \_______/|__/     \_______/   \___/   \____  $$
                                                          /$$  | $$
                                                         |  $$$$$$/
  by pyup.io                                              \______/

+==============================================================================+

 REPORT 

  Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. 
  For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io

  Safety v2.3.5 is scanning for Vulnerabilities...
  Scanning dependencies in your environment:

  -> /home/jenkins/workspace/POL-stage_2-merge_v13.0
  -> /tmp/.tox/safety/lib/python3.8/site-packages

  Using non-commercial database
  Found and scanned 26 packages
  Timestamp 2024-01-09 10:44:34
  5 vulnerabilities found
  0 vulnerabilities ignored

+==============================================================================+
 VULNERABILITIES FOUND 
+==============================================================================+

-> Vulnerability found in certifi version 2022.6.15
   Vulnerability ID: 52365
   Affected spec: <2022.12.07
   ADVISORY: Certifi 2022.12.07 includes a fix for CVE-2022-23491:
   Certifi 2022.12.07 removes root certificates from "TrustCor" from the root
   store. These are in the process of being removed from Mozilla's trust store.
   TrustCor's root certificates are being removed pursuant to an investigation
   prompted by media reporting that TrustCor's ownership also operated a
   business that produced spyware. Conclusions of Mozilla's investigation can be
   found in the linked google group
   discussion.https://github.com/certifi/python-
   certifi/security/advisories/GHSA-43fp-
   rhv2-5gv8https://groups.google.com/a/mozilla.org/g/dev-security-
   policy/c/oxX69KFvsm4/m/yLohoVqtCgAJ
   CVE-2022-23491
   For more information, please visit
   https://data.safetycli.com/v/52365/f17


-> Vulnerability found in certifi version 2022.6.15
   Vulnerability ID: 59956
   Affected spec: >=2015.04.28,<2023.07.22
   ADVISORY: Certifi 2023.07.22 includes a fix for CVE-2023-37920:
   Certifi prior to version 2023.07.22 recognizes "e-Tugra" root certificates.
   e-Tugra's root certificates were subject to an investigation prompted by
   reporting of security issues in their systems. Certifi 2023.07.22 removes
   root certificates from "e-Tugra" from the root
   store.https://github.com/certifi/python-certifi/security/advisories/GHSA-
   xqr8-7jwr-rhp7
   CVE-2023-37920
   For more information, please visit
   https://data.safetycli.com/v/59956/f17


-> Vulnerability found in requests version 2.28.0
   Vulnerability ID: 58755
   Affected spec: >=2.3.0,<2.31.0
   ADVISORY: Requests 2.31.0 includes a fix for CVE-2023-32681: Since
   Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to
   destination servers when redirected to an HTTPS endpoint. This is a product
   of how we use 'rebuild_proxies' to reattach the 'Proxy-Authorization' header
   to requests. For HTTP connections sent through the tunnel, the proxy will
   identify the header in the request itself and remove it prior to forwarding
   to the destination server. However when sent over HTTPS, the 'Proxy-
   Authorization' header must be sent in the CONNECT request as the proxy has no
   visibility into the tunneled request. This results in Requests forwarding
   proxy credentials to the destination server unintentionally, allowing a
   malicious actor to potentially exfiltrate sensitive information.
   CVE-2023-32681
   For more information, please visit
   https://data.safetycli.com/v/58755/f17


-> Vulnerability found in urllib3 version 1.26.9
   Vulnerability ID: 61601
   Affected spec: <1.26.17
   ADVISORY: Urllib3 1.26.17 and 2.0.5 include a fix for CVE-2023-43804:
   Urllib3 doesn't treat the 'Cookie' HTTP header special or provide any helpers
   for managing cookies over HTTP, that is the responsibility of the user.
   However, it is possible for a user to specify a 'Cookie' header and
   unknowingly leak information via HTTP redirects to a different origin if that
   user doesn't disable redirects explicitly.https://github.com/urllib3/urllib3/
   security/advisories/GHSA-v845-jxx5-vc9f
   CVE-2023-43804
   For more information, please visit
   https://data.safetycli.com/v/61601/f17


-> Vulnerability found in urllib3 version 1.26.9
   Vulnerability ID: 61893
   Affected spec: <1.26.18
   ADVISORY: Urllib3 1.26.18 and 2.0.7 include a fix for CVE-2023-45803:
   Request body not stripped after redirect from 303 status changes request
   method to GET.https://github.com/urllib3/urllib3/security/advisories/GHSA-g4m
   x-q9vg-27p4
   CVE-2023-45803
   For more information, please visit
   https://data.safetycli.com/v/61893/f17

 Scan was completed. 5 vulnerabilities were found. 

+==============================================================================+
   REMEDIATIONS

  5 vulnerabilities were found in 3 packages. For detailed remediation & fix 
  recommendations, upgrade to a commercial license. 

+==============================================================================+

  Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. 
  For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io

+==============================================================================+

โœ” OK cover in 58.916 seconds
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/POL-stage_2-merge_v13.0/requirements.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v13.0/requirements-dev.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v13.0/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/POL-stage_2-merge_v13.0
cover installed: aiokafka==0.7.2,cached-property==1.5.2,certifi==2022.6.15,charset-normalizer==2.0.12,click==8.1.3,coverage==6.4.1,dataclasses==0.6,idna==3.3,jsonschema==2.6.0,kafka-python==2.0.2,mock==4.0.3,nose2==0.11.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@303ffe4f33c7a0fcc6b5c267d402c0e7d44e5a57,-e git+https://osm.etsi.org/gerrit/osm/POL.git@e9795318c10224753ef70ac4071ee88283a9dd12#egg=osm_policy_module,peewee==3.8.2,peewee-migrate==1.1.6,pycrypto==2.6.1,pymongo==3.12.3,PyMySQL==0.9.3,PyYAML==5.4.1,requests==2.28.0,six==1.16.0,urllib3==1.26.9
cover run-test-pre: PYTHONHASHSEED='4212790713'
cover run-test: commands[0] | sh -c 'rm -f nosetests.xml'
cover run-test: commands[1] | coverage erase
cover run-test: commands[2] | nose2 -C --coverage osm_policy_module
INFO: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:Response <MagicMock name='post()' id='140248241461328'>
Response <MagicMock name='post()' id='140248241461328'>
Response <MagicMock name='post()' id='140248241461328'>
..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
INFO:osm_policy_module.alarming.service:Response <MagicMock name='post()' id='140248241210272'>
Response <MagicMock name='post()' id='140248241210272'>
Response <MagicMock name='post()' id='140248241210272'>
.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:Response <MagicMock name='post()' id='140248241741344'>
Response <MagicMock name='post()' id='140248241741344'>
Response <MagicMock name='post()' id='140248241741344'>
...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.healing.service:HealingService Initialized
HealingService Initialized
HealingService Initialized
INFO:osm_policy_module.healing.service:Constructor created for HealingService
Constructor created for HealingService
Constructor created for HealingService
.INFO:osm_policy_module.healing.service:HealingService Initialized
HealingService Initialized
HealingService Initialized
INFO:osm_policy_module.healing.service:Constructor created for HealingService
Constructor created for HealingService
Constructor created for HealingService
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...
.INFO:osm_policy_module.healing.service:HealingService Initialized
HealingService Initialized
HealingService Initialized
INFO:osm_policy_module.healing.service:Constructor created for HealingService
Constructor created for HealingService
Constructor created for HealingService
INFO:osm_policy_module.core.agent:_handle_policy_update: {'nsr_id': 'test_nsr_id', 'vnf_member_index': '1', 'operationState': 'COMPLETED'}
_handle_policy_update: {'nsr_id': 'test_nsr_id', 'vnf_member_index': '1', 'operationState': 'COMPLETED'}
_handle_policy_update: {'nsr_id': 'test_nsr_id', 'vnf_member_index': '1', 'operationState': 'COMPLETED'}
INFO:osm_policy_module.core.agent:Updating policies of VNF with nsr_id: test_nsr_id and vnf-member-index: 1
Updating policies of VNF with nsr_id: test_nsr_id and vnf-member-index: 1
Updating policies of VNF with nsr_id: test_nsr_id and vnf-member-index: 1
INFO:osm_policy_module.core.agent:_handle_policy_update: {'nsr_id': 'test_nsr_id', 'vnf_member_index': '1', 'operationState': 'FAILED'}
_handle_policy_update: {'nsr_id': 'test_nsr_id', 'vnf_member_index': '1', 'operationState': 'FAILED'}
_handle_policy_update: {'nsr_id': 'test_nsr_id', 'vnf_member_index': '1', 'operationState': 'FAILED'}
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...
.INFO:osm_policy_module.healing.service:HealingService Initialized
HealingService Initialized
HealingService Initialized
INFO:osm_policy_module.healing.service:Constructor created for HealingService
Constructor created for HealingService
Constructor created for HealingService
INFO:osm_policy_module.core.agent:Deleting policies of VNF with nsr_id: test_nsr_id and vnf-member-index: 1
Deleting policies of VNF with nsr_id: test_nsr_id and vnf-member-index: 1
Deleting policies of VNF with nsr_id: test_nsr_id and vnf-member-index: 1
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...
...INFO:osm_policy_module.healing.service:HealingService Initialized
HealingService Initialized
HealingService Initialized
INFO:osm_policy_module.healing.service:Constructor created for HealingService
Constructor created for HealingService
Constructor created for HealingService
INFO:osm_policy_module.healing.service:Configuring Healing alarm for NS test_nsr_id
Configuring Healing alarm for NS test_nsr_id
Configuring Healing alarm for NS test_nsr_id
.INFO:osm_policy_module.healing.service:HealingService Initialized
HealingService Initialized
HealingService Initialized
INFO:osm_policy_module.healing.service:Constructor created for HealingService
Constructor created for HealingService
Constructor created for HealingService
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.healing.service:HealingService Initialized
HealingService Initialized
HealingService Initialized
INFO:osm_policy_module.healing.service:Constructor created for HealingService
Constructor created for HealingService
Constructor created for HealingService
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
s
ERROR:asyncio:Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f8e16890ee0>
Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f8e16890ee0>
Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f8e16890ee0>
----------------------------------------------------------------------
Ran 27 tests in 2.400s

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                                    173     80    54%
osm_policy_module/autoscaling/__init__.py                                  0      0   100%
osm_policy_module/autoscaling/service.py                                 246     91    63%
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                                    45     25    44%
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                                          115     50    57%
osm_policy_module/core/config.py                                          39     11    72%
osm_policy_module/core/database.py                                       166     23    86%
osm_policy_module/core/exceptions.py                                       4      0   100%
osm_policy_module/healing/__init__.py                                      0      0   100%
osm_policy_module/healing/service.py                                     137     86    37%
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/006_add_heal_alarm.py                        24     24     0%
osm_policy_module/migrations/007_add_vnf_alarm_fields.py                   7      7     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                 124      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            83      6    93%
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                   148      2    99%
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                                                                   1910    670    65%

cover run-test: commands[3] | 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                                  173     80    54%
osm_policy_module/autoscaling/__init__.py                                0      0   100%
osm_policy_module/autoscaling/service.py                               246     91    63%
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                                  45     25    44%
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                                        115     50    57%
osm_policy_module/core/config.py                                        39     11    72%
osm_policy_module/core/database.py                                     166     23    86%
osm_policy_module/core/exceptions.py                                     4      0   100%
osm_policy_module/healing/__init__.py                                    0      0   100%
osm_policy_module/healing/service.py                                   137     86    37%
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/006_add_heal_alarm.py                      24     24     0%
osm_policy_module/migrations/007_add_vnf_alarm_fields.py                 7      7     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                                                                 1274    645    49%
cover run-test: commands[4] | coverage html -d ./cover '--omit=*tests*'
Wrote HTML report to ./cover/index.html
cover run-test: commands[5] | coverage xml -o coverage.xml '--omit=*tests*'
Wrote XML report to coverage.xml

โœ” OK pylint in 1 minute, 8.878 seconds
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/POL-stage_2-merge_v13.0/requirements.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v13.0/requirements-dev.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v13.0/requirements-test.txt, pylint
pylint develop-inst: /home/jenkins/workspace/POL-stage_2-merge_v13.0
pylint installed: aiokafka==0.7.2,astroid==3.0.2,cached-property==1.5.2,certifi==2022.6.15,charset-normalizer==2.0.12,click==8.1.3,coverage==6.4.1,dataclasses==0.6,dill==0.3.7,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.11.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@303ffe4f33c7a0fcc6b5c267d402c0e7d44e5a57,-e git+https://osm.etsi.org/gerrit/osm/POL.git@e9795318c10224753ef70ac4071ee88283a9dd12#egg=osm_policy_module,peewee==3.8.2,peewee-migrate==1.1.6,platformdirs==4.1.0,pycrypto==2.6.1,pylint==3.0.3,pymongo==3.12.3,PyMySQL==0.9.3,PyYAML==5.4.1,requests==2.28.0,six==1.16.0,tomli==2.0.1,tomlkit==0.12.3,typing_extensions==4.9.0,urllib3==1.26.9
pylint run-test-pre: PYTHONHASHSEED='2844330101'
pylint run-test: commands[0] | - pylint -E osm_policy_module

___________________________________ summary ____________________________________
  black: commands succeeded
  cover: commands succeeded
  flake8: commands succeeded
  pylint: commands succeeded
  safety: 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-merge_v13.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_v13.0] Running shell script
+ runuser jenkins -c mkdir -p changelog
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ runuser jenkins -c devops/tools/generatechangelog-pipeline.sh > changelog/changelog-POL.html
[Pipeline] sh
[POL-stage_2-merge_v13.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/v13.0/311/dists/unstable/POL/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/v13.0/311/dists/unstable/POL/binary-amd64/Packages
[consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/v13.0/311/pool/POL/python3-osm-policy-module_13.0.1%2Bge979531-1_all.deb
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-POL/v13.0/311/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::%20v13.0/311
[Pipeline] sh
[POL-stage_2-merge_v13.0] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 7b5cdf17e7e7ac255a7f1126b33b9422edf35705314c22dce4a05373df6b32ed
$ docker rm -f 7b5cdf17e7e7ac255a7f1126b33b9422edf35705314c22dce4a05373df6b32ed
[Pipeline] // withDockerContainer
[Pipeline] stage
[Pipeline] { (Snap build)
[Pipeline] fileExists
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS