FailedConsole Output

Started by upstream project "buildall-stage_2-merge-v12" build number 402
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 90c437db951c5d9cebac47c65f7aefd2cf6e7577
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm-cicd-3 in /home/jenkins/workspace/POL-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/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 90c437db951c5d9cebac47c65f7aefd2cf6e7577 (v12.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 90c437db951c5d9cebac47c65f7aefd2cf6e7577
Commit message: "Bug 2113 fix: POL upgrade from v10.1.1 to v12.0.0 fails due to changes in databases"
 > git rev-list --no-walk 90c437db951c5d9cebac47c65f7aefd2cf6e7577 # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/POL-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
[POL-stage_2-merge_v12.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 32791 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v12.0/422/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/v12.0/422/
HUDSON_COOKIE=008f0ec2-4d8f-416b-af69-94962dfb7d1a
JENKINS_SERVER_COOKIE=durable-d08bfa8bfb9210d9bb0bd6a995c5dc2f
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=90c437db951c5d9cebac47c65f7aefd2cf6e7577
WORKSPACE=/home/jenkins/workspace/POL-stage_2-merge_v12.0
LOGNAME=jenkins
NODE_NAME=osm-cicd-3
GERRIT_BRANCH=v12.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v12.0/422/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=3
XDG_SESSION_ID=2057
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v12.0/422/display/redirect?page=tests
BUILD_DISPLAY_NAME=#422
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=422
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-POL-stage_2-merge-v12.0-422
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v12.0/
BUILD_NUMBER=422
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v12.0/422/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/52/12352/3
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/v12.0/display/redirect
JOB_NAME=POL-stage_2-merge/v12.0
TEST_INSTALL=false
PWD=/home/jenkins/workspace/POL-stage_2-merge_v12.0
SSH_CONNECTION=212.234.161.1 32791 172.21.249.3 22
BRANCH_NAME=v12.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ git fetch --tags
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ git fetch origin refs/changes/52/12352/3
From https://osm.etsi.org/gerrit/osm/POL
 * branch            refs/changes/52/12352/3 -> FETCH_HEAD
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ git checkout -f 90c437db951c5d9cebac47c65f7aefd2cf6e7577
HEAD is now at 90c437d Bug 2113 fix: POL upgrade from v10.1.1 to v12.0.0 fails due to changes in databases
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ sudo git clean -dfx
[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_v12.0] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/pol-v12.0 .
Sending build context to Docker daemon  53.43MB

Step 1/6 : FROM ubuntu:20.04
 ---> 33985b2ba010
Step 2/6 : ARG APT_PROXY
 ---> Using cache
 ---> 372ac0b66c5e
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
 ---> 69e5ff866c0a
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
 ---> ffcf621a7c1e
Step 5/6 : RUN python3 -m easy_install pip==21.3.1
 ---> Using cache
 ---> d4a058d96aed
Step 6/6 : RUN pip install tox==3.24.5
 ---> Using cache
 ---> 0960b7a4f9c0
Successfully built 0960b7a4f9c0
Successfully tagged osm/pol-v12.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ id -u
[Pipeline] sh
[POL-stage_2-merge_v12.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_v12.0 -v /home/jenkins/workspace/POL-stage_2-merge_v12.0:/home/jenkins/workspace/POL-stage_2-merge_v12.0:rw,z -v /home/jenkins/workspace/POL-stage_2-merge_v12.0@tmp:/home/jenkins/workspace/POL-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/pol-v12.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/POL-stage_2-merge_v12.0 -r -g jenkins jenkins
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[POL-stage_2-merge_v12.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
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_v12.0
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-3.log
================================== log start ===================================
Obtaining file:///home/jenkins/workspace/POL-stage_2-merge_v12.0
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [72 lines of output]
      /tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.
      
              By 2024-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      /tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'home-page' will not be supported in future
              versions. Please use the underscore name 'home_page' instead.
      
              By 2024-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      /tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/jenkins/workspace/POL-stage_2-merge_v12.0/setup.py", line 36, in <module>
          setup(
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
          _install_setup_requires(attrs)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/__init__.py", line 76, in _install_setup_requires
          _fetch_build_eggs(dist)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/__init__.py", line 81, in _fetch_build_eggs
          dist.fetch_build_eggs(dist.setup_requires)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py", line 640, in fetch_build_eggs
          return _fetch_build_eggs(self, requires)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 798, in resolve
          dist = self._resolve_dist(
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 834, in _resolve_dist
          dist = best[req.key] = env.best_match(
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1104, in best_match
          return self.obtain(req, installer)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1115, in obtain
          return installer(requirement) if installer else None
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py", line 106, in _fetch_build_egg_no_warn
          wheel.install_as_egg(dist_location)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/wheel.py", line 120, in install_as_egg
          self._install_as_egg(destination_eggdir, zf)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/wheel.py", line 128, in _install_as_egg
          self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
        File "/tmp/.tox/flake8/lib/python3.8/site-packages/setuptools/wheel.py", line 173, in _convert_metadata
          os.rename(dist_info, egg_info)
      OSError: [Errno 39] Directory not empty: '/home/jenkins/workspace/POL-stage_2-merge_v12.0/.eggs/setuptools_version_command-99.9-py3.8.egg/setuptools_version_command-99.9.dist-info' -> '/home/jenkins/workspace/POL-stage_2-merge_v12.0/.eggs/setuptools_version_command-99.9-py3.8.egg/EGG-INFO'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

=================================== log end ====================================

=================================== log end ====================================
✖ FAIL flake8 in 22.812 seconds
✔ OK black in 28.256 seconds
black create: /tmp/.tox/black
black installdeps: black
black installed: black==24.4.0,click==8.1.7,mypy-extensions==1.0.0,packaging==24.0,pathspec==0.12.1,platformdirs==4.2.1,tomli==2.0.1,typing_extensions==4.11.0
black run-test-pre: PYTHONHASHSEED='2676949251'
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.

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_v12.0/requirements.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-test.txt, pylint
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/pylint/log/pylint-2.log
================================== log start ===================================
Collecting osm-common@ git+https://osm.etsi.org/gerrit/osm/common.git@v12.0 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt (line 25))
  Cloning https://osm.etsi.org/gerrit/osm/common.git (to revision v12.0) to /tmp/pip-install-kuxmhubk/osm-common_825207a86ffc437c94ba6c8c98a76e74
  Running command git clone --filter=blob:none --quiet https://osm.etsi.org/gerrit/osm/common.git /tmp/pip-install-kuxmhubk/osm-common_825207a86ffc437c94ba6c8c98a76e74
  warning: filtering not recognized by server, ignoring
  Running command git checkout -b v12.0 --track origin/v12.0
  Switched to a new branch 'v12.0'
  Branch 'v12.0' set up to track remote branch 'v12.0' from 'origin'.
  Resolved https://osm.etsi.org/gerrit/osm/common.git to commit 6aaeaa389273ec46b469f79f3c9b47cf3249bd74
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting pylint
  Downloading pylint-3.1.0-py3-none-any.whl.metadata (12 kB)
Collecting aiokafka==0.7.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 17))
  Using cached aiokafka-0.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (17 kB)
Collecting cached-property==1.5.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 19))
  Using cached cached_property-1.5.2-py2.py3-none-any.whl.metadata (11 kB)
Collecting certifi==2022.6.15 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 21))
  Using cached certifi-2022.6.15-py3-none-any.whl.metadata (2.8 kB)
Collecting charset-normalizer==2.0.12 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 23))
  Using cached charset_normalizer-2.0.12-py3-none-any.whl.metadata (11 kB)
Collecting click==8.1.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 25))
  Using cached click-8.1.3-py3-none-any.whl.metadata (3.2 kB)
Collecting idna==3.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 27))
  Using cached idna-3.3-py3-none-any.whl.metadata (9.8 kB)
Collecting jsonschema==2.6.0 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 29))
  Using cached jsonschema-2.6.0-py2.py3-none-any.whl.metadata (4.6 kB)
Collecting kafka-python==2.0.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 31))
  Using cached kafka_python-2.0.2-py2.py3-none-any.whl.metadata (7.8 kB)
Collecting mock==4.0.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 33))
  Using cached mock-4.0.3-py3-none-any.whl.metadata (2.8 kB)
Collecting peewee==3.8.2 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 35))
  Using cached peewee-3.8.2.tar.gz (816 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting peewee-migrate==1.1.6 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 39))
  Downloading peewee_migrate-1.1.6-py2.py3-none-any.whl.metadata (6.1 kB)
Collecting pymysql==0.9.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 41))
  Downloading PyMySQL-0.9.3-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting pyyaml==5.4.1 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 43))
  Using cached PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl.metadata (2.1 kB)
Collecting requests==2.28.0 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 45))
  Using cached requests-2.28.0-py3-none-any.whl.metadata (4.6 kB)
Collecting urllib3==1.26.9 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt (line 47))
  Using cached urllib3-1.26.9-py2.py3-none-any.whl.metadata (46 kB)
Collecting dataclasses==0.6 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt (line 19))
  Using cached dataclasses-0.6-py3-none-any.whl.metadata (3.0 kB)
Collecting pycrypto==2.6.1 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt (line 27))
  Downloading pycrypto-2.6.1.tar.gz (446 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.2/446.2 kB 3.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting pymongo==3.12.3 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt (line 29))
  Using cached pymongo-3.12.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.8 kB)
Collecting coverage==6.4.1 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-test.txt (line 17))
  Downloading coverage-6.4.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.1 kB)
Collecting nose2==0.11.0 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-test.txt (line 23))
  Downloading nose2-0.11.0-py2.py3-none-any.whl.metadata (6.8 kB)
Collecting six==1.16.0 (from -r /home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-test.txt (line 25))
  Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting platformdirs>=2.2.0 (from pylint)
  Using cached platformdirs-4.2.1-py3-none-any.whl.metadata (11 kB)
Collecting astroid<=3.2.0-dev0,>=3.1.0 (from pylint)
  Downloading astroid-3.1.0-py3-none-any.whl.metadata (4.5 kB)
Collecting isort!=5.13.0,<6,>=4.2.5 (from pylint)
  Using cached isort-5.13.2-py3-none-any.whl.metadata (12 kB)
Collecting mccabe<0.8,>=0.6 (from pylint)
  Using cached mccabe-0.7.0-py2.py3-none-any.whl.metadata (5.0 kB)
Collecting tomlkit>=0.10.1 (from pylint)
  Using cached tomlkit-0.12.4-py3-none-any.whl.metadata (2.7 kB)
Collecting typing-extensions>=3.10.0 (from pylint)
  Using cached typing_extensions-4.11.0-py3-none-any.whl.metadata (3.0 kB)
Collecting dill>=0.2 (from pylint)
  Downloading dill-0.3.8-py3-none-any.whl.metadata (10 kB)
Collecting tomli>=1.1.0 (from pylint)
  Using cached tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
Using cached aiokafka-0.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.2 MB)
Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Using cached certifi-2022.6.15-py3-none-any.whl (160 kB)
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Using cached idna-3.3-py3-none-any.whl (61 kB)
Using cached jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)
Using cached kafka_python-2.0.2-py2.py3-none-any.whl (246 kB)
Using cached mock-4.0.3-py3-none-any.whl (28 kB)
Using cached peewee_migrate-1.1.6-py2.py3-none-any.whl (16 kB)
Using cached PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB)
Using cached PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
Using cached requests-2.28.0-py3-none-any.whl (62 kB)
Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Using cached dataclasses-0.6-py3-none-any.whl (14 kB)
Using cached pymongo-3.12.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (527 kB)
Using cached coverage-6.4.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213 kB)
Downloading nose2-0.11.0-py2.py3-none-any.whl (144 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 144.1/144.1 kB 706.6 kB/s eta 0:00:00
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading pylint-3.1.0-py3-none-any.whl (515 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 515.6/515.6 kB 12.1 MB/s eta 0:00:00
Downloading astroid-3.1.0-py3-none-any.whl (275 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 275.6/275.6 kB 3.3 MB/s eta 0:00:00
Downloading dill-0.3.8-py3-none-any.whl (116 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 116.3/116.3 kB 2.3 MB/s eta 0:00:00
Using cached isort-5.13.2-py3-none-any.whl (92 kB)
Using cached mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB)
Using cached platformdirs-4.2.1-py3-none-any.whl (17 kB)
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Downloading tomlkit-0.12.4-py3-none-any.whl (37 kB)
Using cached typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Building wheels for collected packages: peewee, pycrypto, osm-common
  Building wheel for peewee (setup.py): started
  Building wheel for peewee (setup.py): finished with status 'done'
  Created wheel for peewee: filename=peewee-3.8.2-cp38-cp38-linux_x86_64.whl size=156197 sha256=d7ecf6b7c4afeb89b5dd904d9f0d7b583d39a9ec5228d59b871634419c82efbc
  Stored in directory: /home/jenkins/workspace/POL-stage_2-merge_v12.0/.cache/pip/wheels/f0/11/74/d5c4df68a1514aeeae7914a7c2aecba0d3fe36df8c1d272bc5
  WARNING: Built wheel for peewee is invalid: peewee has an invalid wheel, could not read 'peewee-3.8.2.dist-info/LICENSE' file: BadZipFile('Truncated file header')
  Building wheel for pycrypto (setup.py): started
  Building wheel for pycrypto (setup.py): finished with status 'done'
  Created wheel for pycrypto: filename=pycrypto-2.6.1-cp38-cp38-linux_x86_64.whl size=498613 sha256=024a7b8474f24b0fc71254359606473f4ccf396b7a3e3771864e1f8a9a53e0f3
  Stored in directory: /home/jenkins/workspace/POL-stage_2-merge_v12.0/.cache/pip/wheels/d0/99/d0/0298ea019d63f1d63a0965b9944b719e875f9bd6ffc6dcf293
  Building wheel for osm-common (setup.py): started
  Building wheel for osm-common (setup.py): finished with status 'done'
  Created wheel for osm-common: filename=osm_common-12.0.8+g6aaeaa3-py3-none-any.whl size=73030 sha256=bbd3d93f059f591644cb338bd3f59b244560d32a532f76cdc4fd1d08ede3c136
  Stored in directory: /tmp/pip-ephem-wheel-cache-lyodxqep/wheels/21/c0/04/31277ab8354ab39031b0a896c4c483554d59ffcf55c5bc8e22
Successfully built pycrypto osm-common
Failed to build peewee
ERROR: Could not build wheels for peewee, which is required to install pyproject.toml-based projects

=================================== log end ====================================
ERROR: could not install deps [-r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-test.txt, pylint]; v = InvocationError('/tmp/.tox/pylint/bin/python -m pip install -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-test.txt pylint', 1)

=================================== log end ====================================
✖ FAIL pylint in 1 minute, 2.399 seconds
✔ OK safety in 1 minute, 10.28 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt, safety
safety develop-inst: /home/jenkins/workspace/POL-stage_2-merge_v12.0
safety installed: aiokafka==0.7.2,annotated-types==0.6.0,Authlib==1.3.0,cached-property==1.5.2,certifi==2022.6.15,cffi==1.16.0,charset-normalizer==2.0.12,click==8.1.3,cryptography==42.0.5,dparse==0.6.4b0,idna==3.3,Jinja2==3.1.3,jsonschema==2.6.0,kafka-python==2.0.2,markdown-it-py==3.0.0,MarkupSafe==2.1.5,marshmallow==3.21.1,mdurl==0.1.2,mock==4.0.3,-e git+https://osm.etsi.org/gerrit/osm/POL.git@90c437db951c5d9cebac47c65f7aefd2cf6e7577#egg=osm_policy_module,packaging==24.0,peewee==3.8.2,peewee-migrate==1.1.6,pycparser==2.22,pydantic==2.7.1,pydantic_core==2.18.2,Pygments==2.17.2,PyMySQL==0.9.3,PyYAML==5.4.1,requests==2.28.0,rich==13.7.1,ruamel.yaml==0.18.6,ruamel.yaml.clib==0.2.8,safety==3.1.0,safety-schemas==0.0.2,shellingham==1.5.4,tomli==2.0.1,typer==0.12.3,typing_extensions==4.11.0,urllib3==1.26.9
safety run-test-pre: PYTHONHASHSEED='1047671673'
safety run-test: commands[0] | - safety check --full-report
+==============================================================================+

                               /$$$$$$            /$$
                              /$$__  $$          | $$
           /$$$$$$$  /$$$$$$ | $$  \__//$$$$$$  /$$$$$$   /$$   /$$
          /$$_____/ |____  $$| $$$$   /$$__  $$|_  $$_/  | $$  | $$
         |  $$$$$$   /$$$$$$$| $$_/  | $$$$$$$$  | $$    | $$  | $$
          \____  $$ /$$__  $$| $$    | $$_____/  | $$ /$$| $$  | $$
          /$$$$$$$/|  $$$$$$$| $$    |  $$$$$$$  |  $$$$/|  $$$$$$$
         |_______/  \_______/|__/     \_______/   \___/   \____  $$
                                                          /$$  | $$
                                                         |  $$$$$$/
  by safetycli.com                                        \______/

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

 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 v3.1.0 is scanning for Vulnerabilities...
  Scanning dependencies in your environment:

  -> /usr/lib/python3.8
  -> /tmp/.tox/safety/lib/python3.8/site-packages
  -> /home/jenkins/workspace/POL-stage_2-merge_v12.0
  -> /usr/lib/python3.8/lib-dynload
  -> /usr/lib/python38.zip
  -> /tmp/.tox/safety/bin

  Using open-source vulnerability database
  Found and scanned 43 packages
  Timestamp 2024-04-24 08:28:11
  6 vulnerabilities reported
  0 vulnerabilities ignored

+==============================================================================+
 VULNERABILITIES REPORTED 
+==============================================================================+

-> 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 about this vulnerability, visit
   https://data.safetycli.com/v/61601/97c
   To ignore this vulnerability, use PyUp vulnerability id 61601 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> 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-g4mx-q9vg-27p4
   CVE-2023-45803
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/61893/97c
   To ignore this vulnerability, use PyUp vulnerability id 61893 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> 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 about this vulnerability, visit
   https://data.safetycli.com/v/58755/97c
   To ignore this vulnerability, use PyUp vulnerability id 58755 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> Vulnerability found in peewee version 3.8.2
   Vulnerability ID: 64952
   Affected spec: <3.17.1
   ADVISORY: Peewee 3.17.1 introduces enhancements to address a race
   condition issue by implementing stricter locking mechanisms around pool
   connection management.https://github.com/coleifer/peewee/commit/ea3fb11a9c
   2a4b0cd958a453dd287e408477eda5
   PVE-2024-64952
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/64952/97c
   To ignore this vulnerability, use PyUp vulnerability id 64952 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> 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 about this vulnerability, visit
   https://data.safetycli.com/v/52365/97c
   To ignore this vulnerability, use PyUp vulnerability id 52365 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> 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 about this vulnerability, visit
   https://data.safetycli.com/v/59956/97c
   To ignore this vulnerability, use PyUp vulnerability id 59956 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


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

  6 vulnerabilities were reported in 4 packages. For detailed remediation & 
  fix recommendations, upgrade to a commercial license. 

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

 Scan was completed. 6 vulnerabilities were reported. 

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

  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

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

ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/cover/log/cover-0.log
================================== log start ===================================
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-dev.txt, -r/home/jenkins/workspace/POL-stage_2-merge_v12.0/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/POL-stage_2-merge_v12.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@6aaeaa389273ec46b469f79f3c9b47cf3249bd74,-e git+https://osm.etsi.org/gerrit/osm/POL.git@90c437db951c5d9cebac47c65f7aefd2cf6e7577#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='441360160'
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='140513598355440'>
Response <MagicMock name='post()' id='140513598355440'>
Response <MagicMock name='post()' id='140513598355440'>
..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='140513597550064'>
Response <MagicMock name='post()' id='140513597550064'>
Response <MagicMock name='post()' id='140513597550064'>
.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='140513597546704'>
Response <MagicMock name='post()' id='140513597546704'>
Response <MagicMock name='post()' id='140513597546704'>
...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
FINFO: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
======================================================================
FAIL: test_configure_scaling_groups (osm_policy_module.tests.integration.test_policy_agent.PolicyModuleAgentTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/mock.py", line 1325, in patched
    return func(*newargs, **newkeywargs)
  File "/home/jenkins/workspace/POL-stage_2-merge_v12.0/osm_policy_module/tests/integration/test_policy_agent.py", line 520, in test_configure_scaling_groups
    create_alarm.assert_any_call(
  File "/usr/lib/python3.8/unittest/mock.py", line 984, in assert_any_call
    raise AssertionError(
AssertionError: create_alarm(metric_name='average_memory_utilization', ns_id='test_nsr_id', operation='GT', threshold=80, vdu_name='cirros_ns-1-cirros_vnfd-VM-1', vnf_member_index='1', action='scale_out') call not found

ERROR:asyncio:Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7fcbde589fa0>
Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7fcbde589fa0>
Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7fcbde589fa0>
----------------------------------------------------------------------
Ran 27 tests in 3.775s

FAILED (failures=1, 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    119    52%
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     27    84%
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     13    90%
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    713    63%

ERROR: InvocationError for command /tmp/.tox/cover/bin/nose2 -C --coverage osm_policy_module (exited with code 1)

=================================== log end ====================================
✖ FAIL cover in 1 minute, 22.568 seconds
___________________________________ summary ____________________________________
  black: commands succeeded
ERROR:   cover: parallel child exit code 1
ERROR:   flake8: parallel child exit code 1
ERROR:   pylint: parallel child exit code 1
  safety: commands succeeded
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 a64ddbd0f3dc405578ee7288438892f9594e4a05cd9ab47feab6fb07ec190782
$ docker rm -f a64ddbd0f3dc405578ee7288438892f9594e4a05cd9ab47feab6fb07ec190782
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE