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 fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* Seen branch in repository origin/master Seen branch in repository origin/netslice Seen 2 remote branches Obtained Jenkinsfile from d8e91c539f8a1657a93c6ed59dd5f9ad489684ef [Pipeline] properties [Pipeline] node Running on osm2 slave in /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A [Pipeline] { [Pipeline] checkout Cloning the remote Git repository Cloning repository https://osm.etsi.org/gerrit/osm/POL.git > git init /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A # timeout=10 Fetching upstream changes from https://osm.etsi.org/gerrit/osm/POL.git > git --version # timeout=10 > git fetch --tags --progress https://osm.etsi.org/gerrit/osm/POL.git +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url https://osm.etsi.org/gerrit/osm/POL.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/POL.git # timeout=10 Fetching upstream changes from https://osm.etsi.org/gerrit/osm/POL.git > git fetch --tags --progress https://osm.etsi.org/gerrit/osm/POL.git +refs/heads/*:refs/remotes/origin/* Checking out Revision d8e91c539f8a1657a93c6ed59dd5f9ad489684ef (netslice) > git config core.sparsecheckout # timeout=10 > git checkout -f d8e91c539f8a1657a93c6ed59dd5f9ad489684ef > git rev-list d8e91c539f8a1657a93c6ed59dd5f9ad489684ef # timeout=10 [Pipeline] dir Running in /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/devops [Pipeline] { [Pipeline] git Cloning the remote Git repository Cloning repository https://osm.etsi.org/gerrit/osm/devops > git init /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/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/netslice^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/netslice^{commit} # timeout=10 Checking out Revision 763d332c9fc6eec094d091ab66772c8563754476 (refs/remotes/origin/netslice) > git config core.sparsecheckout # timeout=10 > git checkout -f 763d332c9fc6eec094d091ab66772c8563754476 > git branch -a -v --no-abbrev # timeout=10 > git checkout -b netslice 763d332c9fc6eec094d091ab66772c8563754476 First time build. Skipping changelog. [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_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] 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 41817 22 USER=jenkins RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/netslice/2/display/redirect?page=changes GERRIT_PROJECT=osm/POL SHLVL=1 NODE_LABELS=docker osm2 osm2 slave pipeline HUDSON_URL=https://osm.etsi.org/jenkins/ OLDPWD=/home/jenkins HOME=/home/jenkins BUILD_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/netslice/2/ HUDSON_COOKIE=ce2e78ab-1311-4fa3-ac13-1b94d88db251 JENKINS_SERVER_COOKIE=durable-3f532dfcee8853db7c817a732eef7a69 LC_MONETARY=fr_FR.UTF-8 WORKSPACE=/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A LOGNAME=jenkins NODE_NAME=osm2 slave GERRIT_BRANCH=netslice _=/usr/bin/java EXECUTOR_NUMBER=6 XDG_SESSION_ID=1337 BUILD_DISPLAY_NAME=#2 PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit HUDSON_HOME=/var/lib/jenkins JOB_BASE_NAME=netslice 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=2 XDG_RUNTIME_DIR=/run/user/1017 BUILD_TAG=jenkins-POL-stage_2-merge-netslice-2 LC_TELEPHONE=fr_FR.UTF-8 JENKINS_URL=https://osm.etsi.org/jenkins/ LANG=en_US.UTF-8 JOB_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/netslice/ BUILD_NUMBER=2 SHELL=/bin/bash XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt LC_NAME=fr_FR.UTF-8 RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/netslice/2/display/redirect ARTIFACTORY_SERVER=artifactory-osm HUDSON_SERVER_COOKIE=6d3295a483c3e6d5 LC_MEASUREMENT=fr_FR.UTF-8 JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/POL-stage_2-merge/job/netslice/display/redirect LC_IDENTIFICATION=fr_FR.UTF-8 NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat JOB_NAME=POL-stage_2-merge/netslice TEST_INSTALL=false PWD=/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A LC_ALL=en_US.UTF-8 SSH_CONNECTION=195.238.226.13 41817 172.21.1.2 22 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 BRANCH_NAME=netslice [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Checkout) [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + git fetch origin [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (License Scan) [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + devops/tools/license_scan.sh GERRIT BRANCH is netslice 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 [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker-Build) [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + id -g + echo RUN groupadd -o -g 1015 -r jenkins + id -u + echo RUN useradd -o -u 1017 --create-home -r -g jenkins jenkins [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + docker build -t osm/pol-netslice . Sending build context to Docker daemon 557.1 kB Sending build context to Docker daemon 1.114 MB Sending build context to Docker daemon 1.671 MB Sending build context to Docker daemon 2.228 MB Sending build context to Docker daemon 2.785 MB Sending build context to Docker daemon 3.342 MB Sending build context to Docker daemon 3.899 MB Sending build context to Docker daemon 4.456 MB Sending build context to Docker daemon 5.014 MB Sending build context to Docker daemon 5.571 MB Sending build context to Docker daemon 6.128 MB Sending build context to Docker daemon 6.685 MB Sending build context to Docker daemon 7.242 MB Sending build context to Docker daemon 7.799 MB Sending build context to Docker daemon 8.356 MB Sending build context to Docker daemon 8.913 MB Sending build context to Docker daemon 9.47 MB Sending build context to Docker daemon 10.03 MB Sending build context to Docker daemon 10.58 MB Sending build context to Docker daemon 11.14 MB Sending build context to Docker daemon 11.7 MB Sending build context to Docker daemon 12.26 MB Sending build context to Docker daemon 12.67 MB Step 1 : FROM ubuntu:16.04 ---> f1d200737f6f Step 2 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get --yes install git tox make python-all python3 python3-pip debhelper wget && DEBIAN_FRONTEND=noninteractive apt-get --yes install libmysqlclient-dev libxml2 python3-all && DEBIAN_FRONTEND=noninteractive pip3 install -U setuptools setuptools-version-command stdeb ---> Using cache ---> ad544baf7197 Step 3 : RUN groupadd -o -g 1015 -r jenkins ---> Using cache ---> e2ae66ae6fb0 Step 4 : RUN useradd -o -u 1017 --create-home -r -g jenkins jenkins ---> Using cache ---> f8ed601b151b Successfully built f8ed601b151b [Pipeline] } [Pipeline] // stage [Pipeline] withDockerContainer osm2 slave does not seem to be running inside a container $ docker run -t -d -u 1017:1015 -w /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A -v /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A:/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A:rw,z -v /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A@tmp:/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat osm/pol-netslice [Pipeline] { [Pipeline] stage [Pipeline] { (Test) [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + devops-stages/stage-test.sh GLOB sdist-make: /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/setup.py py3 create: /home/jenkins/.tox/py3 py3 installdeps: -r/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/test-requirements.txt py3 inst: /home/jenkins/.tox/dist/osm_policy_module-4.0.1.post13+gd8e91c5.dirty.zip py3 installed: aiokafka==0.4.2,flake8==2.6.2,jsonschema==2.6.0,kafka==1.3.5,kafka-python==1.4.3,mccabe==0.5.3,mock==2.0.0,osm-common==4.0.1.post11+gb3f024d,osm-policy-module==4.0.1.post13+gd8e91c5.dirty,pbr==4.3.0,peewee==3.1.7,pkg-resources==0.0.0,pycodestyle==2.0.0,pyflakes==1.2.3,pymongo==3.7.2,PyYAML==3.13,six==1.11.0 py3 runtests: PYTHONHASHSEED='3300384756' py3 runtests: commands[0] | python3 -m unittest discover -v test_send_instantiated_msg (osm_policy_module.tests.integration.test_kafka_messages.KafkaMessagesTest) ... Bootstrapping cluster metadata from [('localhost', 9092, )] Bootstrapping cluster metadata from [('localhost', 9092, )] [IPv6 ('::1', 9092, 0, 0)]>: connecting to localhost:9092 [('::1', 9092, 0, 0) IPv6] [IPv6 ('::1', 9092, 0, 0)]>: connecting to localhost:9092 [('::1', 9092, 0, 0) IPv6] Connect attempt to [IPv6 ('::1', 9092, 0, 0)]> returned error 111. Disconnecting. Connect attempt to [IPv6 ('::1', 9092, 0, 0)]> returned error 111. Disconnecting. [IPv6 ('::1', 9092, 0, 0)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED [IPv6 ('::1', 9092, 0, 0)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED [IPv4 ('127.0.0.1', 9092)]>: connecting to localhost:9092 [('127.0.0.1', 9092) IPv4] [IPv4 ('127.0.0.1', 9092)]>: connecting to localhost:9092 [('127.0.0.1', 9092) IPv4] Connect attempt to [IPv4 ('127.0.0.1', 9092)]> returned error 111. Disconnecting. Connect attempt to [IPv4 ('127.0.0.1', 9092)]> returned error 111. Disconnecting. [IPv4 ('127.0.0.1', 9092)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED [IPv4 ('127.0.0.1', 9092)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED Unable to bootstrap from [('localhost', 9092, )] Unable to bootstrap from [('localhost', 9092, )] Kafka producer closed Kafka producer closed skipped 'Kafka server not present.' test_configure_scaling_groups (osm_policy_module.tests.integration.test_policy_agent.PolicyModuleAgentTest) ... Found 2 vnfrs Found 2 vnfrs Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0 Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0 Creating scaling group record in DB... Creating scaling group record in DB... --- Logging error --- Traceback (most recent call last): File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get return clone.execute()[0] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__ return self.row_cache[item] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups ScalingGroup.name == scaling_group['name'] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get (clone.model, sql, params)) osm_policy_module.core.database.ScalingGroupDoesNotExist: instance matching query does not exist: SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0 Params: ['test_nsr_id', 1, 'scale_cirros_vnfd-VM'] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit msg = self.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 830, in format return fmt.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 567, in format record.message = record.getMessage() File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage msg = msg % self.args TypeError: %d format: a number is required, not str Call stack: File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.5/unittest/__main__.py", line 18, in main(module=None) File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__ self.runTests() File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests self.result = testRunner.run(self.test) File "/usr/lib/python3.5/unittest/runner.py", line 176, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/case.py", line 600, in run testMethod() File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched return func(*args, **keywargs) File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups agent._configure_scaling_groups("test_nsr_id") File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups scaling_group_record.content) Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s' Arguments: ('test_nsr_id', '1', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}') --- Logging error --- Traceback (most recent call last): File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get return clone.execute()[0] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__ return self.row_cache[item] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups ScalingGroup.name == scaling_group['name'] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get (clone.model, sql, params)) osm_policy_module.core.database.ScalingGroupDoesNotExist: instance matching query does not exist: SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0 Params: ['test_nsr_id', 1, 'scale_cirros_vnfd-VM'] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit msg = self.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 830, in format return fmt.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 567, in format record.message = record.getMessage() File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage msg = msg % self.args TypeError: %d format: a number is required, not str Call stack: File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.5/unittest/__main__.py", line 18, in main(module=None) File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__ self.runTests() File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests self.result = testRunner.run(self.test) File "/usr/lib/python3.5/unittest/runner.py", line 176, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/case.py", line 600, in run testMethod() File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched return func(*args, **keywargs) File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups agent._configure_scaling_groups("test_nsr_id") File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups scaling_group_record.content) Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s' Arguments: ('test_nsr_id', '1', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}') Creating scaling policy record in DB... Creating scaling policy record in DB... Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM Creating scaling criteria record in DB... Creating scaling criteria record in DB... Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0 Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0 Creating scaling group record in DB... Creating scaling group record in DB... --- Logging error --- Traceback (most recent call last): File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get return clone.execute()[0] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__ return self.row_cache[item] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups ScalingGroup.name == scaling_group['name'] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get (clone.model, sql, params)) osm_policy_module.core.database.ScalingGroupDoesNotExist: instance matching query does not exist: SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0 Params: ['test_nsr_id', 2, 'scale_cirros_vnfd-VM'] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit msg = self.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 830, in format return fmt.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 567, in format record.message = record.getMessage() File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage msg = msg % self.args TypeError: %d format: a number is required, not str Call stack: File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.5/unittest/__main__.py", line 18, in main(module=None) File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__ self.runTests() File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests self.result = testRunner.run(self.test) File "/usr/lib/python3.5/unittest/runner.py", line 176, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/case.py", line 600, in run testMethod() File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched return func(*args, **keywargs) File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups agent._configure_scaling_groups("test_nsr_id") File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups scaling_group_record.content) Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s' Arguments: ('test_nsr_id', '2', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}') --- Logging error --- Traceback (most recent call last): File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get return clone.execute()[0] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__ return self.row_cache[item] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups ScalingGroup.name == scaling_group['name'] File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get (clone.model, sql, params)) osm_policy_module.core.database.ScalingGroupDoesNotExist: instance matching query does not exist: SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0 Params: ['test_nsr_id', 2, 'scale_cirros_vnfd-VM'] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit msg = self.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 830, in format return fmt.format(record) File "/usr/lib/python3.5/logging/__init__.py", line 567, in format record.message = record.getMessage() File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage msg = msg % self.args TypeError: %d format: a number is required, not str Call stack: File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.5/unittest/__main__.py", line 18, in main(module=None) File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__ self.runTests() File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests self.result = testRunner.run(self.test) File "/usr/lib/python3.5/unittest/runner.py", line 176, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/suite.py", line 122, in run test(result) File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3.5/unittest/case.py", line 600, in run testMethod() File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched return func(*args, **keywargs) File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups agent._configure_scaling_groups("test_nsr_id") File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups scaling_group_record.content) Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s' Arguments: ('test_nsr_id', '2', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}') Creating scaling policy record in DB... Creating scaling policy record in DB... Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM Creating scaling criteria record in DB... Creating scaling criteria record in DB... Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold Kafka producer closed Kafka producer closed Kafka producer closed Kafka producer closed ok ---------------------------------------------------------------------- Ran 2 tests in 0.146s OK (skipped=1) flake8 create: /home/jenkins/.tox/flake8 flake8 installdeps: flake8 flake8 inst: /home/jenkins/.tox/dist/osm_policy_module-4.0.1.post13+gd8e91c5.dirty.zip flake8 installed: aiokafka==0.4.2,flake8==3.5.0,jsonschema==2.6.0,kafka==1.3.5,kafka-python==1.4.3,mccabe==0.6.1,osm-common==4.0.1.post11+gb3f024d,osm-policy-module==4.0.1.post13+gd8e91c5.dirty,peewee==3.1.7,pkg-resources==0.0.0,pycodestyle==2.3.1,pyflakes==1.6.0,pymongo==3.7.2,PyYAML==3.13,six==1.11.0 flake8 runtests: PYTHONHASHSEED='3300384756' flake8 runtests: commands[0] | flake8 osm_policy_module ___________________________________ summary ____________________________________ py3: commands succeeded flake8: commands succeeded congratulations :) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + devops-stages/stage-build.sh /usr/local/lib/python3.5/dist-packages/setuptools/dist.py:398: UserWarning: Normalizing 'v4.0.1.post13+gd8e91c5.dirty' to '4.0.1.post13+gd8e91c5.dirty' normalized_version, warning: no files found matching '*.xml' under directory 'osm_policy_module' warning: no files found matching '*.sh' under directory 'osm_policy_module' CALLING dpkg-source -b osm-policy-module-4.0.1.post13+gd8e91c5.dirty osm-policy-module_4.0.1.post13+gd8e91c5.dirty.orig.tar.gz (in dir deb_dist) dpkg-source --before-build osm-policy-module-4.0.1.post13+gd8e91c5.dirty fakeroot debian/rules clean /usr/local/lib/python3.5/dist-packages/setuptools/dist.py:398: UserWarning: Normalizing 'v4.0.1.post13+gd8e91c5.dirty' to '4.0.1.post13+gd8e91c5.dirty' normalized_version, 'build/lib' does not exist -- can't clean it 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.5' does not exist -- can't clean it dpkg-source -b osm-policy-module-4.0.1.post13+gd8e91c5.dirty dpkg-genchanges -S -sa >../osm-policy-module_4.0.1.post13+gd8e91c5.dirty-1_source.changes dpkg-genchanges: including full source code in upload dpkg-source --after-build osm-policy-module-4.0.1.post13+gd8e91c5.dirty dpkg-source: warning: extracting unsigned source package (osm-policy-module_4.0.1.post13+gd8e91c5.dirty-1.dsc) dpkg-source --before-build osm-policy-module-4.0.1.post13+gd8e91c5.dirty fakeroot debian/rules clean /usr/local/lib/python3.5/dist-packages/setuptools/dist.py:398: UserWarning: Normalizing 'v4.0.1.post13+gd8e91c5.dirty' to '4.0.1.post13+gd8e91c5.dirty' normalized_version, 'build/lib' does not exist -- can't clean it 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.5' does not exist -- can't clean it dpkg-source -b osm-policy-module-4.0.1.post13+gd8e91c5.dirty debian/rules build /usr/local/lib/python3.5/dist-packages/setuptools/dist.py:398: UserWarning: Normalizing 'v4.0.1.post13+gd8e91c5.dirty' to '4.0.1.post13+gd8e91c5.dirty' normalized_version, warning: no files found matching '*.xml' under directory 'osm_policy_module' warning: no files found matching '*.sh' under directory 'osm_policy_module' fakeroot debian/rules binary /usr/local/lib/python3.5/dist-packages/setuptools/dist.py:398: UserWarning: Normalizing 'v4.0.1.post13+gd8e91c5.dirty' to '4.0.1.post13+gd8e91c5.dirty' normalized_version, warning: no files found matching '*.xml' under directory 'osm_policy_module' warning: no files found matching '*.sh' under directory 'osm_policy_module' I: dh_python3 fs:379: renaming osm_policy_module-4.0.1.post13+gd8e91c5.dirty-py3.5.egg-info to osm_policy_module-4.0.1.post13+gd8e91c5.dirty.egg-info I: dh_python3 pydist:184: Cannot find package that provides kafka. Please add package that provides it to Build-Depends or add "kafka python3-kafka" line to debian/py3dist-overrides or add proper dependency to Depends by hand and ignore this info. I: dh_python3 pydist:184: Cannot find package that provides peewee. Please add package that provides it to Build-Depends or add "peewee python3-peewee" line to debian/py3dist-overrides or add proper dependency to Depends by hand and ignore this info. I: dh_python3 pydist:184: Cannot find package that provides osm_common. Please add package that provides it to Build-Depends or add "osm_common python3-osm-common" line to debian/py3dist-overrides or add proper dependency to Depends by hand and ignore this info. dpkg-genchanges >../osm-policy-module_4.0.1.post13+gd8e91c5.dirty-1_amd64.changes dpkg-genchanges: including full source code in upload dpkg-source --after-build osm-policy-module-4.0.1.post13+gd8e91c5.dirty [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive) [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + mkdir -p changelog [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + devops/tools/generatechangelog-pipeline.sh [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + devops-stages/stage-archive.sh devops-stages/stage-archive.sh: 32: devops-stages/stage-archive.sh: apt-ftparchive: not found [Pipeline] getArtifactoryServer [Pipeline] artifactoryUpload For pattern: dists/*.gz 1 artifacts were found. For pattern: dists/*Packages 1 artifacts were found. For pattern: pool/*/*.deb 1 artifacts were found. For pattern: changelog/* 1 artifacts were found. Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-POL/netslice/2/changelog/changelog-POL.html Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-POL/netslice/2/dists/unstable/POL/binary-amd64/Packages Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-POL/netslice/2/pool/POL/python3-osm-policy-module_4.0.1.post13+gd8e91c5.dirty-1_all.deb Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-POL/netslice/2/dists/unstable/POL/binary-amd64/Packages.gz [Pipeline] publishBuildInfo Deploying build info to: http://osm1.etsi.org:8081/artifactory/api/build Deploying build descriptor to: http://osm1.etsi.org:8081/artifactory/api/build Build successfully deployed. Browse it in Artifactory under http://osm1.etsi.org:8081/artifactory/webapp/builds/POL-stage_2-merge%20::%20netslice/2 [Pipeline] sh [POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script + env [Pipeline] step Archiving artifacts Recording fingerprints [Pipeline] } [Pipeline] // stage [Pipeline] } $ docker stop --time=1 12ab6f3058543d16094865be085ed25f04bcbfe267ac653ab34aaa8e0b72c512 $ docker rm -f 12ab6f3058543d16094865be085ed25f04bcbfe267ac653ab34aaa8e0b72c512 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS