SuccessConsole Output

Started by upstream project "buildall-stage_2" build number 26
originally caused by:
 Started by user madavi
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/MON.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/MON.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/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/rift300
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 10 remote branches
Obtained Jenkinsfile from 4cc578af80cc19ff308bfa1e7c974603ebc773bf
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm2 slave in /opt/jenkins/workspace/MON-stage_2_v6.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/MON.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/MON.git
 > git --version # timeout=10
 > git fetch --no-tags --progress https://osm.etsi.org/gerrit/osm/MON.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 4cc578af80cc19ff308bfa1e7c974603ebc773bf (v6.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 4cc578af80cc19ff308bfa1e7c974603ebc773bf
Commit message: "Fixed request for OpenStack Rocky Endpoints"
 > git rev-list --no-walk 4cc578af80cc19ff308bfa1e7c974603ebc773bf # timeout=10
[Pipeline] dir
Running in /opt/jenkins/workspace/MON-stage_2_v6.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 --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/v6.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v6.0^{commit} # timeout=10
Checking out Revision 8c3630e0f666cffd8c00de5dda395b87990005e1 (refs/remotes/origin/v6.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 8c3630e0f666cffd8c00de5dda395b87990005e1
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D v6.0 # timeout=10
 > git checkout -b v6.0 8c3630e0f666cffd8c00de5dda395b87990005e1
Commit message: "Fix cffi version to match the latest stable"
 > git rev-list --no-walk e83834a5c4af7583c80ea6110d8ec541aef3f39e # 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
[MON-stage_2_v6.0] 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 60312 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v6.0/33/display/redirect?page=changes
GERRIT_PROJECT=osm/MON
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/MON-stage_2/job/v6.0/33/
HUDSON_COOKIE=cd146131-7243-441c-9bcb-a6f1989c0504
JENKINS_SERVER_COOKIE=durable-9b2d20102ee7033401681c165c255f87
LC_MONETARY=fr_FR.UTF-8
GERRIT_PATCHSET_REVISION=4cc578af80cc19ff308bfa1e7c974603ebc773bf
WORKSPACE=/opt/jenkins/workspace/MON-stage_2_v6.0
LOGNAME=jenkins
NODE_NAME=osm2 slave
GERRIT_BRANCH=v6.0
_=/usr/bin/java
EXECUTOR_NUMBER=7
BUILD_DISPLAY_NAME=#33
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v6.0
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=33
BUILD_TAG=jenkins-MON-stage_2-v6.0-33
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/MON-stage_2/job/v6.0/
BUILD_NUMBER=33
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/MON-stage_2/job/v6.0/33/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/42/8142/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
LC_MEASUREMENT=fr_FR.UTF-8
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/MON-stage_2/job/v6.0/display/redirect
LC_IDENTIFICATION=fr_FR.UTF-8
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
JOB_NAME=MON-stage_2/v6.0
TEST_INSTALL=false
PWD=/opt/jenkins/workspace/MON-stage_2_v6.0
LC_ALL=en_US.UTF-8
SSH_CONNECTION=195.238.226.13 60312 172.21.1.2 22
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
BRANCH_NAME=v6.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ git fetch origin refs/changes/42/8142/1
From https://osm.etsi.org/gerrit/osm/MON
 * branch            refs/changes/42/8142/1 -> FETCH_HEAD
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ git checkout -f 4cc578af80cc19ff308bfa1e7c974603ebc773bf
HEAD is now at 4cc578a... Fixed request for OpenStack Rocky Endpoints
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ devops/tools/license_scan.sh
GERRIT BRANCH is v6.0
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
From https://osm.etsi.org/gerrit/osm/MON
 * [new tag]         v6.0.4     -> v6.0.4
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Docker-Build)
[Pipeline] sh
[MON-stage_2_v6.0] 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
[MON-stage_2_v6.0] Running shell script
+ docker build -t osm/mon-v6.0 .
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.81 MB
Sending build context to Docker daemon 13.37 MB
Sending build context to Docker daemon 13.93 MB
Sending build context to Docker daemon 14.48 MB
Sending build context to Docker daemon 15.04 MB
Sending build context to Docker daemon  15.6 MB
Sending build context to Docker daemon 16.15 MB
Sending build context to Docker daemon 16.43 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 libssl-dev &&   DEBIAN_FRONTEND=noninteractive pip3 install -U setuptools setuptools-version-command stdeb
 ---> Using cache
 ---> a6bec4ded214
Step 3 : RUN groupadd -o -g 1015 -r jenkins
 ---> Using cache
 ---> 99abb25f3175
Step 4 : RUN useradd -o -u 1017 --create-home -r -g jenkins jenkins
 ---> Using cache
 ---> aebe38158fde
Successfully built aebe38158fde
[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/MON-stage_2_v6.0 -v /opt/jenkins/workspace/MON-stage_2_v6.0:/opt/jenkins/workspace/MON-stage_2_v6.0:rw,z -v /opt/jenkins/workspace/MON-stage_2_v6.0@tmp:/opt/jenkins/workspace/MON-stage_2_v6.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 ******** --entrypoint cat osm/mon-v6.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ devops-stages/stage-test.sh
GLOB sdist-make: /opt/jenkins/workspace/MON-stage_2_v6.0/setup.py
py3 create: /home/jenkins/.tox/py3
py3 installdeps: -r/opt/jenkins/workspace/MON-stage_2_v6.0/test-requirements.txt
py3 inst: /home/jenkins/.tox/dist/osm_mon-6.0.4+g4cc578a.dirty.zip
py3 installed: aiokafka==0.4.3,appdirs==1.4.3,Babel==2.7.0,bcrypt==3.1.7,cached-property==1.5.1,certifi==2019.9.11,cffi==1.13.2,chardet==3.0.4,Click==7.0,cliff==2.16.0,cmd2==0.8.9,cryptography==2.8,debtcollector==1.22.0,decorator==4.4.1,dogpile.cache==0.9.0,flake8==2.6.2,flufl.enum==4.1.1,futurist==1.9.0,gnocchiclient==7.0.5,humanfriendly==4.18,idna==2.6,iso8601==0.1.12,jmespath==0.9.4,jsonpatch==1.24,jsonpointer==2.0,jujubundlelib==0.5.6,kafka-python==1.4.3,keystoneauth1==3.18.0,lxml==4.4.1,macaroonbakery==1.2.3,mccabe==0.5.3,mock==3.0.5,monotonic==1.5,msgpack==0.6.2,munch==2.5.0,N2VC==0.0.0,netaddr==0.7.19,netifaces==0.10.9,openstacksdk==0.37.0,os-client-config==1.33.0,os-service-types==1.7.0,osc-lib==1.14.1,oslo.config==6.11.1,oslo.i18n==3.24.0,oslo.serialization==2.29.2,oslo.utils==3.42.0,osm-common==5.0.5+g1ae80e3,osm-mon==6.0.4+g4cc578a.dirty,paramiko==2.6.0,pbr==5.4.3,peewee==3.8.2,peewee-migrate==1.1.6,pkg-resources==0.0.0,prettytable==0.7.2,prometheus-client==0.4.2,protobuf==3.10.0,pycodestyle==2.0.0,pycparser==2.19,pycrypto==2.6.1,pyflakes==1.2.3,Pygments==2.4.2,pymacaroons==0.13.0,pymongo==3.9.0,PyMySQL==0.9.3,PyNaCl==1.3.0,pyparsing==2.4.5,pyperclip==1.7.0,pyRFC3339==1.1,python-ceilometerclient==2.9.0,python-dateutil==2.8.1,python-keystoneclient==3.15.1,python-neutronclient==5.1.0,python-novaclient==12.0.0,pytz==2019.3,pyvcloud==19.1.2,PyYAML==3.13,requests==2.18.4,requests-mock==1.7.0,requestsexceptions==1.4.0,rfc3986==1.3.2,simplejson==3.16.0,six==1.11.0,stevedore==1.31.0,theblues==0.5.2,ujson==1.35,urllib3==1.22,wcwidth==0.1.7,websockets==4.0.1,wrapt==1.11.2
py3 runtests: PYTHONHASHSEED='1368956364'
py3 runtests: commands[0] | python3 -m unittest discover -v
test_collect_vca_metrics (osm_mon.tests.unit.collector.test_collector_service.CollectorServiceTest) ... ok
test_init_vim_collector_and_collect_openstack (osm_mon.tests.unit.collector.test_collector_service.CollectorServiceTest) ... ok
test_init_vim_collector_and_collect_unknown (osm_mon.tests.unit.collector.test_collector_service.CollectorServiceTest) ... ok
test_init_vim_collector_and_collect_vio (osm_mon.tests.unit.collector.test_collector_service.CollectorServiceTest) ... ok
test_session_with_insecure (osm_mon.tests.unit.collector.utils.test_openstack.OpenstackUtilsTest) ... ok
test_session_with_insecure_false (osm_mon.tests.unit.collector.utils.test_openstack.OpenstackUtilsTest) ... ok
test_session_without_insecure (osm_mon.tests.unit.collector.utils.test_openstack.OpenstackUtilsTest) ... ok
test_collect_gnocchi_instance (osm_mon.tests.unit.collector.vnf_collectors.test_openstack.CollectorTest) ... ok
test_collect_interface_all_metric (osm_mon.tests.unit.collector.vnf_collectors.test_openstack.CollectorTest) ... ok
test_collect_interface_one_metric (osm_mon.tests.unit.collector.vnf_collectors.test_openstack.CollectorTest) ... ok
test_collect_cpu_and_memory (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.CollectorTest) ... ok
test_collect_empty_monitoring_param (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.CollectorTest) ... ok
test_collect_no_monitoring_param (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.CollectorTest) ... ok
test_collect_no_moref (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.CollectorTest) ... Failed to get resource list from vROPS: 404 b'404 NOT FOUND\n\n Copyright 2016-2019 VMware Inc.\n This file is part of ETSI OSM\n All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the "License"); you may\n not use this file except in compliance with the License. You may obtain\n a copy of the License at\n\n         http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n License for the specific language governing permissions and limitations\n under the License.\n\n For those usages not covered by the Apache License, Version 2.0 please\n contact:  osslegalrouting@vmware.com\n'
ok
test_collect_no_name (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.CollectorTest) ... ok
test_get_vm_moref_bad_content (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.Get_VM_Moref_Test) ... Failed to find vm_moref_id from vApp UUID: 1234
ok
test_get_vm_moref_has_exception (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.Get_VM_Moref_Test) ... Error occurred while getting VM moref ID for VM: Testing
Traceback (most recent call last):
  File "/opt/jenkins/workspace/MON-stage_2_v6.0/osm_mon/collector/vnf_collectors/vmware.py", line 113, in get_vm_moref_id
    vm_details = self.get_vapp_details_rest(vapp_uuid)
  File "<string>", line 3, in get_vapp_details_rest
  File "/usr/lib/python3.5/unittest/mock.py", line 917, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python3.5/unittest/mock.py", line 973, in _mock_call
    raise effect
Exception: Testing

ok
test_get_vm_moref_id (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.Get_VM_Moref_Test) ... ok
test_get_vapp_details (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.VApp_Details_Test) ... /usr/lib/python3.5/unittest/case.py:1116: DeprecationWarning: assertDictContainsSubset is deprecated
  DeprecationWarning)
ok
test_get_vapp_details_404 (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.VApp_Details_Test) ... REST API call https://vcd/api/vApp/vapp- failed. Return status code b'404 NOT FOUND\n\n Copyright 2016-2019 VMware Inc.\n This file is part of ETSI OSM\n All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the "License"); you may\n not use this file except in compliance with the License. You may obtain\n a copy of the License at\n\n         http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n License for the specific language governing permissions and limitations\n under the License.\n\n For those usages not covered by the Apache License, Version 2.0 please\n contact:  osslegalrouting@vmware.com\n'
ok
test_get_vapp_details_xml_parse_error (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.VApp_Details_Test) ... Error occurred for getting vApp details: syntax error: line 1, column 0
Traceback (most recent call last):
  File "/opt/jenkins/workspace/MON-stage_2_v6.0/osm_mon/collector/vnf_collectors/vmware.py", line 159, in get_vapp_details_rest
    xmlroot_respond = XmlElementTree.fromstring(response.content)
  File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1333, in XML
    parser.feed(text)
  File "<string>", line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

ok
test_no_admin_connect (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.VApp_Details_Test) ... Can't connect to a vCloud director as:  with exception HTTPSConnectionPool(host='vcd', port=443): Max retries exceeded with url: /api/versions (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f04154adac8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Failed to connect to vCD
ok
test_no_id (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vcd_collector.VApp_Details_Test) ... ok
test_collect_cpu_and_memory (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vio_collector.CollectorTest) ... ok
test_collect_empty_monitoring_param (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vio_collector.CollectorTest) ... ok
test_collect_no_monitoring_param (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vio_collector.CollectorTest) ... ok
test_collect_no_name (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vio_collector.CollectorTest) ... ok
test_collect_adjusted_metric (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_collect_cpu_and_memory (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_collect_multi_vdu (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_collect_not_provided_metric (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_collect_one_metric_only (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_collect_unkown_metric (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_collect_vrops_http_error (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... Failed to get Metrics data from vROPS for 404 b'404 NOT FOUND\n\n Copyright 2016-2019 VMware Inc.\n This file is part of ETSI OSM\n All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the "License"); you may\n not use this file except in compliance with the License. You may obtain\n a copy of the License at\n\n         http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n License for the specific language governing permissions and limitations\n under the License.\n\n For those usages not covered by the Apache License, Version 2.0 please\n contact:  osslegalrouting@vmware.com\n'
ok
test_collect_vrops_json_parse_error (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... Exception while parsing metrics data from vROPS Extra data: line 1 column 5 (char 4)
Traceback (most recent call last):
  File "/opt/jenkins/workspace/MON-stage_2_v6.0/osm_mon/collector/vnf_collectors/vrops/vrops_helper.py", line 129, in get_metrics
    m_data = json.loads(resp.content.decode('utf-8'))
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 342, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 5 (char 4)

ok
test_collect_vrops_no_data (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_collect_vrops_unknown_vim_id (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Get_Metrics_Test) ... ok
test_get_vm_resource_list_from_vrops (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Resource_List_Test) ... ok
test_get_vm_resource_list_from_vrops_bad_json (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Resource_List_Test) ... get_vm_resource_id: Error in parsing Expecting property name enclosed in double quotes: line 2 column 2 (char 3)
Traceback (most recent call last):
  File "/opt/jenkins/workspace/MON-stage_2_v6.0/osm_mon/collector/vnf_collectors/vrops/vrops_helper.py", line 73, in get_vm_resource_list_from_vrops
    resp_data = json.loads(resp.content.decode('utf-8'))
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 355, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 2 (char 3)

ok
test_get_vm_resource_list_from_vrops_http_404 (osm_mon.tests.unit.collector.vnf_collectors.vmware.test_vrops_helper.vROPS_Helper_Resource_List_Test) ... Failed to get resource list from vROPS: 404 b'404 NOT FOUND\n\n Copyright 2016-2019 VMware Inc.\n This file is part of ETSI OSM\n All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the "License"); you may\n not use this file except in compliance with the License. You may obtain\n a copy of the License at\n\n         http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n License for the specific language governing permissions and limitations\n under the License.\n\n For those usages not covered by the Apache License, Version 2.0 please\n contact:  osslegalrouting@vmware.com\n'
ok
test_get_vdur (osm_mon.tests.unit.core.test_common_db_client.CommonDbClientTest) ... ok
test_get_vim_account_1_1_schema (osm_mon.tests.unit.core.test_common_db_client.CommonDbClientTest) ... ok
test_get_vim_account_default_schema (osm_mon.tests.unit.core.test_common_db_client.CommonDbClientTest) ... ok
test_get_vim_id (osm_mon.tests.unit.core.test_common_db_client.CommonDbClientTest) ... ok
test_aioread (osm_mon.tests.unit.core.test_message_bus_client.TestMessageBusClient) ... ok
test_aioread_once (osm_mon.tests.unit.core.test_message_bus_client.TestMessageBusClient) ... /usr/lib/python3.5/asyncio/base_events.py:429: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
  warnings.warn("unclosed event loop %r" % self, ResourceWarning)
ok
test_aiowrite (osm_mon.tests.unit.core.test_message_bus_client.TestMessageBusClient) ... ok
test_evaluate (osm_mon.tests.unit.evaluator.test_evaluator.EvaluatorTest) ... ok
test_evaluate (osm_mon.tests.unit.evaluator.test_evaluator_service.EvaluatorTest) ... ok
test_evaluate_metric (osm_mon.tests.unit.evaluator.test_evaluator_service.EvaluatorTest) ... No metric result for alarm <Mock name='mock.id' id='139655514067744'>
ok
test_get_metric_value_prometheus (osm_mon.tests.unit.evaluator.test_evaluator_service.EvaluatorTest) ... ok
test_create_alarm (osm_mon.tests.unit.server.test_server_service.ServerServiceTest) ... ok

----------------------------------------------------------------------
Ran 52 tests in 0.471s

OK
flake8 create: /home/jenkins/.tox/flake8
flake8 installdeps: flake8
flake8 inst: /home/jenkins/.tox/dist/osm_mon-6.0.4+g4cc578a.dirty.zip
flake8 installed: aiokafka==0.4.3,appdirs==1.4.3,Babel==2.7.0,bcrypt==3.1.7,cached-property==1.5.1,certifi==2019.9.11,cffi==1.13.2,chardet==3.0.4,Click==7.0,cliff==2.16.0,cmd2==0.8.9,cryptography==2.8,debtcollector==1.22.0,decorator==4.4.1,dogpile.cache==0.9.0,entrypoints==0.3,flake8==3.7.9,flufl.enum==4.1.1,futurist==1.9.0,gnocchiclient==7.0.5,humanfriendly==4.18,idna==2.6,iso8601==0.1.12,jmespath==0.9.4,jsonpatch==1.24,jsonpointer==2.0,jujubundlelib==0.5.6,kafka-python==1.4.3,keystoneauth1==3.18.0,lxml==4.4.1,macaroonbakery==1.2.3,mccabe==0.6.1,mock==3.0.5,monotonic==1.5,msgpack==0.6.2,munch==2.5.0,N2VC==0.0.0,netaddr==0.7.19,netifaces==0.10.9,openstacksdk==0.37.0,os-client-config==1.33.0,os-service-types==1.7.0,osc-lib==1.14.1,oslo.config==6.11.1,oslo.i18n==3.24.0,oslo.serialization==2.29.2,oslo.utils==3.42.0,osm-common==5.0.5+g1ae80e3,osm-mon==6.0.4+g4cc578a.dirty,paramiko==2.6.0,pbr==5.4.3,peewee==3.8.2,peewee-migrate==1.1.6,pkg-resources==0.0.0,prettytable==0.7.2,prometheus-client==0.4.2,protobuf==3.10.0,pycodestyle==2.5.0,pycparser==2.19,pycrypto==2.6.1,pyflakes==2.1.1,Pygments==2.4.2,pymacaroons==0.13.0,pymongo==3.9.0,PyMySQL==0.9.3,PyNaCl==1.3.0,pyparsing==2.4.5,pyperclip==1.7.0,pyRFC3339==1.1,python-ceilometerclient==2.9.0,python-dateutil==2.8.1,python-keystoneclient==3.15.1,python-neutronclient==5.1.0,python-novaclient==12.0.0,pytz==2019.3,pyvcloud==19.1.2,PyYAML==3.13,requests==2.18.4,requestsexceptions==1.4.0,rfc3986==1.3.2,simplejson==3.16.0,six==1.11.0,stevedore==1.31.0,theblues==0.5.2,ujson==1.35,urllib3==1.22,wcwidth==0.1.7,websockets==4.0.1,wrapt==1.11.2
flake8 runtests: PYTHONHASHSEED='1368956364'
flake8 runtests: commands[0] | flake8 osm_mon
pylint create: /home/jenkins/.tox/pylint
pylint installdeps: pylint, -r/opt/jenkins/workspace/MON-stage_2_v6.0/test-requirements.txt
pylint inst: /home/jenkins/.tox/dist/osm_mon-6.0.4+g4cc578a.dirty.zip
pylint installed: aiokafka==0.4.3,appdirs==1.4.3,astroid==2.3.3,Babel==2.7.0,bcrypt==3.1.7,cached-property==1.5.1,certifi==2019.9.11,cffi==1.13.2,chardet==3.0.4,Click==7.0,cliff==2.16.0,cmd2==0.8.9,cryptography==2.8,debtcollector==1.22.0,decorator==4.4.1,dogpile.cache==0.9.0,flake8==2.6.2,flufl.enum==4.1.1,futurist==1.9.0,gnocchiclient==7.0.5,humanfriendly==4.18,idna==2.6,iso8601==0.1.12,isort==4.3.21,jmespath==0.9.4,jsonpatch==1.24,jsonpointer==2.0,jujubundlelib==0.5.6,kafka-python==1.4.3,keystoneauth1==3.18.0,lazy-object-proxy==1.4.3,lxml==4.4.1,macaroonbakery==1.2.3,mccabe==0.6.1,mock==3.0.5,monotonic==1.5,msgpack==0.6.2,munch==2.5.0,N2VC==0.0.0,netaddr==0.7.19,netifaces==0.10.9,openstacksdk==0.37.0,os-client-config==1.33.0,os-service-types==1.7.0,osc-lib==1.14.1,oslo.config==6.11.1,oslo.i18n==3.24.0,oslo.serialization==2.29.2,oslo.utils==3.42.0,osm-common==5.0.5+g1ae80e3,osm-mon==6.0.4+g4cc578a.dirty,paramiko==2.6.0,pbr==5.4.3,peewee==3.8.2,peewee-migrate==1.1.6,pkg-resources==0.0.0,prettytable==0.7.2,prometheus-client==0.4.2,protobuf==3.10.0,pycodestyle==2.0.0,pycparser==2.19,pycrypto==2.6.1,pyflakes==1.2.3,Pygments==2.4.2,pylint==2.4.4,pymacaroons==0.13.0,pymongo==3.9.0,PyMySQL==0.9.3,PyNaCl==1.3.0,pyparsing==2.4.5,pyperclip==1.7.0,pyRFC3339==1.1,python-ceilometerclient==2.9.0,python-dateutil==2.8.1,python-keystoneclient==3.15.1,python-neutronclient==5.1.0,python-novaclient==12.0.0,pytz==2019.3,pyvcloud==19.1.2,PyYAML==3.13,requests==2.18.4,requests-mock==1.7.0,requestsexceptions==1.4.0,rfc3986==1.3.2,simplejson==3.16.0,six==1.11.0,stevedore==1.31.0,theblues==0.5.2,typed-ast==1.4.0,ujson==1.35,urllib3==1.22,wcwidth==0.1.7,websockets==4.0.1,wrapt==1.11.2
pylint runtests: PYTHONHASHSEED='1368956364'
pylint runtests: commands[0] | pylint -E osm_mon
___________________________________ summary ____________________________________
  py3: commands succeeded
  flake8: commands succeeded
  pylint: commands succeeded
  congratulations :)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ devops-stages/stage-build.sh
/usr/local/lib/python3.5/dist-packages/setuptools/dist.py:475: UserWarning: Normalizing 'v6.0.4+g4cc578a.dirty' to '6.0.4+g4cc578a.dirty'
  normalized_version,
warning: no files found matching '*.sh' under directory 'osm_mon'
CALLING dpkg-source -b osm-mon-6.0.4+g4cc578a.dirty osm-mon_6.0.4+g4cc578a.dirty.orig.tar.gz (in dir deb_dist)
 dpkg-source --before-build osm-mon-6.0.4+g4cc578a.dirty
 fakeroot debian/rules clean
/usr/local/lib/python3.5/dist-packages/setuptools/dist.py:475: UserWarning: Normalizing 'v6.0.4+g4cc578a.dirty' to '6.0.4+g4cc578a.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-mon-6.0.4+g4cc578a.dirty
 dpkg-genchanges -S -sa >../osm-mon_6.0.4+g4cc578a.dirty-1_source.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build osm-mon-6.0.4+g4cc578a.dirty
dpkg-source: warning: extracting unsigned source package (osm-mon_6.0.4+g4cc578a.dirty-1.dsc)
 dpkg-source --before-build osm-mon-6.0.4+g4cc578a.dirty
 fakeroot debian/rules clean
/usr/local/lib/python3.5/dist-packages/setuptools/dist.py:475: UserWarning: Normalizing 'v6.0.4+g4cc578a.dirty' to '6.0.4+g4cc578a.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-mon-6.0.4+g4cc578a.dirty
 debian/rules build
/usr/local/lib/python3.5/dist-packages/setuptools/dist.py:475: UserWarning: Normalizing 'v6.0.4+g4cc578a.dirty' to '6.0.4+g4cc578a.dirty'
  normalized_version,
warning: no files found matching '*.sh' under directory 'osm_mon'
 fakeroot debian/rules binary
/usr/local/lib/python3.5/dist-packages/setuptools/dist.py:475: UserWarning: Normalizing 'v6.0.4+g4cc578a.dirty' to '6.0.4+g4cc578a.dirty'
  normalized_version,
warning: no files found matching '*.sh' under directory 'osm_mon'
I: dh_python3 fs:379: renaming osm_mon-6.0.4+g4cc578a.dirty-py3.5.egg-info to osm_mon-6.0.4+g4cc578a.dirty.egg-info
I: dh_python3 pydist:184: Cannot find package that provides aiokafka. Please add package that provides it to Build-Depends or add "aiokafka python3-aiokafka" line to debian/py3dist-overrides or add proper  dependency to Depends by hand and ignore this info.
I: dh_python3 pydist: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 prometheus_client. Please add package that provides it to Build-Depends or add "prometheus_client python3-prometheus-client" 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 gnocchiclient. Please add package that provides it to Build-Depends or add "gnocchiclient python3-gnocchiclient" 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 pyvcloud. Please add package that provides it to Build-Depends or add "pyvcloud python3-pyvcloud" 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_migrate. Please add package that provides it to Build-Depends or add "peewee_migrate python3-peewee-migrate" line to debian/py3dist-overrides or add proper  dependency to Depends by hand and ignore this info.
I: dh_python3 pydist:184: Cannot find package that provides python_neutronclient. Please add package that provides it to Build-Depends or add "python_neutronclient python3-neutronclient" 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.
I: dh_python3 pydist:184: 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.
 dpkg-genchanges  >../osm-mon_6.0.4+g4cc578a.dirty-1_amd64.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build osm-mon-6.0.4+g4cc578a.dirty
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ mkdir -p changelog
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ devops/tools/generatechangelog-pipeline.sh
[Pipeline] sh
[MON-stage_2_v6.0] 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] newBuildInfo
[Pipeline] artifactoryUpload
[consumer_0] Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-MON/v6.0-staging/33/dists/unstable/MON/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-MON/v6.0-staging/33/dists/unstable/MON/binary-amd64/Packages
[consumer_2] Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-MON/v6.0-staging/33/pool/MON/python3-osm-mon_6.0.4%2Bg4cc578a.dirty-1_all.deb
[consumer_0] Deploying artifact: http://osm1.etsi.org:8081/artifactory/osm-MON/v6.0-staging/33/changelog/changelog-MON.html
[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/MON-stage_2%20::%20v6.0/33
[Pipeline] sh
[MON-stage_2_v6.0] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 7bddbeb9e9443b0fadb376f676a64f380cdfebbd434aa23f92732fefef3f6703
$ docker rm -f 7bddbeb9e9443b0fadb376f676a64f380cdfebbd434aa23f92732fefef3f6703
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS