SuccessConsole Output

Started by upstream project "LCM-stage_1" build number 998
originally caused by:
 Triggered by Gerrit: https://osm.etsi.org/gerrit/9900
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/LCM.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/LCM.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/bug-585
Seen branch in repository origin/feature5837
Seen branch in repository origin/feature7106
Seen branch in repository origin/feature7184
Seen branch in repository origin/feature7928
Seen branch in repository origin/lcm-bug-585
Seen branch in repository origin/master
Seen branch in repository origin/n2vc
Seen branch in repository origin/netslice
Seen branch in repository origin/sol006
Seen branch in repository origin/v3.1
Seen branch in repository origin/v4.0
Seen branch in repository origin/v5.0
Seen branch in repository origin/v6.0
Seen branch in repository origin/v7.0
Seen branch in repository origin/v8.0
Seen 16 remote branches
Obtained Jenkinsfile from acc9045429bde37434966e93c0f8f525b1c06cb2
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm2 slave in /opt/jenkins/workspace/LCM-stage_2_sol006
[Pipeline] {
[Pipeline] checkout
No credentials specified
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://osm.etsi.org/gerrit/osm/LCM.git
 > git init /opt/jenkins/workspace/LCM-stage_2_sol006 # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/LCM.git
 > git --version # timeout=10
 > git fetch --no-tags --progress https://osm.etsi.org/gerrit/osm/LCM.git +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/LCM.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/LCM.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/LCM.git
 > git fetch --no-tags --progress https://osm.etsi.org/gerrit/osm/LCM.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision acc9045429bde37434966e93c0f8f525b1c06cb2 (sol006)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f acc9045429bde37434966e93c0f8f525b1c06cb2
Commit message: "Get version from installed package if available instead of code"
 > git rev-list --no-walk acc9045429bde37434966e93c0f8f525b1c06cb2 # timeout=10
[Pipeline] dir
Running in /opt/jenkins/workspace/LCM-stage_2_sol006/devops
[Pipeline] {
[Pipeline] git
No credentials specified
Cloning the remote Git repository
Cloning repository https://osm.etsi.org/gerrit/osm/devops
 > git init /opt/jenkins/workspace/LCM-stage_2_sol006/devops # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/devops
 > git --version # timeout=10
 > git fetch --tags --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/devops # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/devops # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/devops
 > git fetch --tags --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/sol006^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/sol006^{commit} # timeout=10
Checking out Revision e5050fb4bcd04eee1011b677b1c4c80159bde008 (refs/remotes/origin/sol006)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f e5050fb4bcd04eee1011b677b1c4c80159bde008
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b sol006 e5050fb4bcd04eee1011b677b1c4c80159bde008
Commit message: "Disable stage3 for branch sol006"
 > git rev-list --no-walk e5050fb4bcd04eee1011b677b1c4c80159bde008 # 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
[LCM-stage_2_sol006] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
MAIL=/var/mail/jenkins
LC_TIME=fr_FR.UTF-8
SSH_CLIENT=195.238.226.13 57310 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/LCM-stage_2/job/sol006/3/display/redirect?page=changes
GERRIT_PROJECT=osm/LCM
SHLVL=1
NODE_LABELS=docker osm2 osm2 slave pipeline
HUDSON_URL=https://osm.etsi.org/jenkins/
OLDPWD=/home/jenkins
HOME=/home/jenkins
BUILD_URL=https://osm.etsi.org/jenkins/job/LCM-stage_2/job/sol006/3/
HUDSON_COOKIE=4766803d-544c-447e-80b9-dfd3e2e31577
JENKINS_SERVER_COOKIE=durable-4507cb796416962b7988db82fdeb7820
LC_MONETARY=fr_FR.UTF-8
GERRIT_PATCHSET_REVISION=6500339f6d90776325acc9973f0c8243b62b9439
WORKSPACE=/opt/jenkins/workspace/LCM-stage_2_sol006
LOGNAME=jenkins
NODE_NAME=osm2 slave
GERRIT_BRANCH=sol006
_=/usr/bin/java
EXECUTOR_NUMBER=7
XDG_SESSION_ID=17044
BUILD_DISPLAY_NAME=#3
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=sol006
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
LC_ADDRESS=fr_FR.UTF-8
BUILD_ID=3
XDG_RUNTIME_DIR=/run/user/1017
BUILD_TAG=jenkins-LCM-stage_2-sol006-3
LC_TELEPHONE=fr_FR.UTF-8
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=en_US.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/LCM-stage_2/job/sol006/
BUILD_NUMBER=3
SHELL=/bin/bash
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
LC_NAME=fr_FR.UTF-8
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/LCM-stage_2/job/sol006/3/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/00/9900/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
LC_MEASUREMENT=fr_FR.UTF-8
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/LCM-stage_2/job/sol006/display/redirect
LC_IDENTIFICATION=fr_FR.UTF-8
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
JOB_NAME=LCM-stage_2/sol006
TEST_INSTALL=true
PWD=/opt/jenkins/workspace/LCM-stage_2_sol006
LC_ALL=en_US.UTF-8
SSH_CONNECTION=195.238.226.13 57310 172.21.1.2 22
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
BRANCH_NAME=sol006
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ git fetch --tags
From https://osm.etsi.org/gerrit/osm/LCM
 * [new tag]         BUILD_v4.0.1_1 -> BUILD_v4.0.1_1
 * [new tag]         BUILD_v4.0.1_2 -> BUILD_v4.0.1_2
 * [new tag]         release-v8.0-start -> release-v8.0-start
 * [new tag]         v4.0.0     -> v4.0.0
 * [new tag]         v4.0.1     -> v4.0.1
 * [new tag]         v5.0.0     -> v5.0.0
 * [new tag]         v5.0.1     -> v5.0.1
 * [new tag]         v5.0.2     -> v5.0.2
 * [new tag]         v5.0.3     -> v5.0.3
 * [new tag]         v5.0.4     -> v5.0.4
 * [new tag]         v5.0.5     -> v5.0.5
 * [new tag]         v6.0.0     -> v6.0.0
 * [new tag]         v6.0.1     -> v6.0.1
 * [new tag]         v6.0.2     -> v6.0.2
 * [new tag]         v6.0.2rc1  -> v6.0.2rc1
 * [new tag]         v6.0.3     -> v6.0.3
 * [new tag]         v6.0.4     -> v6.0.4
 * [new tag]         v6.0.4rc1  -> v6.0.4rc1
 * [new tag]         v7.0.0     -> v7.0.0
 * [new tag]         v7.0.0rc1  -> v7.0.0rc1
 * [new tag]         v7.0.1     -> v7.0.1
 * [new tag]         v7.0.1rc1  -> v7.0.1rc1
 * [new tag]         v7.0.1rc2  -> v7.0.1rc2
 * [new tag]         v7.0.1rc3  -> v7.0.1rc3
 * [new tag]         v7.1.0     -> v7.1.0
 * [new tag]         v7.1.0rc1  -> v7.1.0rc1
 * [new tag]         v7.1.0rc2  -> v7.1.0rc2
 * [new tag]         v7.1.0rc3  -> v7.1.0rc3
 * [new tag]         v7.1.0rc4  -> v7.1.0rc4
 * [new tag]         v7.1.0rc5  -> v7.1.0rc5
 * [new tag]         v7.1.0rc6  -> v7.1.0rc6
 * [new tag]         v7.1.2     -> v7.1.2
 * [new tag]         v7.1.3     -> v7.1.3
 * [new tag]         v7.1.4     -> v7.1.4
 * [new tag]         v7.1.5     -> v7.1.5
 * [new tag]         v8.0.0     -> v8.0.0
 * [new tag]         v8.0.0rc1  -> v8.0.0rc1
 * [new tag]         v8.0.0rc2  -> v8.0.0rc2
 * [new tag]         v8.0.0rc3  -> v8.0.0rc3
 * [new tag]         v8.0.1     -> v8.0.1
 * [new tag]         v8.0.1rc1  -> v8.0.1rc1
 * [new tag]         v8.0.2     -> v8.0.2
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ git fetch origin refs/changes/00/9900/1
From https://osm.etsi.org/gerrit/osm/LCM
 * branch            refs/changes/00/9900/1 -> FETCH_HEAD
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ git checkout -f 6500339f6d90776325acc9973f0c8243b62b9439
Previous HEAD position was acc9045... Get version from installed package if available instead of code
HEAD is now at 6500339... Updates branch sol006 with master
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ devops/tools/license_scan.sh
GERRIT BRANCH is sol006
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version           Architecture Description
+++-==============-=================-============-=================================
ii  wget           1.17.1-1ubuntu1.2 amd64        retrieves files from the web
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version           Architecture Description
+++-==============-=================-============-=======================================================
ii  curl           7.47.0-1ubuntu2.2 amd64        command line tool for transferring data with URL syntax
.gitignore-common Apache-2.0
Dockerfile Apache-2.0
Dockerfile.fromdeb Apache-2.0
Dockerfile.local Apache-2.0
Makefile Apache-2.0
debian/python3-osm-lcm.postinst Apache-2.0
devops-stages/stage-build.sh Apache-2.0
devops-stages/stage-test.sh Apache-2.0
nose2.cfg Apache-2.0
osm_lcm/ROclient.py Apache-2.0
osm_lcm/__init__.py Apache-2.0
osm_lcm/frontend_grpc.py Apache-2.0
osm_lcm/frontend_pb2.py Apache-2.0
osm_lcm/lcm.cfg Apache-2.0
osm_lcm/lcm.py Apache-2.0
osm_lcm/lcm_hc.py Apache-2.0
osm_lcm/lcm_helm_conn.py Apache-2.0
osm_lcm/lcm_utils.py Apache-2.0
osm_lcm/netslice.py Apache-2.0
osm_lcm/ng_ro.py Apache-2.0
osm_lcm/ns.py Apache-2.0
osm_lcm/prometheus.py Apache-2.0
osm_lcm/tests/test_db_descriptors.py Apache-2.0
osm_lcm/tests/test_lcm_helm_conn.py Apache-2.0
osm_lcm/tests/test_ns.py Apache-2.0
osm_lcm/tests/test_prometheus.py Apache-2.0
osm_lcm/vim_sdn.py Apache-2.0
requirements.txt Apache-2.0
setup.py Apache-2.0
stdeb.cfg Apache-2.0
tox.ini Apache-2.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Docker-Build)
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ id -g
+ echo RUN groupadd -o -g 1015 -r jenkins
+ id -u
+ echo RUN useradd -o -u 1017 --create-home -r -g jenkins jenkins
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ docker build -t osm/lcm-sol006 .
Sending build context to Docker daemon  17.05MB

Step 1/4 : FROM ubuntu:18.04
 ---> 8e4ce0a6ce69
Step 2/4 : RUN apt-get update &&     DEBIAN_FRONTEND=noninteractive apt-get --yes install git tox make debhelper wget     python-all python3 python3-pip python3-all apt-utils &&     DEBIAN_FRONTEND=noninteractive pip3 install -U setuptools setuptools-version-command stdeb
 ---> Using cache
 ---> 9c1b5b46bdfe
Step 3/4 : RUN groupadd -o -g 1015 -r jenkins
 ---> Using cache
 ---> 9d5c6f0c0c89
Step 4/4 : RUN useradd -o -u 1017 --create-home -r -g jenkins jenkins
 ---> Using cache
 ---> 0cc0f2df948e
Successfully built 0cc0f2df948e
Successfully tagged osm/lcm-sol006:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] withDockerContainer
osm2 slave does not seem to be running inside a container
$ docker run -t -d -u 1017:1015 -w /opt/jenkins/workspace/LCM-stage_2_sol006 -v /opt/jenkins/workspace/LCM-stage_2_sol006:/opt/jenkins/workspace/LCM-stage_2_sol006:rw,z -v /opt/jenkins/workspace/LCM-stage_2_sol006@tmp:/opt/jenkins/workspace/LCM-stage_2_sol006@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat osm/lcm-sol006
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ devops-stages/stage-test.sh
cover create: /opt/jenkins/workspace/LCM-stage_2_sol006/.tox/cover
cover installdeps: nose2, nose2-cov, coverage, -rrequirements.txt, -rtest-requirements.txt
cover develop-inst: /opt/jenkins/workspace/LCM-stage_2_sol006
cover installed: aiohttp==3.6.3,aiokafka==0.6.0,async-timeout==3.0.1,asynctest==0.13.0,attrs==20.2.0,bcrypt==3.2.0,cachetools==4.1.1,certifi==2020.6.20,cffi==1.14.3,chardet==3.0.4,cov-core==1.15.0,coverage==5.3,cryptography==3.1.1,dataclasses==0.7,flake8==2.6.2,google-auth==1.22.1,grpcio==1.33.1,grpcio-tools==1.33.1,grpclib==0.4.1,h2==4.0.0,hpack==4.0.0,hyperframe==6.0.0,idna==2.10,idna-ssl==1.1.0,Jinja2==2.11.2,juju==2.8.4,jujubundlelib==0.5.6,kafka-python==2.0.2,kubernetes==10.0.1,macaroonbakery==1.3.1,MarkupSafe==1.1.1,mccabe==0.5.3,multidict==4.7.6,mypy-extensions==0.4.3,N2VC @ git+https://osm.etsi.org/gerrit/osm/N2VC.git@5ef42a14f766aa00a5917845ba1b3e04cc3c15f7,nose2==0.9.2,nose2-cov==1.0a4,oauthlib==3.1.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@41ca4d07a903990706ea2a5ccae6bcf21e32bdf7,-e git+https://osm.etsi.org/gerrit/osm/LCM.git@6500339f6d90776325acc9973f0c8243b62b9439#egg=osm_lcm,paramiko==2.7.2,pkg-resources==0.0.0,protobuf==3.13.0,pyasn1==0.4.8,pyasn1-modules==0.2.8,pycodestyle==2.0.0,pycparser==2.20,pycrypto==2.6.1,pyflakes==1.2.3,pymacaroons==0.13.0,pymongo==3.11.0,PyNaCl==1.4.0,pyRFC3339==1.1,python-dateutil==2.8.1,pytz==2020.1,PyYAML==5.3.1,requests==2.24.0,requests-oauthlib==1.3.0,rsa==4.6,six==1.15.0,theblues==0.5.2,toposort==1.5,typing-extensions==3.7.4.3,typing-inspect==0.6.0,urllib3==1.25.11,websocket-client==0.57.0,websockets==7.0,yarl==1.5.1
cover runtests: PYTHONHASHSEED='1300539619'
cover runtests: commands[0] | coverage erase
cover runtests: commands[1] | nose2 -C --coverage osm_lcm --plugin nose2.plugins.junitxml -s osm_lcm/tests
................INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:create_execution_environment: namespace: testnamespace, artifact_path: helm_sample_charm, db_dict: {}, reuse_ee_id: None
DEBUG:test_lcm_helm_conn:install helm chart: /app/storage/helm_sample_charm
.INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:ee_id: osm.helm_sample_charm_0001
INFO:test_lcm_helm_conn:ee_id: osm.helm_sample_charm_0001 deleted
.INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
DEBUG:test_lcm_helm_conn:Execute config primitive
INFO:test_lcm_helm_conn:exec primitive for ee_id : osm.helm_sample_charm_0001, primitive_name: config, params_dict: {'ssh-host-name': 'host1'}, db_dict: None
DEBUG:test_lcm_helm_conn:Executed config primitive ee_id_ osm.helm_sample_charm_0001, status: OK, message: CONFIG OK
.INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:exec primitive for ee_id : osm.helm_sample_charm_0001, primitive_name: sleep, params_dict: {}, db_dict: None
DEBUG:test_lcm_helm_conn:Executed primitive sleep ee_id_ osm.helm_sample_charm_0001, status: OK, message: test-ok
.INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:get_ee_ssh_public_key: ee_id: osm.helm_sample_charm_0001, db_dict: {}
.
----------------------------------------------------------------------
Ran 21 tests in 47.491s

OK
Name                                   Stmts   Miss  Cover
----------------------------------------------------------
osm_lcm/ROclient.py                      818    706    14%
osm_lcm/__init__.py                        7      2    71%
osm_lcm/frontend_grpc.py                  20      6    70%
osm_lcm/frontend_pb2.py                   27      0   100%
osm_lcm/lcm.py                           484    484     0%
osm_lcm/lcm_hc.py                         20     20     0%
osm_lcm/lcm_helm_conn.py                 204     87    57%
osm_lcm/lcm_utils.py                     215    153    29%
osm_lcm/netslice.py                      436    436     0%
osm_lcm/ng_ro.py                         118     94    20%
osm_lcm/ns.py                           2560   1405    45%
osm_lcm/prometheus.py                    129     58    55%
osm_lcm/tests/test_db_descriptors.py      11      0   100%
osm_lcm/tests/test_lcm_helm_conn.py       65      1    98%
osm_lcm/tests/test_ns.py                 347     25    93%
osm_lcm/tests/test_prometheus.py          71      1    99%
osm_lcm/vim_sdn.py                       851    851     0%
----------------------------------------------------------
TOTAL                                   6383   4329    32%

cover runtests: commands[2] | coverage report --omit=*tests*
Name                       Stmts   Miss  Cover
----------------------------------------------
osm_lcm/ROclient.py          818    706    14%
osm_lcm/__init__.py            7      2    71%
osm_lcm/frontend_grpc.py      20      6    70%
osm_lcm/frontend_pb2.py       27      0   100%
osm_lcm/lcm.py               484    484     0%
osm_lcm/lcm_hc.py             20     20     0%
osm_lcm/lcm_helm_conn.py     204     87    57%
osm_lcm/lcm_utils.py         215    153    29%
osm_lcm/netslice.py          436    436     0%
osm_lcm/ng_ro.py             118     94    20%
osm_lcm/ns.py               2560   1405    45%
osm_lcm/prometheus.py        129     58    55%
osm_lcm/vim_sdn.py           851    851     0%
----------------------------------------------
TOTAL                       5889   4302    27%
cover runtests: commands[3] | coverage html -d ./cover --omit=*tests*
cover runtests: commands[4] | coverage xml -o coverage.xml --omit=*tests*
flake8 create: /opt/jenkins/workspace/LCM-stage_2_sol006/.tox/flake8
flake8 installdeps: flake8, -rrequirements.txt
flake8 develop-inst: /opt/jenkins/workspace/LCM-stage_2_sol006
flake8 installed: aiohttp==3.6.3,aiokafka==0.6.0,async-timeout==3.0.1,attrs==20.2.0,bcrypt==3.2.0,cachetools==4.1.1,certifi==2020.6.20,cffi==1.14.3,chardet==3.0.4,cryptography==3.1.1,dataclasses==0.7,flake8==3.8.4,google-auth==1.22.1,grpcio==1.33.1,grpcio-tools==1.33.1,grpclib==0.4.1,h2==4.0.0,hpack==4.0.0,hyperframe==6.0.0,idna==2.10,idna-ssl==1.1.0,importlib-metadata==2.0.0,Jinja2==2.11.2,juju==2.8.4,jujubundlelib==0.5.6,kafka-python==2.0.2,kubernetes==10.0.1,macaroonbakery==1.3.1,MarkupSafe==1.1.1,mccabe==0.6.1,multidict==4.7.6,mypy-extensions==0.4.3,N2VC @ git+https://osm.etsi.org/gerrit/osm/N2VC.git@5ef42a14f766aa00a5917845ba1b3e04cc3c15f7,oauthlib==3.1.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@41ca4d07a903990706ea2a5ccae6bcf21e32bdf7,-e git+https://osm.etsi.org/gerrit/osm/LCM.git@6500339f6d90776325acc9973f0c8243b62b9439#egg=osm_lcm,paramiko==2.7.2,pkg-resources==0.0.0,protobuf==3.13.0,pyasn1==0.4.8,pyasn1-modules==0.2.8,pycodestyle==2.6.0,pycparser==2.20,pycrypto==2.6.1,pyflakes==2.2.0,pymacaroons==0.13.0,pymongo==3.11.0,PyNaCl==1.4.0,pyRFC3339==1.1,python-dateutil==2.8.1,pytz==2020.1,PyYAML==5.3.1,requests==2.24.0,requests-oauthlib==1.3.0,rsa==4.6,six==1.15.0,theblues==0.5.2,toposort==1.5,typing-extensions==3.7.4.3,typing-inspect==0.6.0,urllib3==1.25.11,websocket-client==0.57.0,websockets==7.0,yarl==1.5.1,zipp==3.3.1
flake8 runtests: PYTHONHASHSEED='1300539619'
flake8 runtests: commands[0] | flake8 osm_lcm --max-line-length 120 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp,frontend_grpc.py,frontend_pb2.py --ignore W291,W293,E226,W504
unittest create: /opt/jenkins/workspace/LCM-stage_2_sol006/.tox/unittest
unittest installdeps: asynctest
unittest develop-inst: /opt/jenkins/workspace/LCM-stage_2_sol006
unittest installed: aiohttp==3.6.3,aiokafka==0.6.0,async-timeout==3.0.1,asynctest==0.13.0,attrs==20.2.0,bcrypt==3.2.0,cachetools==4.1.1,certifi==2020.6.20,cffi==1.14.3,chardet==3.0.4,cryptography==3.1.1,dataclasses==0.7,google-auth==1.22.1,grpcio==1.33.1,grpcio-tools==1.33.1,grpclib==0.4.1,h2==4.0.0,hpack==4.0.0,hyperframe==6.0.0,idna==2.10,idna-ssl==1.1.0,Jinja2==2.11.2,juju==2.8.4,jujubundlelib==0.5.6,kafka-python==2.0.2,kubernetes==10.0.1,macaroonbakery==1.3.1,MarkupSafe==1.1.1,multidict==4.7.6,mypy-extensions==0.4.3,N2VC @ git+https://osm.etsi.org/gerrit/osm/N2VC.git@5ef42a14f766aa00a5917845ba1b3e04cc3c15f7,oauthlib==3.1.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@41ca4d07a903990706ea2a5ccae6bcf21e32bdf7,-e git+https://osm.etsi.org/gerrit/osm/LCM.git@6500339f6d90776325acc9973f0c8243b62b9439#egg=osm_lcm,paramiko==2.7.2,pkg-resources==0.0.0,protobuf==3.13.0,pyasn1==0.4.8,pyasn1-modules==0.2.8,pycparser==2.20,pycrypto==2.6.1,pymacaroons==0.13.0,pymongo==3.11.0,PyNaCl==1.4.0,pyRFC3339==1.1,python-dateutil==2.8.1,pytz==2020.1,PyYAML==5.3.1,requests==2.24.0,requests-oauthlib==1.3.0,rsa==4.6,six==1.15.0,theblues==0.5.2,toposort==1.5,typing-extensions==3.7.4.3,typing-inspect==0.6.0,urllib3==1.25.11,websocket-client==0.57.0,websockets==7.0,yarl==1.5.1
unittest runtests: PYTHONHASHSEED='1300539619'
unittest runtests: commands[0] | python3 -m unittest discover osm_lcm/tests -v
test_create_execution_environment (test_lcm_helm_conn.TestLcmHelmConn) ... DEBUG:asyncio:Using selector: EpollSelector
INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:create_execution_environment: namespace: testnamespace, artifact_path: helm_sample_charm, db_dict: {}, reuse_ee_id: None
DEBUG:test_lcm_helm_conn:install helm chart: /app/storage/helm_sample_charm
ok
test_delete_execution_environment (test_lcm_helm_conn.TestLcmHelmConn) ... DEBUG:asyncio:Using selector: EpollSelector
INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:ee_id: osm.helm_sample_charm_0001
INFO:test_lcm_helm_conn:ee_id: osm.helm_sample_charm_0001 deleted
ok
test_execute_config_primitive (test_lcm_helm_conn.TestLcmHelmConn) ... DEBUG:asyncio:Using selector: EpollSelector
INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
DEBUG:test_lcm_helm_conn:Execute config primitive
INFO:test_lcm_helm_conn:exec primitive for ee_id : osm.helm_sample_charm_0001, primitive_name: config, params_dict: {'ssh-host-name': 'host1'}, db_dict: None
DEBUG:test_lcm_helm_conn:Executed config primitive ee_id_ osm.helm_sample_charm_0001, status: OK, message: CONFIG OK
ok
test_execute_primitive (test_lcm_helm_conn.TestLcmHelmConn) ... DEBUG:asyncio:Using selector: EpollSelector
INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:exec primitive for ee_id : osm.helm_sample_charm_0001, primitive_name: sleep, params_dict: {}, db_dict: None
DEBUG:test_lcm_helm_conn:Executed primitive sleep ee_id_ osm.helm_sample_charm_0001, status: OK, message: test-ok
ok
test_get_ee_ssh_public__key (test_lcm_helm_conn.TestLcmHelmConn) ... DEBUG:asyncio:Using selector: EpollSelector
INFO:test_lcm_helm_conn:url=None, username=None, vca_config={}
WARNING:test_lcm_helm_conn:No HOME environment variable, using /tmp
DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:get_ee_ssh_public_key: ee_id: osm.helm_sample_charm_0001, db_dict: {}
ok
test_deploy_kdus (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_instantiate (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_instantiate_ee_list (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_instantiate_pdu (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_ns_params_2_RO (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_scale (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_scale_add_suboperation (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_scale_check_or_add_scale_suboperation (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_scale_find_suboperation (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_scale_retry_or_skip_suboperation (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_scale_update_suboperation_status (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_terminate_primitive (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_terminate_without_configuration (test_ns.TestMyNS) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_parse_job (test_prometheus.TestPrometheus) ... DEBUG:asyncio:Using selector: EpollSelector
ok
test_start (test_prometheus.TestPrometheus) ... DEBUG:asyncio:Using selector: EpollSelector
INFO:lcm.prometheus:Init db.admin.prometheus content
ok
test_update (test_prometheus.TestPrometheus) ... DEBUG:asyncio:Using selector: EpollSelector
DEBUG:lcm.prometheus:Updating. adding jobs: ['job1']
DEBUG:lcm.prometheus:Updating. removing jobs: ['job1']
ok

----------------------------------------------------------------------
Ran 21 tests in 44.879s

OK
___________________________________ summary ____________________________________
  cover: commands succeeded
  flake8: commands succeeded
  unittest: 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
[LCM-stage_2_sol006] Running shell script
+ devops-stages/stage-build.sh
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:454: UserWarning: Normalizing 'v7.0.0.post1+g6500339.dirty' to '7.0.0.post1+g6500339.dirty'
  warnings.warn(tmpl.format(**locals()))
warning: no files found matching '*.xml' under directory 'osm_lcm'
warning: no files found matching '*.sh' under directory 'osm_lcm'
 dpkg-source --before-build osm-lcm-7.0.0.post1+g6500339.dirty
 fakeroot debian/rules clean
dh: Compatibility levels before 9 are deprecated (level 7 in use)
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:454: UserWarning: Normalizing 'v7.0.0.post1+g6500339.dirty' to '7.0.0.post1+g6500339.dirty'
  warnings.warn(tmpl.format(**locals()))
'build/lib' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.6' does not exist -- can't clean it
dh_clean: Compatibility levels before 9 are deprecated (level 7 in use)
 dpkg-source -b osm-lcm-7.0.0.post1+g6500339.dirty
 dpkg-genbuildinfo --build=source
 dpkg-genchanges -sa --build=source >../osm-lcm_7.0.0.post1+g6500339.dirty-1_source.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build osm-lcm-7.0.0.post1+g6500339.dirty
dpkg-source: warning: extracting unsigned source package (osm-lcm_7.0.0.post1+g6500339.dirty-1.dsc)
 dpkg-source --before-build osm-lcm-7.0.0.post1+g6500339.dirty
 fakeroot debian/rules clean
dh: Compatibility levels before 9 are deprecated (level 7 in use)
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:454: UserWarning: Normalizing 'v7.0.0.post1+g6500339.dirty' to '7.0.0.post1+g6500339.dirty'
  warnings.warn(tmpl.format(**locals()))
'build/lib' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.6' does not exist -- can't clean it
dh_clean: Compatibility levels before 9 are deprecated (level 7 in use)
 dpkg-source -b osm-lcm-7.0.0.post1+g6500339.dirty
 debian/rules build
dh: Compatibility levels before 9 are deprecated (level 7 in use)
dh_auto_configure: Compatibility levels before 9 are deprecated (level 7 in use)
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:454: UserWarning: Normalizing 'v7.0.0.post1+g6500339.dirty' to '7.0.0.post1+g6500339.dirty'
  warnings.warn(tmpl.format(**locals()))
warning: no files found matching '*.xml' under directory 'osm_lcm'
warning: no files found matching '*.sh' under directory 'osm_lcm'
dh_auto_test: Compatibility levels before 9 are deprecated (level 7 in use)
 fakeroot debian/rules binary
dh: Compatibility levels before 9 are deprecated (level 7 in use)
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:454: UserWarning: Normalizing 'v7.0.0.post1+g6500339.dirty' to '7.0.0.post1+g6500339.dirty'
  warnings.warn(tmpl.format(**locals()))
warning: no files found matching '*.xml' under directory 'osm_lcm'
warning: no files found matching '*.sh' under directory 'osm_lcm'
dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
I: dh_python3 fs:373: renaming osm_lcm-7.0.0.post1+g6500339.dirty-py3.6.egg-info to osm_lcm-7.0.0.post1+g6500339.dirty.egg-info
I: dh_python3 pydist:220: Cannot find package that provides osm_common_. Please add package that provides it to Build-Depends or add "osm_common_ python3-osm-common-" line to debian/py3dist-overrides or add proper  dependency to Depends by hand and ignore this info.
I: dh_python3 pydist:220: Cannot find package that provides n2vc_. Please add package that provides it to Build-Depends or add "n2vc_ python3-n2vc-" line to debian/py3dist-overrides or add proper  dependency to Depends by hand and ignore this info.
I: dh_python3 pydist:220: Cannot find package that provides grpcio_tools. Please add package that provides it to Build-Depends or add "grpcio_tools python3-grpcio-tools" line to debian/py3dist-overrides or add proper  dependency to Depends by hand and ignore this info.
I: dh_python3 pydist:220: Cannot find package that provides grpclib. Please add package that provides it to Build-Depends or add "grpclib python3-grpclib" line to debian/py3dist-overrides or add proper  dependency to Depends by hand and ignore this info.
dh_compress: Compatibility levels before 9 are deprecated (level 7 in use)
dh_missing: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
 dpkg-genbuildinfo
 dpkg-genchanges  >../osm-lcm_7.0.0.post1+g6500339.dirty-1_amd64.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build osm-lcm-7.0.0.post1+g6500339.dirty
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ mkdir -p changelog
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ devops/tools/generatechangelog-pipeline.sh
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ devops-stages/stage-archive.sh
[Pipeline] getArtifactoryServer
[Pipeline] newBuildInfo
[Pipeline] artifactoryUpload
[consumer_0] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-LCM/sol006-staging/3/dists/unstable/LCM/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-LCM/sol006-staging/3/dists/unstable/LCM/binary-amd64/Packages
[consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-LCM/sol006-staging/3/pool/LCM/python3-osm-lcm_7.0.0.post1%2Bg6500339.dirty-1_all.deb
[consumer_0] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-LCM/sol006-staging/3/changelog/changelog-LCM.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/LCM-stage_2%20::%20sol006/3
[Pipeline] sh
[LCM-stage_2_sol006] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 f28d1676d717d421ab7f628962b734011f3e23eb4779abfbf5e73644b5ecfafb
$ docker rm -f f28d1676d717d421ab7f628962b734011f3e23eb4779abfbf5e73644b5ecfafb
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS